PHP-FPM example of adding service services PHP Instance

Source: Internet
Author: User
Tags nginx server
This article mainly introduces the example of PHP-FPM adding service services, the need for friends can refer to the following

Nginx running PHP through fastcgi than Apache contains PHP environment has obvious advantages, recently, there is a message that PHP5.4 will most likely put php-fpm patch in the kernel, Nginx server platform to run PHP will be more relaxed, Let's take a look at a php-fpm smooth start and configure the service example.

My PHP is the source of the installation. PHP-FPM after PHP 5.3.2 version does not support the previous php-fpm (start|restart|stop|reload), then if you configure PHP-FPM as a service, and add a smooth start/restart.

To php-fpm.conf(vi /usr/local/php54/etc/php-fpm.conf) make pid(;pid = run/php-fpm.pid) a previous or removed.

Because the compiler installs PHP, it will generate a lot of binary files in the PHP directory, find init.d.php-fpm, copy to INIT.D.

cp/usr/local/src/php54/sapi/fpm/init.d.php-fpm/etc/init.d/php-fpm

Set permissions, and add services

chmod +x/etc/init.d/php-fpmchkconfig--add php-fpm

You can use the following command to manage PHP-FPM later

Service php-fpm startservice php-fpm stopservice php-fpm restartservice php-fpm Reload

Summarize

The above is a small part of the PHP-FPM to introduce you to add service services, I hope we have some help, if you have any questions please give me a message, small series will promptly reply to you. Thank you very much for the support of PHP Chinese network!

Articles you may be interested in:

PHP-FPM How to service startup scripts PHP instance

PHP Four sorting algorithm implementation and efficiency analysis _php tips

PHP tips for frequently used methods to get file extensions

Related Article

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.