Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

nginx + php-fpm + named doesn't start after server restat

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
lakis21
Posts: 15
Joined: Sun Dec 28, 2014 11:48 am
Contact:
Contact lakis21
Website

Os: CentOS 5x
Web: apache + nginx
nginx + php-fpm + named doesn't start after server restat
  • Quote

Post by lakis21 » Thu May 05, 2016 4:47 pm

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.
Top

lakis21
Posts: 15
Joined: Sun Dec 28, 2014 11:48 am
Contact:
Contact lakis21
Website

Os: CentOS 5x
Web: apache + nginx
Re: nginx + php-fpm + named doesn't start after server restat
  • Quote

Post by lakis21 » Fri May 06, 2016 5:05 pm

I fix the php-fpm + named to start automatically on reboot with

Code: Select all

systemctl enable php-fpm.service
but I didn't have luck with nginx ...
Top

lakis21
Posts: 15
Joined: Sun Dec 28, 2014 11:48 am
Contact:
Contact lakis21
Website

Os: CentOS 5x
Web: apache + nginx
Re: nginx + php-fpm + named doesn't start after server restat
  • Quote

Post by lakis21 » Fri May 06, 2016 6:23 pm

Hi I found this solutions on searching:

Code: Select all

nano /usr/lib/systemd/system/nginx.service
replace the first 4 lines:

Code: Select all

[Unit]
Description=Startup script for nginx service
After=network-online.target remote-fs.target nss-lookup.target
Wants=network-online.target
It works on my 2 VPS. :)
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password