Home  >  Article  >  Backend Development  >  ubuntu - How to restart SegmentFault after modifying php.ini

ubuntu - How to restart SegmentFault after modifying php.ini

WBOY
WBOYOriginal
2016-08-30 09:36:451990browse

How do I restart php after modifying php.ini?
I restarted php-fpm to no avail, and there seems to be some problem with my process
ubuntu - How to restart SegmentFault after modifying php.ini

Is this normal?

The picture below is the information I got from grepubuntu - How to restart SegmentFault after modifying php.ini

Thank you! ! !

Reply content:

How do I restart php after modifying php.ini?
I restarted php-fpm to no avail, and there seems to be some problem with my process
ubuntu - How to restart SegmentFault after modifying php.ini

Is this normal?

The picture below is the information I got from grepubuntu - How to restart SegmentFault after modifying php.ini

Thank you! ! !

It depends on your PHP running mode. If it is fastcgi, just restart php-fpm. If it is apache mod, you need to restart the apache service

/etc/init.d/apache2 restart

Restart the Apache service and take a look.

Common: service apache2 restart

Suppose your apahce installation directory is /usr/local/apache2
apahce start command: /usr/local/apache2/bin/apachectl start apaceh
apache stop command: /usr/local/apache2/bin/apachectl stop
apache Restart command: /usr/local/apache2/bin/apachectl restart
Without interrupting the current connection when restarting, it should be: /usr/local/sbin/apachectl graceful

If apache is a linux service
service httpd start start
service httpd restart restart
service httpd stop stop the service

Ubuntu system
Start # sudo /etc/init.d/apache2 start
Stop # sudo /etc/init.d/apache2 stop
Restart # sudo /etc/init.d/apache2 restart

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn