Reload configuration file command after Linux modifies php.ini

Source: Internet
Author: User
Tags fpm ini

The general default installation directory for PHP is:

/usr/local/php/

We use PHP-FPM to reload the configuration file (such as php.ini):

/USR/LOCAL/PHP/SBIN/PHP-FPM Reload

Note:/USR/LOCAL/PHP/SBIN/PHP-FPM also has other parameters, including: Start|stop|quit|restart|reload|logrotate.

Using PHP-FPM to control the fastcgi process of php-cgi

/USR/LOCAL/PHP/SBIN/PHP-FPM {start|stop|quit|restart|reload|logrotate}

--start start the fastcgi process of PHP

--stop forced to terminate PHP fastcgi process

--quit smooth termination of PHP fastcgi process

--restart Restart PHP's fastcgi process

--reload to reload PHP php.ini

--logrotate log file back on

Tip: Many times (old version, no php-fpm) directly restart the HTTP server, such as restart Apache, IIS, Nginx can!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.