<br>
<b>Warning</b>:  Undefined array key "HTTP_REFERER" in <b>/home/webhostingchenna/domains/webhostingchennai.co.in/public_html/blog/wp-content/plugins/wp-linkbuilder/plugin/plugin_class.inc.php</b> on line <b>637</b><br>
{"id":1086,"date":"2019-02-18T16:43:05","date_gmt":"2019-02-18T11:13:05","guid":{"rendered":"http:\/\/www.webhostingchennai.co.in\/blog\/?p=1086"},"modified":"2019-03-21T15:54:44","modified_gmt":"2019-03-21T10:24:44","slug":"customiz-php-fpm-directives","status":"publish","type":"post","link":"https:\/\/www.webhostingchennai.co.in\/blog\/customiz-php-fpm-directives\/","title":{"rendered":"How to enable and customize PHP-FPM directives for a domain\/server wide"},"content":{"rendered":"<h4><span style=""><strong>How to enable and customize PHP-FPM directives for a domain or server wide in cPanel<\/strong><\/span><\/h4>\n<p><strong>What is PHP-FPM?<\/strong><\/p>\n<p>PHP FastCGI Process Manager (PHP-FPM) is an alternative FastCGI daemon for PHP that makes a website capable of handling strenuous loads. By setting specific amounts of resources, it even allows a host to process a domain\u2019s requests. To accomplish this, the PHP-FPM maintains \u201cpools\u201d (workers available to respond to PHP requests) where these \u201cpools\u201d of workers allow the website to handle more requests than it normally could.<\/p>\n</p><p>PHP-FPM is faster than traditional CGI-based methods such as SUPHP for multi-user PHP environments. It does not overload a system\u2019s memory with PHP from Apache processes like ruid2+php-dso does. This method is useful when a user receives extra traffic that requires resources to process it. For example, your website may receive a spike in traffic after a TV show features it or is linked from a popular website.<\/p>\n</p><p><strong>How to install PHP-FPM?<\/strong><\/p>\n<p>cPanel supports PHP-FPM directives with the help of EasyApache 4 and Multi-PHP manager. You can check the Multi-PHP manager to see if the PHP-FPM directives is installed or enabled on the server. If the required packages are not enabled, you can directly install them from Multi-PHP manager itself. You may install them using yum too.<\/p>\n</p><p>&nbsp;<\/p>\n</p><pre>yum install ea-php54-php-fpm ea-php55-php-fpm ea-php56-php-fpm ea-php70-php-fpm ea-php71-php-fpm ea-apache24-mod_proxy_fcgi<\/pre>\n<p><strong>How to customize Pool values?<\/strong><\/p>\n<p>Once you have installed the necessary package through EasyApache 4, you can enable PHP-FPM to accounts using Multi-PHP manager. However, you will only be able to edit the pool values per domain basis and only a few directives through the Multi-PHP manager. There will be cases where you have a large number of accounts on the server and a default value of directive is very low (Default value for pm.max_children is 5). Then you need to customize the cPanel template and use it to generate pool configuration for all the domains.<\/p>\n</p><p><strong>Set a domain\u2019s pool options<\/strong><\/p>\n<p>Go to Multi-PHP manager and Click \u2018Pool Options\u2019 next to your desired domain. The system will display the available options and their defaults and limits. Enter your desired options for Max Children, Process Idle Timeout (s), and Max Requests. Click Save.<\/p>\n</p><p><strong>How to customize PHP-FPM values server-wide?<\/strong><\/p>\n<p>The system uses the following configuration files to implement PHP-FPM:<\/p>\n</p><p><em>\/var\/cpanel\/ApachePHPFPM\/system.yaml :<\/em> This file contains system level settings.<br>\n<em>\/var\/cpanel\/ApachePHPFPM\/system_pool_defaults.yaml\u00a0<\/em>: The system uses this file to generate each domain\u2019s pool.<\/p>\n<p>You can use the following as an example.<\/p>\n</p><p>A complete configuration directive line would resemble the following example:<\/p>\n</p><p>php_value_open_basedir: { name: \u2018php_value[open_basedir]\u2019, value: \u201c[% documentroot %]\u201d }<\/p>\n</p><p>Once you have made the changes you will need to run the rebuild command to apply the same to all the domains.<\/p>\n</p><p>Please share your valuable comments to improve better.<\/p>\n</p><p>For monitoring real time resource usage with <a href="">cloud linux(Hosting)<\/a>\u00a0&#8211; LVE , please <a href="">click here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1204,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[97],"tags":[129,127,128],"class_list":["post-1086","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","tag-customizing-php-fpm","tag-enabling-and-customizing-php-fpm","tag-enabling-php-fpm"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2019\/02\/phpfpm.jpg?fit=640%2C260&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9NOHH-hw","jetpack-related-posts":[{"id":640,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/installing-lighttpd-with-php-fpm\/","url_meta":{"origin":1086,"position":0},"title":"Installing Lighttpd with PHP-FPM and Mysql on CentOS 7","author":"Cavin","date":"November 2, 2017","format":false,"excerpt":"Installing Lighttpd with PHP-FPM and Mysql on CentOS 7.3 Lighttpd ? Lets see about it :\u00a0lighttpd\u00a0 a web server for Linux and Windows operating systems, also an alternative to Apache web server. It is also called Lighty. It is designed to be secure, fast, standards-compliant, and flexible while being optimized\u2026","rel":"","context":"In &quot;VPS&quot;","block_context":{"text":"VPS","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/vps\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/11\/lighttpd.jpg?fit=640%2C260&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/11\/lighttpd.jpg?fit=640%2C260&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/11\/lighttpd.jpg?fit=640%2C260&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":1412,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/installing-icinga-web-2-on-centos7\/","url_meta":{"origin":1086,"position":1},"title":"Installing Icinga web 2 on CentOS7 \/ RHEL 7","author":"Cavin","date":"March 30, 2019","format":false,"excerpt":"Installing Icinga web 2 on CentOS7 \/ RHEL 7 In this post we are going to see the installation of Icinga web 2, a web interface for Icinga 2 where we can monitor our whole infrastructure in single place. Icinga is an open-source computer system and network monitoring application. It\u2026","rel":"","context":"In &quot;MONITORING TOOLS&quot;","block_context":{"text":"MONITORING TOOLS","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/monitoring-tools\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2019\/03\/icingaweb2.jpg?fit=640%2C260&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2019\/03\/icingaweb2.jpg?fit=640%2C260&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2019\/03\/icingaweb2.jpg?fit=640%2C260&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":1139,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/pyxsoft-antimalware-guide\/","url_meta":{"origin":1086,"position":2},"title":"Pyxsoft AntiMalware : Installation and Configuration (Step by Step Guide)","author":"Cavin","date":"March 7, 2019","format":false,"excerpt":"Pyxsoft AntiMalware : Installation and Configuration (Step by Step Guide) Pyxsoft antimalware Plugin for cPanel\/WHM protects your server from attacker scripts such as c99shell, r57shell, ANIShell, and hundreds more. It is a real-time Anti Malware for cPanel\/WHM. Attackers can take control of your servers or can damage your customer\u2019s data\u2026","rel":"","context":"In &quot;VPS&quot;","block_context":{"text":"VPS","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/vps\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2019\/02\/pyxsoft.jpg?fit=640%2C240&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2019\/02\/pyxsoft.jpg?fit=640%2C240&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2019\/02\/pyxsoft.jpg?fit=640%2C240&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":543,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/installing-suphp-centos-7-3\/","url_meta":{"origin":1086,"position":3},"title":"Installing SuPHP on CentOS 7.3","author":"Cavin","date":"July 19, 2017","format":false,"excerpt":"This tutorial shows, how you can install SuPHP on CentOS 7.3. SuPHP is an apache module that allows PHP to access under a different Linux user than the apache user. This improves the security of hosted websites as you can run the PHP scripts of each website under a different\u2026","rel":"","context":"In &quot;LINUX&quot;","block_context":{"text":"LINUX","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/linux\/"},"img":{"alt_text":"","src":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/z26d0wew.bmp","width":350,"height":200,"srcset":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/z26d0wew.bmp 1x, https:\/\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/z26d0wew.bmp 1.5x, https:\/\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/z26d0wew.bmp 2x"},"classes":[]},{"id":1836,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/how-to-increase-php-max-input-var\/","url_meta":{"origin":1086,"position":4},"title":"How to increase the PHP Max Input Vars","author":"Cavin","date":"February 24, 2024","format":false,"excerpt":"PHP Max Input Var variable max_input_vars was introduced in PHP as a security measure to limit the maximum number of POST variables sent. It represents the number of variables your server can use to run a function. If you get the error \u201cIncrease PHP Max Input Vars Limit\u201d in WordPress,\u2026","rel":"","context":"In &quot;VPS&quot;","block_context":{"text":"VPS","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/vps\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-24-092113.png?fit=850%2C446&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-24-092113.png?fit=850%2C446&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-24-092113.png?fit=850%2C446&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-24-092113.png?fit=850%2C446&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1966,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/how-to-install-laravel-with-softaculous\/","url_meta":{"origin":1086,"position":5},"title":"How to Install Laravel with Softaculous","author":"Cavin","date":"July 22, 2024","format":false,"excerpt":"In this article, we will learn\u00a0how to install Laravel, the popular PHP framework. In order for\u00a0Laravel\u00a0to work correctly, you must make sure your server or cPanel account is\u00a0configured for PHP version 8.1\u00a0or above. What Is Laravel? Laravel is an open-source PHP framework using those technicalities to create innovation and fresh\u2026","rel":"","context":"In &quot;CMS&quot;","block_context":{"text":"CMS","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/cms\/"},"img":{"alt_text":"Laravel","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/07\/Screenshot-2024-07-22-210418-1024x568.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/07\/Screenshot-2024-07-22-210418-1024x568.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/07\/Screenshot-2024-07-22-210418-1024x568.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/07\/Screenshot-2024-07-22-210418-1024x568.png?resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts\/1086","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/comments?post=1086"}],"version-history":[{"count":4,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts\/1086\/revisions"}],"predecessor-version":[{"id":1115,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts\/1086\/revisions\/1115"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/media\/1204"}],"wp:attachment":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/media?parent=1086"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/categories?post=1086"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/tags?post=1086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}</p></a></a></p></em></em></p></strong></p></strong></p></strong></p></pre></strong></p></strong></p></strong></span></h4>