Apache's Php-fpm-enable Instance

Source: Internet
Author: User
Tags fpm cpanel
<span id="Label3"></p><p style="text-indent:28px;"><p style="text-indent:28px;"><span style="font-family:‘微软雅黑‘;font-size:14px;">Known as the FastCGI process manager, php-fpm is an improvement in PHP FastCGI implementation with more useful features for handling high-load servers and web Sites. Some of these features are listed Below:</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">·</span> <span style="font-family:‘微软雅黑‘;font-size:14px;">advanced process management capabilities with elegant (graceful) start/stop options. </span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">·</span> <span style="font-family:‘微软雅黑‘;font-size:14px;">you can listen to multiple ports and use multiple PHP configurations with different user identities/groups. </span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">·</span> <span style="font-family:‘微软雅黑‘;font-size:14px;">error Log Records. </span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">·</span> <span style="font-family:‘微软雅黑‘;font-size:14px;">supports upload Acceleration. </span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">·</span> This is <span style="font-family:‘微软雅黑‘;font-size:14px;">especially useful for the ability to end requests and erase all data while processing some time-consuming tasks. </span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">·</span> <span style="font-family:‘微软雅黑‘;font-size:14px;">supports both dynamic and static child process Rebirth. </span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">·</span> <span style="font-family:‘微软雅黑‘;font-size:14px;">IP Address restrictions are Supported. </span></p></p><p style="text-indent:28px;"><p style="text-indent:28px;"><span style="font-family:‘微软雅黑‘;font-size:14px;">Next we</span> the <span style="font-family:‘微软雅黑‘;font-size:14px;">discussion is on the CentOS 7 server running CPanel 11.52 and EA3, installing PHP-FPM on top of Nginx and Apache, and how to manage these installed multiple PHP-FPM instances through CPanel. </span></p></p><p><p><strong><span style="font-family:‘微软雅黑‘;font-size:14px;">Before we start the installation, let's look at the prerequisites for Installation.</span></strong></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Enable the modproxyfcgi module</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Enable Mpm_event</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Since we are installing PHP-FPM to a EA3 server, we need to run Easyapache to compile Apache to enable these Modules.</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">here,</span> <span style="font-family:‘微软雅黑‘;font-size:14px;">Brother Lian</span> <span style="text-decoration:underline;"><span style="font-family:‘微软雅黑‘;color:rgb(0,0,255);">PHP Training</span></span> <span style="font-family:‘微软雅黑‘;font-size:14px;">will be</span> <span style="font-family:‘微软雅黑‘;font-size:14px;">for you</span> <span style="font-family:‘微软雅黑‘;font-size:14px;">Brief Introduction</span> <span style="font-family:‘微软雅黑‘;font-size:14px;">of the following</span> <span style="font-family:‘微软雅黑‘;font-size:14px;">installation Steps. </span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Step 1: Install the Epel warehouse</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Step 2: Install the Ndeploy RPM warehouse, which is the most important step in this Installation.</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Step 3: Install the Ndeploy and Nginx plugins from the Ndeploy warehouse using Yum.</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Step 4: enable/configure Nginx as the reverse proxy.</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">After you complete these steps, install the PHP-FPM package for all available PHP versions of the server, and EA3 use the Remi Warehouse to install the Packages. You can run this Ndeploy script to download all the Packages.</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;"></span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">[email protected] [~]#/opt/ndeploy/scripts/easy_php_setup.sh</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Loaded plugins:fastestmirror, tsflags, Universal-hooks</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">EA4 | 2.9 KB 00:00:00</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Base | 3.6 KB 00:00:00</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Epel/x86_64/metalink | 9.7 KB 00:00:00</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Epel | 4.3 KB 00:00:00</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Extras | 3.4 KB 00:00:00</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Updates | 3.4 KB 00:00:00</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">(a): Epel/x86_64/updateinfo | 460 KB 00:00:00</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">(2/2): epel/x86_64/primary_db</span></p></p><p style="text-indent:28px;"><p style="text-indent:28px;"><strong><span style="font-family:‘微软雅黑‘;font-size:14px;">Running this script will install all these FPM packages for PHP 54,php 55,php 56 and PHP 70.</span></strong></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Installed Packages</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">php54-php-fpm.x86_64 5.4.45-3.el7.remi @remi</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">php55-php-fpm.x86_64 5.5.31-1.el7.remi @remi</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">php56-php-fpm.x86_64 5.6.17-1.el7.remi @remi</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">php70-php-fpm.x86_64 7.0.2-1.el7.remi @remi</span></p></p><p style="text-indent:28px;"><p style="text-indent:28px;"><strong><span style="font-family:‘微软雅黑‘;font-size:14px;">After the installation is complete, you need to enable PHP-FPM SAPI for Apache. You can run the following script to enable the PHP-FPM Instance.</span></strong></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">[email protected] [~]#/opt/ndeploy/scripts/apache_php-fpm_setup.sh Enable</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Mod_proxy_fcgi.c</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Choose one default PHP version from the list below</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">PHP70</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">PHP56</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">PHP54</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">PHP55</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Provide the exact desired version string here and press ENTER:PHP54</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">confgen:: Lxblogger</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">confgen:: blogr</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">confgen:: Saheetha</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">confgen:: SATest</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Which:no Cagefsctl in (/usr/local/jdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/ X11r6/bin:/root/bin)</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Info [rebuildhttpdconf] Missing owner for Domain server1.centos7-test.com, Force lookup to root</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Built/usr/local/apache/conf/httpd.conf OK</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">Waiting for ' httpd ' to restart gracefully ... waiting for ' httpd ' to initialize ...</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;">... Finished.</span></p></p><p style="text-indent:28px;"><p style="text-indent:28px;"><span style="font-family:‘微软雅黑‘;font-size:14px;">It will ask you which PHP version you need to run as the default version of the server, you can enter those details, and then continue to configure and generate the virtual host file for the existing domain Name.</span></p></p><p><p><span style="font-family:‘微软雅黑‘;font-size:14px;"></span></p></p><p style="text-indent:28px;"><p style="text-indent:28px;"><span style="font-family:‘微软雅黑‘;font-size:14px;">The default php-fpm on my server is PHP 54, and I'm just about to change the PHP-FPM instance of my domain name to PHP 55 ALONE. After you modify the PHP-FPM for your domain, you can confirm it by visiting the Phpinfo Page.</span></p></p><p><p><br></p></p><p><p>Apache's Php-fpm-enable Instance</p></p></span>

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.