Bobcares

WeSupport

Call Us! 1-800-383-5193
Call Us! 1-800-383-5193
Call Us! 1-800-383-5193

Need Help?

Emergency Response Time custom

Our experts have had an average response time of 11.06 minutes in March 2021 to fix urgent issues.

We will keep your servers stable, secure and fast at all times for one fixed price.

The plesk-php7x-fpm service crashes during the reload after domain name change

by | Apr 29, 2021

The plesk-php7x-fpm service crashes during the reload after domain name change? How to resolve

As part of our Server Management Services, we assist our customers with several PHP queries.

Today, let us see how to resolve the error.

 

Cause for plesk-php7x-fpm service crashes during the reload after domain name change

This is due to a Plesk bug, which is fixed in Plesk Obsidian.

  • Domain uses PHP FPM handler under Plesk > Domains > example.com > PHP Settings.
  • When domain is renamed, corresponding PHP FPM service crashes:
service plesk-php7X-fpm status
● plesk-php7X-fpm.service – The PHP 7.X FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/plesk-php70-fpm.service; disabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/plesk-php7X-fpm.service.d
└─limit_nofile.conf
Active: inactive (dead)
  • There are the following records in /var/log/plesk-php7x-fpm/error.log file:
[25-Apr-2021 17:33:08] NOTICE: Reloading in progress …
[25-Apr-2021 17:33:08] NOTICE: reloading: execvp(“/opt/plesk/php/7.X/sbin/php-fpm”, {“/opt/plesk/php/7.X/sbin/php-fpm”, “–nodaemonize”})
[25-Apr-2021 17:33:08] NOTICE: using inherited socket fd=9, “/var/www/vhosts/system/example.com/php-fpm.sock”
…
[25-Apr-2021 17:33:08] ERROR: Another FPM instance seems to already listen on /var/www/vhosts/system/example.com/php-fpm.sock
[25-Apr-2021 17:33:08] ERROR: Another FPM instance seems to already listen on /var/www/vhosts/system/example.com/php-fpm.sock
[25-Apr-2021 17:33:08] ERROR: FPM initialization failed
[25-Apr-2021 17:33:08] ERROR: FPM initialization failed
…
[25-Apr-2021 17:33:14] NOTICE: fpm is running, pid 29906
[25-Apr-2021 17:33:14] NOTICE: ready to handle connections
[25-Apr-2021 17:33:14] NOTICE: systemd monitor interval set to 10000ms

 

Solution for plesk-php7x-fpm service crashes during the reload after domain name change

Today, let us see how our support Techs resolved the issue.

The solution is to update Plesk.

To update Plesk via the Plesk interface:

1. In Plesk, go to Tools & Settings and click Updates and Upgrades.
2. Then, on the Updates and Upgrades page, click Update Components.
3. Finally, click Continue to begin the update procedure.

To update Plesk via a command-line interface:

1. Firstly, connect to a Plesk server via SSH (Linux)/RDP (Windows Server).
2. Then, run Plesk Installer Update (on Windows Server, start a command prompt as an Administrator):

# plesk installer update

During the update process:

  •  Plesk may go offline for several minutes, if updates require a Plesk restart
  •  Websites will stay online
  •  If a service component is going to be updated, its service will be restarted.

To find out what Plesk update is currently installed on the system, go to the Home page > System Overview.

Alternatively, execute the following command in a command-line interface:

plesk version

If update is not possible for some reason, follow the steps given below:

As a workaround, add the following 2 scripts to the server and created events that will restart automatically the PHP-FPM handler.

1. Firstly, connect to the server via SSH

2. Then, download and extract the scripts domains-fpm.sh and subdomains-fpm.sh into the root directory.

# cd /root

# curl -LO https://plesk.zendesk.com/hc/article_attachments/360047065433/domains-fpm.tar.gz

# curl -LO https://plesk.zendesk.com/hc/article_attachments/360047065453/subdomains-fpm.tar.gz

# tar xf domains-fpm.tar.gz

# tar xf subdomains-fpm.tar.gz

3. Next, log into Plesk.

4. later, navigate to Tools & Settings > Event Manager > Add Event Handler.

5. For Event select Default domain (the first domain added to a subscription) updated.

6. Then, in the command filed, add the following line:

# /root/domains-fpm.sh

7. Press OK.

Repeat steps 4,5,6 and 7, but this time for Events select “Domain updated”

8. Navigate to Tools & Settings > Event Manager > Add Event Handler

9. For Event select Subdomain of a default domain updated.

10. In the command field, add the following line:

# /root/subdomains-fpm.sh

11. Finally, press ok

Repeat steps 8,9,10 and 11, but this time for Events select “Subdomain updated”

[Stuck with the error still? We are here for you]

Conclusion

Today, we saw an effective method our Support Techs employ to fix it.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

server management

Spend time on your business, not on your servers.

TALK TO US

Or click here to learn more.

GET UP TO 25% OFF

Plesk Support

Spend time on your business, not on your servers.

Managing a server is time consuming. Whether you are an expert or a newbie, that is time you could use to focus on your product or service. Leave your server management & end-user tech support to us, and use that time to focus on the growth and success of your business.

TALK TO USOr click here to learn more.
server management

Spend time on your business, not on your servers.

TALK TO US

Or click here to learn more.

GET UP TO 25% OFF

Plesk Support

Spend time on your business, not on your servers.

Managing a server is time consuming. Whether you are an expert or a newbie, that is time you could use to focus on your product or service. Leave your server management & end-user tech support to us, and use that time to focus on the growth and success of your business.

TALK TO USOr click here to learn more.

Categories:

Tags:

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF