nginx + php-fpm + named doesn't start after server restat
nginx + php-fpm + named doesn't start after server restat
Hello,
I have to new vps server with CentOS 7.2.1511 both of the fresh install with Vetsta 0.9.8.
Both of them are working fine, but when I am restarting the servers, the nginx + php-fpm + named doesn't start automatically. I have to manual start them.
Any suggestion?
VPS Configutraion:
2 vCores
RAM2 GB RAM
SSD50 GB
Thanks in advance.
I have to new vps server with CentOS 7.2.1511 both of the fresh install with Vetsta 0.9.8.
Both of them are working fine, but when I am restarting the servers, the nginx + php-fpm + named doesn't start automatically. I have to manual start them.
Any suggestion?
VPS Configutraion:
2 vCores
RAM2 GB RAM
SSD50 GB
Thanks in advance.
Re: nginx + php-fpm + named doesn't start after server restat
I fix the php-fpm + named to start automatically on reboot with
but I didn't have luck with nginx ...
Code: Select all
systemctl enable php-fpm.service
Re: nginx + php-fpm + named doesn't start after server restat
Hi I found this solutions on searching:
replace the first 4 lines:
It works on my 2 VPS. :)
Code: Select all
nano /usr/lib/systemd/system/nginx.service
Code: Select all
[Unit]
Description=Startup script for nginx service
After=network-online.target remote-fs.target nss-lookup.target
Wants=network-online.target