{"id":3190,"date":"2020-06-05T16:32:22","date_gmt":"2020-06-05T11:02:22","guid":{"rendered":"https:\/\/www.24x7serversupport.com\/blog\/?p=3190"},"modified":"2023-01-26T17:45:16","modified_gmt":"2023-01-26T12:15:16","slug":"cannot-start-php-fpm-service-cannot-get-uid-for-user","status":"publish","type":"post","link":"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/","title":{"rendered":"Cannot start PHP FPM service: cannot get uid for user"},"content":{"rendered":"\n<p>Cannot start PHP FPM service:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl status php5-fpm.service<br>...<br><strong>ERROR: [pool example.com] cannot get uid for user 'john.doe'<\/strong><br>ERROR: FPM initialization failed<br>php5-fpm.service: main process exited, code=exited, status=78\/n\/a<br>Failed to start The PHP FastCGI Process Manager.<br>Unit php5-fpm.service entered failed state.<\/pre>\n\n\n\n<p>In <code>php.fpm.d<\/code> configuration file for the domain the name is equal with the name from the error:<\/p>\n\n\n\n<p>grep user \/etc\/php-fpm.d\/example.com<br>user = john.doe<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>egrep -R user \/opt\/plesk\/php\/*\/etc\/php-fpm.d\/example.com.conf<br>\/opt\/plesk\/php\/7.2\/etc\/php-fpm.d\/example.com.conf:user = john.doe<\/p>\n\n\n\n<p>In Plesk database, system user differs from PHP FPM pool username:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>plesk db &#8220;select s.login from sys_users s join hosting h on h.sys_user_id=s.id join domains d on d.id=h.dom_id where d.name=&#8217;example.com'&#8221;<br>+&#8212;&#8212;&#8212;&#8211;+<br>| login |<br>+&#8212;&#8212;&#8212;&#8211;+<br>| example |<br>+&#8212;&#8212;&#8212;&#8211;+<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Cause<\/h2>\n\n\n\n<p>The required system user is missing. <code>php-fpm<\/code> pool wasn&#8217;t updated properly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Resolution<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to Plesk<\/li>\n\n\n\n<li>Re-generate PHP settings for the domain mentioned in the error message going to <strong>Domains &gt; example.com &gt; PHP Settings &gt; OK<\/strong> <strong>Note:<\/strong> if the domain has &#8220;<strong>No hosting<\/strong>&#8221; type, change the domain&#8217;s hosting type to &#8220;<strong>Website<\/strong>&#8221; and specify username from the error.<\/li>\n<\/ol>\n\n\n\n<p>To update PHP settings of all the domains:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Connect to the server using SSH<\/li>\n\n\n\n<li>Apply changes to php_settings with the following command:<\/li>\n<\/ol>\n\n\n\n<p>\/usr\/local\/psa\/bin\/php_settings -u<br>Per-domain PHP settings of all domains were successfully updated.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cannot start PHP FPM service: systemctl status php5-fpm.service&#8230;ERROR: [pool example.com] cannot get uid for user &#8216;john.doe&#8217;ERROR: FPM initialization failedphp5-fpm.service: main process exited, code=exited, status=78\/n\/aFailed to start The PHP FastCGI Process Manager.Unit php5-fpm.service entered failed state. In php.fpm.d configuration file for the domain the name is equal with the name from the error: grep user \/etc\/php-fpm.d\/example.comuser [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3567,"comment_status":"closed","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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[35],"tags":[],"class_list":["post-3190","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plesk"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cannot start PHP FPM service: cannot get uid for user | 24x7serversupport Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cannot start PHP FPM service: cannot get uid for user | 24x7serversupport Blog\" \/>\n<meta property=\"og:description\" content=\"Cannot start PHP FPM service: systemctl status php5-fpm.service...ERROR: [pool example.com] cannot get uid for user &#039;john.doe&#039;ERROR: FPM initialization failedphp5-fpm.service: main process exited, code=exited, status=78\/n\/aFailed to start The PHP FastCGI Process Manager.Unit php5-fpm.service entered failed state. In php.fpm.d configuration file for the domain the name is equal with the name from the error: grep user \/etc\/php-fpm.d\/example.comuser [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/\" \/>\n<meta property=\"og:site_name\" content=\"24x7serversupport Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-05T11:02:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-26T12:15:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/06\/welcome-php-fpm-restart-reload-linux-unix-command.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"599\" \/>\n\t<meta property=\"og:image:height\" content=\"449\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"24x7support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:site\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"24x7support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/\",\"name\":\"Cannot start PHP FPM service: cannot get uid for user | 24x7serversupport Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/06\/welcome-php-fpm-restart-reload-linux-unix-command.webp?fit=599%2C449&ssl=1\",\"datePublished\":\"2020-06-05T11:02:22+00:00\",\"dateModified\":\"2023-01-26T12:15:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/06\/welcome-php-fpm-restart-reload-linux-unix-command.webp?fit=599%2C449&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/06\/welcome-php-fpm-restart-reload-linux-unix-command.webp?fit=599%2C449&ssl=1\",\"width\":599,\"height\":449},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.24x7serversupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cannot start PHP FPM service: cannot get uid for user\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/\",\"name\":\"24x7serversupport Blog\",\"description\":\"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\",\"name\":\"24x7support\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cannot start PHP FPM service: cannot get uid for user | 24x7serversupport Blog","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":"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/","og_locale":"en_US","og_type":"article","og_title":"Cannot start PHP FPM service: cannot get uid for user | 24x7serversupport Blog","og_description":"Cannot start PHP FPM service: systemctl status php5-fpm.service...ERROR: [pool example.com] cannot get uid for user 'john.doe'ERROR: FPM initialization failedphp5-fpm.service: main process exited, code=exited, status=78\/n\/aFailed to start The PHP FastCGI Process Manager.Unit php5-fpm.service entered failed state. In php.fpm.d configuration file for the domain the name is equal with the name from the error: grep user \/etc\/php-fpm.d\/example.comuser [&hellip;]","og_url":"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/","og_site_name":"24x7serversupport Blog","article_published_time":"2020-06-05T11:02:22+00:00","article_modified_time":"2023-01-26T12:15:16+00:00","og_image":[{"width":599,"height":449,"url":"https:\/\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/06\/welcome-php-fpm-restart-reload-linux-unix-command.webp","type":"image\/webp"}],"author":"24x7support","twitter_card":"summary_large_image","twitter_creator":"@24x7serversuppo","twitter_site":"@24x7serversuppo","twitter_misc":{"Written by":"24x7support","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/","url":"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/","name":"Cannot start PHP FPM service: cannot get uid for user | 24x7serversupport Blog","isPartOf":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/#primaryimage"},"image":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/06\/welcome-php-fpm-restart-reload-linux-unix-command.webp?fit=599%2C449&ssl=1","datePublished":"2020-06-05T11:02:22+00:00","dateModified":"2023-01-26T12:15:16+00:00","author":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401"},"breadcrumb":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/#primaryimage","url":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/06\/welcome-php-fpm-restart-reload-linux-unix-command.webp?fit=599%2C449&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/06\/welcome-php-fpm-restart-reload-linux-unix-command.webp?fit=599%2C449&ssl=1","width":599,"height":449},{"@type":"BreadcrumbList","@id":"https:\/\/www.24x7serversupport.com\/blog\/cannot-start-php-fpm-service-cannot-get-uid-for-user\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.24x7serversupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Cannot start PHP FPM service: cannot get uid for user"}]},{"@type":"WebSite","@id":"https:\/\/www.24x7serversupport.com\/blog\/#website","url":"https:\/\/www.24x7serversupport.com\/blog\/","name":"24x7serversupport Blog","description":"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401","name":"24x7support","url":"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/06\/welcome-php-fpm-restart-reload-linux-unix-command.webp?fit=599%2C449&ssl=1","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/3190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/comments?post=3190"}],"version-history":[{"count":3,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/3190\/revisions"}],"predecessor-version":[{"id":3568,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/3190\/revisions\/3568"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media\/3567"}],"wp:attachment":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media?parent=3190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/categories?post=3190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/tags?post=3190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}