Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to restart after modifying php

2025-04-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "how to restart after modifying php". In daily operation, I believe many people have doubts about how to restart after modifying php. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "how to restart after modifying php". Next, please follow the editor to study!

After modifying php, you need to restart, the method is: 1, open the terminal command window; 2, view the master process number of php-fpm; 3, restart php-fpm.

This article operating environment: linux5.9.8 system, PHP7.1, Dell G3 computer.

Do I need to restart to modify php? What do I need to restart for php.ini modification?

A reboot is required.

Usually, anyone who uses it can restart it.

Note: you need to know what mode PHP runs in.

Is an independent executable program, or is embedded in the server program in the form of a module to run.

In the case of nginx, it is usually in the form of an independent process, while apache is in the form of a module.

So nginx is to restart the php process php-fpm,apache is to restart the apache service.

After the nginx server modifies the php.ini, you need to restart php-fpm to take effect.

First check the master process number of php-fpm-master

Ps aux | grep php-fpmroot 42891 0.0 0.1 182796 1220? Ss 18 April 0:19 php-fpm: master process (/ usr/local/php/etc/php-fpm.conf)

Restart php-fpm:

Kill-USR2 main process ID-master process id

Related operation

. / nginx-t verify that the nginx configuration file is correct

Nginx-s reload reloads the configuration file after modifying the nginx configuration

Start php-fpm:

/ usr/local/php/sbin/php-fpm at this point, the study on "how to restart after modifying php" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report