{"id":9844,"date":"2021-11-07T11:51:08","date_gmt":"2021-11-07T16:51:08","guid":{"rendered":"http:\/\/prod.main.brightwhiz.com\/?p=9844"},"modified":"2021-12-03T13:34:16","modified_gmt":"2021-12-03T13:34:16","slug":"find-php-ini-file-location-ubuntu-centos-linux","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/","title":{"rendered":"How to Reload, Start, Stop, Restart PHP-FPM Service on Ubuntu | Centos Linux"},"content":{"rendered":"\n
PHP-FPM is a FastCGI process manager for PHP used with many popular web servers like Apache and Nginx among others. You would want to reload or restart PHP-FPM whenever you change the PHP settings.<\/p>\n\n\n\n
The PHP settings can be changed from the appropriate php.ini file or PHP-FPM config file. You can find the appropriate php.ini file by following this guide<\/a>.<\/p>\n\n\n\n These are the various commands to reload, start, stop, and restart PHP-FPM Service depending on the platform that you have. The examples below are for PHP 7.4. For other versions, you have to change the command to correspond to the appropriate version.<\/p>\n\n\n\n Generally, you can find out the PHP version by running this command:<\/p>\n\n\n\n with similar results:<\/p>\n\n\n\n$ php -v<\/code><\/pre>\n\n\n\n
PHP 8.0.12 (cli) (built: Oct 22 2021 12:34:00) ( NTS )\nCopyright (c) The PHP Group\nZend Engine v4.0.12, Copyright (c) Zend Technologies\n with Zend OPcache v8.0.12, Copyright (c), by Zend Technologies\n with Xdebug v3.1.1, Copyright (c) 2002-2021, by Derick Rethans<\/code><\/pre>\n\n\n\n