![]() ![]() If you have nginx server, from this file you can get the. Also there are a lot of settings in that file you can make, basically this is the core file for your domain. Now you can change the path of the php fpm error log file as you wish. Then in the bellow list will appear: PHP-FPM service for Apache, open the page and click on the restart button. ![]() In the search bar from top left corner type "fpm". Login in WHM using the root user and pass. Also if you have WHM you can restart the service directly from there. You will have to replace the "ea-php73" with your current php version. Once again, you have to know you current php version in order to be able to reset the service. Y stand for Yes, it will ask you if you want to save the settings.Īfter we made all changes we need we have to restart the php-fpm service in order to be applied all settings we did in the file, to do that we will run the following line of code in the terminal: systemctl restart ea-php73-php-fpm In case you don't know how to do that, hit CTRL + X and then pres Y and hit ENTER. But before that you have to save the file. In order to actually apply the seetings you made in this file you will have to restart the php-fpm service. If you want you can change the filepath as you wish. In the above screenshot you can see the exact path to the erro log file. The file you open should look like something like that: To open the file we will use the following command: nano ĭon't forget to replace with your domain name. ![]() Lets assume that your website is then, your configuration file should look like the following:. Now you have to open your domain configuration file. The ls command will list all files in the directory. Using the following line of code we will open the directory and we will list the all files: cd /opt/cpanel/ea-php73/root/etc/php-fpm.d After you get your php version open the correct folder in my case the correct folder for my php-fpm settings is /opt/cpanel/ea-php73/root/etc/php-fpm.d. To find out the version you can write the following line of code in the terminal: php -v. In order to find the right php fpm error log file you will have to know your current version of php. After we run this command we will see the following output: Using the "-type d" command, we tell it to search for directories and the -name parameter is used for the name of the directory. Add the following line of code in the terminal: find / -type d -name "php-fpm.d" Open putty terminal and login as root to the server. This tutorial assume that you have already installed php fpm on your server. PHP FPM is the best choice for high speed optimization websites. When we do development and try to setup the server we need this file in order to get all errors and other notices which will help us to solve the issue.įPM or FastCGI Process Manager is an alternative of PHP FastCGI which has additional features especially for websites with a large number of visitors. In this tutorial we will locate the php fpm error log file using PUTTY. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |