{"id":9844,"date":"2021-11-07T11:51:08","date_gmt":"2021-11-07T16:51:08","guid":{"rendered":"http:\/\/prod.main.brightwhiz.com\/?p=9844"},"modified":"2021-12-03T13:34:16","modified_gmt":"2021-12-03T13:34:16","slug":"find-php-ini-file-location-ubuntu-centos-linux","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/","title":{"rendered":"How to Reload, Start, Stop, Restart PHP-FPM Service on Ubuntu | Centos Linux"},"content":{"rendered":"\n

PHP-FPM is a FastCGI process manager for PHP used with many popular web servers like Apache and Nginx among others. You would want to reload or restart PHP-FPM whenever you change the PHP settings.<\/p>\n\n\n\n

The PHP settings can be changed from the appropriate php.ini file or PHP-FPM config file. You can find the appropriate php.ini file by following this guide<\/a>.<\/p>\n\n\n\n

These are the various commands to reload, start, stop, and restart PHP-FPM Service depending on the platform that you have. The examples below are for PHP 7.4. For other versions, you have to change the command to correspond to the appropriate version.<\/p>\n\n\n\n

Generally, you can find out the PHP version by running this command:<\/p>\n\n\n\n

$ php -v<\/code><\/pre>\n\n\n\n

with similar results:<\/p>\n\n\n\n

PHP 8.0.12 (cli) (built: Oct 22 2021 12:34:00) ( NTS )\nCopyright (c) The PHP Group\nZend Engine v4.0.12, Copyright (c) Zend Technologies\n    with Zend OPcache v8.0.12, Copyright (c), by Zend Technologies\n    with Xdebug v3.1.1, Copyright (c) 2002-2021, by Derick Rethans<\/code><\/pre>\n\n\n\n

Find out more details here<\/a>.<\/p>\n\n\n\n

systemd Ubuntu\/Debian Linux (Ubuntu 16.04; 18.04; 20.02 LTS or Debian Linux 8.x+)<\/p>\n\n\n\n

$ sudo systemctl start php7.4-fpm.service\n$ sudo systemctl stop php7.4-fpm.service\n$ sudo systemctl restart php7.4-fpm.service\n$ sudo systemctl reload php7.4-fpm.service<\/code><\/pre>\n\n\n\n

Or reload, start, stop, and restart PHP-FPM Service for both systemd and<\/strong> non-systemd distros (prior to Ubuntu Linux 16.04 LTS or Debian Linux 8).<\/p>\n\n\n\n

$ sudo service php7.4-fpm start\n$ sudo service php7.4-fpm stop\n$ sudo service php7.4-fpm restart\n$ sudo service php7.4-fpm reload<\/code><\/pre>\n\n\n\n

How to Reload, Start, Stop, Restart php5-fpm (php version 5.x) on Ubuntu\/Debian Linux.<\/p>\n\n\n\n

$ sudo service php5-fpm start\n$ sudo service php5-fpm stop\n$ sudo service php5-fpm restart\n$ sudo service php5-fpm reload<\/code><\/pre>\n\n\n\n

How to Reload, Start, Stop, Restart PHP-FPM on CentOS\/RHEL 7.<\/p>\n\n\n\n

$ sudo systemctl start php-fpm\n$ sudo systemctl stop php-fpm\n$ sudo systemctl restart php-fpm\n$ sudo systemctl reload php-fpm<\/code><\/pre>\n\n\n\n

How to Reload, Start, Stop, Restart PHP-FPM on CentOS\/RHEL 6.x or older.<\/p>\n\n\n\n

$ sudo service php-fpm start\n$ sudo service php-fpm stop\n$ sudo service php-fpm restart\n$ sudo service php-fpm reload<\/code><\/pre>\n\n\n\n

Bonus: How to Reload, Start, Stop, Restart PHP-FPM on FreeBSD Unix?<\/p>\n\n\n\n

# \/usr\/local\/etc\/rc.d\/php-fpm start\n# \/usr\/local\/etc\/rc.d\/php-fpm stop\n# \/usr\/local\/etc\/rc.d\/php-fpm restart\n# \/usr\/local\/etc\/rc.d\/php-fpm reload<\/code><\/pre>\n\n\n\n

Or with the service command<\/p>\n\n\n\n

# service php-fpm start\n# service php-fpm stop\n# service php-fpm restart\n# service php-fpm reload<\/code><\/pre>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

PHP-FPM is a FastCGI process manager for PHP used with many popular web servers like Apache and Nginx among others. You would want to reload or restart PHP-FPM whenever you…<\/p>\n","protected":false},"author":1,"featured_media":10738,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,9,16],"tags":[],"yoast_head":"\nHow to Reload, Start, Stop, Restart PHP-FPM Service on Ubuntu | Centos<\/title>\n<meta name=\"description\" content=\"This guide will show you how to reload, start, stop, restart PHP_FPM service on Ubuntu\/Debian and Centos\/RHEL 7 Linux distros\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Reload, Start, Stop, Restart PHP-FPM Service on Ubuntu | Centos\" \/>\n<meta property=\"og:description\" content=\"This guide will show you how to reload, start, stop, restart PHP_FPM service on Ubuntu\/Debian and Centos\/RHEL 7 Linux distros\" \/>\n<meta property=\"og:url\" content=\"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Brightwhiz.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/brightwhiz\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-07T16:51:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-03T13:34:16+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/Restart-PHP-FPM-Service.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Michael Bright\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:site\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Bright\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/\"},\"author\":{\"name\":\"Michael Bright\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\"},\"headline\":\"How to Reload, Start, Stop, Restart PHP-FPM Service on Ubuntu | Centos Linux\",\"datePublished\":\"2021-11-07T16:51:08+00:00\",\"dateModified\":\"2021-12-03T13:34:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/\"},\"wordCount\":221,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/Restart-PHP-FPM-Service.jpg\",\"articleSection\":[\"Guides\",\"How To\",\"Technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/\",\"url\":\"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/\",\"name\":\"How to Reload, Start, Stop, Restart PHP-FPM Service on Ubuntu | Centos\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/Restart-PHP-FPM-Service.jpg\",\"datePublished\":\"2021-11-07T16:51:08+00:00\",\"dateModified\":\"2021-12-03T13:34:16+00:00\",\"description\":\"This guide will show you how to reload, start, stop, restart PHP_FPM service on Ubuntu\/Debian and Centos\/RHEL 7 Linux distros\",\"breadcrumb\":{\"@id\":\"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/#primaryimage\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/Restart-PHP-FPM-Service.jpg\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/Restart-PHP-FPM-Service.jpg\",\"width\":1200,\"height\":630,\"caption\":\"Restart PHP FPM Service\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/local.brightwhiz\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Reload, Start, Stop, Restart PHP-FPM Service on Ubuntu | Centos Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/local.brightwhiz\/#website\",\"url\":\"http:\/\/local.brightwhiz\/\",\"name\":\"Brightwhiz.com\",\"description\":\"Best Tech guides, Tutorials, and News\",\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/local.brightwhiz\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/local.brightwhiz\/#organization\",\"name\":\"Brightwhiz\",\"url\":\"http:\/\/local.brightwhiz\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"width\":706,\"height\":135,\"caption\":\"Brightwhiz\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/brightwhiz\/\",\"https:\/\/twitter.com\/brightwhizmag\",\"https:\/\/instagram.com\/bright_whiz\/\",\"https:\/\/www.pinterest.com\/sobbayi\/\",\"https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\",\"name\":\"Michael Bright\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"caption\":\"Michael Bright\"},\"sameAs\":[\"https:\/\/sobbayi.com\"],\"url\":\"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Reload, Start, Stop, Restart PHP-FPM Service on Ubuntu | Centos","description":"This guide will show you how to reload, start, stop, restart PHP_FPM service on Ubuntu\/Debian and Centos\/RHEL 7 Linux distros","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Reload, Start, Stop, Restart PHP-FPM Service on Ubuntu | Centos","og_description":"This guide will show you how to reload, start, stop, restart PHP_FPM service on Ubuntu\/Debian and Centos\/RHEL 7 Linux distros","og_url":"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/","og_site_name":"Brightwhiz.com","article_publisher":"https:\/\/www.facebook.com\/brightwhiz\/","article_published_time":"2021-11-07T16:51:08+00:00","article_modified_time":"2021-12-03T13:34:16+00:00","og_image":[{"width":1200,"height":630,"url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/Restart-PHP-FPM-Service.jpg","type":"image\/jpeg"}],"author":"Michael Bright","twitter_card":"summary_large_image","twitter_creator":"@brightwhizmag","twitter_site":"@brightwhizmag","twitter_misc":{"Written by":"Michael Bright","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/#article","isPartOf":{"@id":"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/"},"author":{"name":"Michael Bright","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32"},"headline":"How to Reload, Start, Stop, Restart PHP-FPM Service on Ubuntu | Centos Linux","datePublished":"2021-11-07T16:51:08+00:00","dateModified":"2021-12-03T13:34:16+00:00","mainEntityOfPage":{"@id":"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/"},"wordCount":221,"commentCount":0,"publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"image":{"@id":"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/Restart-PHP-FPM-Service.jpg","articleSection":["Guides","How To","Technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/","url":"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/","name":"How to Reload, Start, Stop, Restart PHP-FPM Service on Ubuntu | Centos","isPartOf":{"@id":"http:\/\/local.brightwhiz\/#website"},"primaryImageOfPage":{"@id":"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/#primaryimage"},"image":{"@id":"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/Restart-PHP-FPM-Service.jpg","datePublished":"2021-11-07T16:51:08+00:00","dateModified":"2021-12-03T13:34:16+00:00","description":"This guide will show you how to reload, start, stop, restart PHP_FPM service on Ubuntu\/Debian and Centos\/RHEL 7 Linux distros","breadcrumb":{"@id":"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/#primaryimage","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/Restart-PHP-FPM-Service.jpg","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/Restart-PHP-FPM-Service.jpg","width":1200,"height":630,"caption":"Restart PHP FPM Service"},{"@type":"BreadcrumbList","@id":"http:\/\/local.brightwhiz\/find-php-ini-file-location-ubuntu-centos-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/local.brightwhiz\/"},{"@type":"ListItem","position":2,"name":"How to Reload, Start, Stop, Restart PHP-FPM Service on Ubuntu | Centos Linux"}]},{"@type":"WebSite","@id":"http:\/\/local.brightwhiz\/#website","url":"http:\/\/local.brightwhiz\/","name":"Brightwhiz.com","description":"Best Tech guides, Tutorials, and News","publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/local.brightwhiz\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/local.brightwhiz\/#organization","name":"Brightwhiz","url":"http:\/\/local.brightwhiz\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","width":706,"height":135,"caption":"Brightwhiz"},"image":{"@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/brightwhiz\/","https:\/\/twitter.com\/brightwhizmag","https:\/\/instagram.com\/bright_whiz\/","https:\/\/www.pinterest.com\/sobbayi\/","https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ"]},{"@type":"Person","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32","name":"Michael Bright","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","caption":"Michael Bright"},"sameAs":["https:\/\/sobbayi.com"],"url":"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/"}]}},"_links":{"self":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/9844"}],"collection":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/comments?post=9844"}],"version-history":[{"count":0,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/9844\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media\/10738"}],"wp:attachment":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media?parent=9844"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/categories?post=9844"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/tags?post=9844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}