Report this

What is the reason for this report?

Nginx (or php5) won't start

Posted on June 6, 2014

Hi,

Gave restart commands as follows;

sudo service php5-fpm restart sudo service nginx restart

Server is down immediately after. Any of you guys have an idea of why that happened and how to get going again?

Many thanks



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Logs are your friends. Check the nginx error log. That should give you some clue as to why it is crashing.

Check the logs, also run top when you start the server to see the load. <br> <br>Also check to see if you are under DDOS attack run <br> <br>netstat -plan|grep :80|awk {‘print $5’}|cut -d: -f 1|sort|uniq -c|sort -n for port 80 <br> <br>netstat -plan|grep :80|awk {‘print $5’}|cut -d: -f 1|sort|uniq -c|sort -n for port 443 <br> <br>If you are being Dos attacked you need to setup a software firewall and ban the ip. <br> <br>When you run those commands you’ll get a list of IPs and a number beside them this number is the number of connections there opening to your web server.

Sorry its <br> <br>netstat -plan|grep :443|awk {‘print $5’}|cut -d: -f 1|sort|uniq -c|sort -n for port 443(ssl)

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.