Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Nov 25, 2025, 01:06 AM

Title: Nginx/Apache down after Plesk reboot: service start operation timed out. Termina
Post by: Suhitha on Nov 25, 2025, 01:06 AM
Question: Nginx/Apache down after Plesk reboot: service start operation timed out. Terminating


Applicable to:


# journalctl -u apache2 -u httpd -u nginx -b
systemd[1]: httpd.service start operation timed out. Terminating.
systemd[1]: nginx.service start-pre operation timed out. Terminating.


Cause

The timeout value of the services is too low, and they don't have enough time to start.


Resolution

Increase the Apache and nginx service timeout.

1.Log in over SSH

2.Run this command to backup the startup scripts and update the timeout value:

# for s in /usr/lib/systemd/system/{nginx,httpd,apache2}.service; do [ -f "$s" ] && cp -au "$s"{,.bak} && sed -i '/^[Service]/,/^[/{/^TimeoutStartSec=/{h;s/=.*/=600/};t;s/([Service])/\1\nTimeoutStartSec=600/}' $s; done