{"id":1004,"date":"2018-11-25T09:08:40","date_gmt":"2018-11-25T02:08:40","guid":{"rendered":"https:\/\/www.whplus.com\/blog\/?p=1004"},"modified":"2018-11-25T09:12:14","modified_gmt":"2018-11-25T02:12:14","slug":"edit-default-php-fpm-settings","status":"publish","type":"post","link":"https:\/\/www.whplus.com\/blog\/2018\/11\/25\/edit-default-php-fpm-settings.html","title":{"rendered":"Edit Default PHP-FPM Settings"},"content":{"rendered":"<p>If you have many cPanel accounts, you may prefer to change the default settings for newly created cPanel accounts.<\/p>\n<ol>\n<li>As root, SSH into your server or launch WHM terminal.<\/li>\n<li>Create a system_pool_defaults.yaml file in the \/var\/cpanel\/ApachePHPFPM directory. To do this using nano, type the following:\n<p><code>nano \/var\/cpanel\/ApachePHPFPM\/system_pool_defaults.yaml<\/code><\/p>\n<p>Add the following to the new file:<\/p>\n<p><code>pm_max_children: 500<br \/>\npm_max_requests: 2000<br \/>\npm_min_spare_servers: 1<br \/>\npm_max_spare_servers: 25<br \/>\npm_process_idle_timeout: 150 <\/code><\/p>\n<p>pm_max_children: Max number of child processes<br \/>\npm_max_requests: Number of requests a child process executes before respawning.<br \/>\npm_min_spare_servers: Minimum idle server processes<br \/>\npm_max_spare_servers: Maximum idle server processes<br \/>\npm_process_idle_timeout: Time until an idle process is killed in s(econds), m(inutes), m(inutes), h(ours), or d(ays).<\/li>\n<li>Save and exit the file. Using nano, press Control and x for the save prompt before exiting. Press y, then Enter ? to save the file.<\/li>\n<li>Rebuild PHP-FPM using the following command:\n<p><code>\/usr\/local\/cpanel\/scripts\/php_fpm_config --rebuild<\/code><\/li>\n<li>Restart PHP-FPM using the following command:\n<p><code>\/scripts\/restartsrv_apache_php_fpm<\/code><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>If you have many cPanel accounts, you may prefer to change the default settings for newly created cPanel accounts. As root, SSH into your server or launch WHM terminal. Create a system_pool_defaults.yaml file in the \/var\/cpanel\/ApachePHPFPM directory. To do this using nano, type the following: nano \/var\/cpanel\/ApachePHPFPM\/system_pool_defaults.yaml Add the following to the new file: pm_max_children:\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.whplus.com\/blog\/2018\/11\/25\/edit-default-php-fpm-settings.html\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1004","post","type-post","status-publish","format-standard","hentry","category-tutorial"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"If you have many cPanel accounts, you may prefer to change the default settings for newly created cPanel accounts. As root, SSH into your server or launch WHM terminal. Create a system_pool_defaults.yaml file in the \/var\/cpanel\/ApachePHPFPM directory. To do this using nano, type the following: nano \/var\/cpanel\/ApachePHPFPM\/system_pool_defaults.yaml Add the following to the new file: pm_max_children:\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"whplus\"\/>\n\t<meta name=\"google-site-verification\" content=\"F5J0SGlaGQ2pp3SIm58KggrITtNTptKPB73P9hpRpfY\" \/>\n\t<meta name=\"keywords\" content=\"tutorial\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.whplus.com\/blog\/2018\/11\/25\/edit-default-php-fpm-settings.html\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@whplus\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Edit Default PHP-FPM Settings | Whplus Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"If you have many cPanel accounts, you may prefer to change the default settings for newly created cPanel accounts. As root, SSH into your server or launch WHM terminal. Create a system_pool_defaults.yaml file in the \/var\/cpanel\/ApachePHPFPM directory. To do this using nano, type the following: nano \/var\/cpanel\/ApachePHPFPM\/system_pool_defaults.yaml Add the following to the new file: pm_max_children:\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@whplus\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.whplus.com\/blog\/wp-content\/uploads\/2021\/03\/logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2018\\\/11\\\/25\\\/edit-default-php-fpm-settings.html#article\",\"name\":\"Edit Default PHP-FPM Settings | Whplus Blog\",\"headline\":\"Edit Default PHP-FPM Settings\",\"author\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/logo.png\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#articleImage\",\"width\":150,\"height\":60},\"datePublished\":\"2018-11-25T09:08:40+07:00\",\"dateModified\":\"2018-11-25T09:12:14+07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2018\\\/11\\\/25\\\/edit-default-php-fpm-settings.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2018\\\/11\\\/25\\\/edit-default-php-fpm-settings.html#webpage\"},\"articleSection\":\"Tutorial\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2018\\\/11\\\/25\\\/edit-default-php-fpm-settings.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.whplus.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/category\\\/tutorial#listItem\",\"name\":\"Tutorial\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/category\\\/tutorial#listItem\",\"position\":2,\"name\":\"Tutorial\",\"item\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/category\\\/tutorial\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2018\\\/11\\\/25\\\/edit-default-php-fpm-settings.html#listItem\",\"name\":\"Edit Default PHP-FPM Settings\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2018\\\/11\\\/25\\\/edit-default-php-fpm-settings.html#listItem\",\"position\":3,\"name\":\"Edit Default PHP-FPM Settings\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/category\\\/tutorial#listItem\",\"name\":\"Tutorial\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#organization\",\"name\":\"Whplus\",\"description\":\"Informasi Seputar Layanan Whplus\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/logo.png\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2018\\\/11\\\/25\\\/edit-default-php-fpm-settings.html\\\/#organizationLogo\",\"width\":150,\"height\":60},\"image\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2018\\\/11\\\/25\\\/edit-default-php-fpm-settings.html\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/twitter.com\\\/whplus\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus#author\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus\",\"name\":\"whplus\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2018\\\/11\\\/25\\\/edit-default-php-fpm-settings.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5a5270c9fb35780ddadb175b96b0d198683692a2d67525ef5477ca2b11b18ad3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"whplus\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2018\\\/11\\\/25\\\/edit-default-php-fpm-settings.html#webpage\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2018\\\/11\\\/25\\\/edit-default-php-fpm-settings.html\",\"name\":\"Edit Default PHP-FPM Settings | Whplus Blog\",\"description\":\"If you have many cPanel accounts, you may prefer to change the default settings for newly created cPanel accounts. As root, SSH into your server or launch WHM terminal. Create a system_pool_defaults.yaml file in the \\\/var\\\/cpanel\\\/ApachePHPFPM directory. To do this using nano, type the following: nano \\\/var\\\/cpanel\\\/ApachePHPFPM\\\/system_pool_defaults.yaml Add the following to the new file: pm_max_children:\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2018\\\/11\\\/25\\\/edit-default-php-fpm-settings.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus#author\"},\"datePublished\":\"2018-11-25T09:08:40+07:00\",\"dateModified\":\"2018-11-25T09:12:14+07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/\",\"name\":\"Whplus Blog\",\"description\":\"Informasi Seputar Layanan Whplus\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Edit Default PHP-FPM Settings | Whplus Blog","description":"If you have many cPanel accounts, you may prefer to change the default settings for newly created cPanel accounts. As root, SSH into your server or launch WHM terminal. Create a system_pool_defaults.yaml file in the \/var\/cpanel\/ApachePHPFPM directory. To do this using nano, type the following: nano \/var\/cpanel\/ApachePHPFPM\/system_pool_defaults.yaml Add the following to the new file: pm_max_children:","canonical_url":"https:\/\/www.whplus.com\/blog\/2018\/11\/25\/edit-default-php-fpm-settings.html","robots":"max-image-preview:large","keywords":"tutorial","webmasterTools":{"google-site-verification":"F5J0SGlaGQ2pp3SIm58KggrITtNTptKPB73P9hpRpfY","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.whplus.com\/blog\/2018\/11\/25\/edit-default-php-fpm-settings.html#article","name":"Edit Default PHP-FPM Settings | Whplus Blog","headline":"Edit Default PHP-FPM Settings","author":{"@id":"https:\/\/www.whplus.com\/blog\/author\/whplus#author"},"publisher":{"@id":"https:\/\/www.whplus.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.whplus.com\/blog\/wp-content\/uploads\/2021\/03\/logo.png","@id":"https:\/\/www.whplus.com\/blog\/#articleImage","width":150,"height":60},"datePublished":"2018-11-25T09:08:40+07:00","dateModified":"2018-11-25T09:12:14+07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.whplus.com\/blog\/2018\/11\/25\/edit-default-php-fpm-settings.html#webpage"},"isPartOf":{"@id":"https:\/\/www.whplus.com\/blog\/2018\/11\/25\/edit-default-php-fpm-settings.html#webpage"},"articleSection":"Tutorial"},{"@type":"BreadcrumbList","@id":"https:\/\/www.whplus.com\/blog\/2018\/11\/25\/edit-default-php-fpm-settings.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.whplus.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/category\/tutorial#listItem","name":"Tutorial"}},{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/category\/tutorial#listItem","position":2,"name":"Tutorial","item":"https:\/\/www.whplus.com\/blog\/category\/tutorial","nextItem":{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/2018\/11\/25\/edit-default-php-fpm-settings.html#listItem","name":"Edit Default PHP-FPM Settings"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/2018\/11\/25\/edit-default-php-fpm-settings.html#listItem","position":3,"name":"Edit Default PHP-FPM Settings","previousItem":{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/category\/tutorial#listItem","name":"Tutorial"}}]},{"@type":"Organization","@id":"https:\/\/www.whplus.com\/blog\/#organization","name":"Whplus","description":"Informasi Seputar Layanan Whplus","url":"https:\/\/www.whplus.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.whplus.com\/blog\/wp-content\/uploads\/2021\/03\/logo.png","@id":"https:\/\/www.whplus.com\/blog\/2018\/11\/25\/edit-default-php-fpm-settings.html\/#organizationLogo","width":150,"height":60},"image":{"@id":"https:\/\/www.whplus.com\/blog\/2018\/11\/25\/edit-default-php-fpm-settings.html\/#organizationLogo"},"sameAs":["https:\/\/twitter.com\/whplus"]},{"@type":"Person","@id":"https:\/\/www.whplus.com\/blog\/author\/whplus#author","url":"https:\/\/www.whplus.com\/blog\/author\/whplus","name":"whplus","image":{"@type":"ImageObject","@id":"https:\/\/www.whplus.com\/blog\/2018\/11\/25\/edit-default-php-fpm-settings.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/5a5270c9fb35780ddadb175b96b0d198683692a2d67525ef5477ca2b11b18ad3?s=96&d=mm&r=g","width":96,"height":96,"caption":"whplus"}},{"@type":"WebPage","@id":"https:\/\/www.whplus.com\/blog\/2018\/11\/25\/edit-default-php-fpm-settings.html#webpage","url":"https:\/\/www.whplus.com\/blog\/2018\/11\/25\/edit-default-php-fpm-settings.html","name":"Edit Default PHP-FPM Settings | Whplus Blog","description":"If you have many cPanel accounts, you may prefer to change the default settings for newly created cPanel accounts. As root, SSH into your server or launch WHM terminal. Create a system_pool_defaults.yaml file in the \/var\/cpanel\/ApachePHPFPM directory. To do this using nano, type the following: nano \/var\/cpanel\/ApachePHPFPM\/system_pool_defaults.yaml Add the following to the new file: pm_max_children:","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.whplus.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.whplus.com\/blog\/2018\/11\/25\/edit-default-php-fpm-settings.html#breadcrumblist"},"author":{"@id":"https:\/\/www.whplus.com\/blog\/author\/whplus#author"},"creator":{"@id":"https:\/\/www.whplus.com\/blog\/author\/whplus#author"},"datePublished":"2018-11-25T09:08:40+07:00","dateModified":"2018-11-25T09:12:14+07:00"},{"@type":"WebSite","@id":"https:\/\/www.whplus.com\/blog\/#website","url":"https:\/\/www.whplus.com\/blog\/","name":"Whplus Blog","description":"Informasi Seputar Layanan Whplus","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.whplus.com\/blog\/#organization"}}]},"twitter:card":"summary","twitter:site":"@whplus","twitter:title":"Edit Default PHP-FPM Settings | Whplus Blog","twitter:description":"If you have many cPanel accounts, you may prefer to change the default settings for newly created cPanel accounts. As root, SSH into your server or launch WHM terminal. Create a system_pool_defaults.yaml file in the \/var\/cpanel\/ApachePHPFPM directory. To do this using nano, type the following: nano \/var\/cpanel\/ApachePHPFPM\/system_pool_defaults.yaml Add the following to the new file: pm_max_children:","twitter:creator":"@whplus","twitter:image":"https:\/\/www.whplus.com\/blog\/wp-content\/uploads\/2021\/03\/logo.png"},"aioseo_meta_data":{"post_id":"1004","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-09 02:17:33","updated":"2022-09-14 10:52:57","seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/1004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/comments?post=1004"}],"version-history":[{"count":4,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/1004\/revisions"}],"predecessor-version":[{"id":1008,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/1004\/revisions\/1008"}],"wp:attachment":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/media?parent=1004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/categories?post=1004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/tags?post=1004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}