I have HostForWeb dedicated hosting. Unfortunately, from time to time there are systematic problems with ping and ssh...or problem with something different. Server not load or if load then error occured for example: 504 Gateway Time-out nginx . I always have to contact with support HostForeWeb to have done a reboot and then the server is running. I also have service monitoring service that does not work in this case. I care for my server uptime. This happens too often.
Also if anyone had such problems and knows how to fix it? Please help and advice
This is my server details:
Operating System: CentOS 6.x with WHM/cPanel Server Specifications: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz 4GB DDR2 RAM 2 x 500GB SATA 10000GB Bandwidth
|
Is hostforweb providing firewall services for the server? Most likely not, so if not, are you running a firewall on the server?
https://www.deanbassett.com |
You may not have to do a server reboot each time. Have you tried just restarting php and nginx? If restarting nginx and php (the gateway time-out error is from php not responding) fixes the issue, then set up a cron job to run each night at 3:00 am to restart php and nginx. If nginx responds with "Bad Gateway" that usually means that php is not running or it could be an improper set up of a pool if ruining php-fpm. Geeks, making the world a better place |
I don't really get into the hosting company issues but may I ask how much you are paying for your hosting? You might want to consider moving to either a dedi and manage it yourself or another hosting that provides better support. You should not have to be rebooting your server. Geeks, making the world a better place |
The reason i asked about the firewall is because last time i had similar problems with my new dedicated it was because i forgot to setup the firewall.
The server was getting hit so hard with port scans it was overloading things. As soon as i enabled a firewall, things returned to normal and has been ever since.
https://www.deanbassett.com |
Thanks for advice. I wrote to my server support and they checked - I don`t have firewall, so they installed just now Config Server Security & Firewall (CSF)
So I hope this will help.
Is hostforweb providing firewall services for the server? Most likely not, so if not, are you running a firewall on the server?
|
Thanks for advice and informations, if install a firewall will not help in this case, I'll do it as you write. My server support restarting php and nginx sometimes in that case but these actions helped to restore the server only and not solve the problem forever.
You may not have to do a server reboot each time. Have you tried just restarting php and nginx? If restarting nginx and php (the gateway time-out error is from php not responding) fixes the issue, then set up a cron job to run each night at 3:00 am to restart php and nginx. If nginx responds with "Bad Gateway" that usually means that php is not running or it could be an improper set up of a pool if ruining php-fpm.
|
Sure, I pay for the server a lot, but all dedicated servers cost a lot. 2 days ago they moved me to a new server because the old server was a technical defect in the HDD.
I don't really get into the hosting company issues but may I ask how much you are paying for your hosting? You might want to consider moving to either a dedi and manage it yourself or another hosting that provides better support. You should not have to be rebooting your server.
|
I usually had the same thing. Always an unexpected overload. While the server is working well and suddenly load was jumping the server to stop working. Technicians from support often told me that I should bought more RAM but I do not believe it. Unfortunately, no one from support did not notice that there maybe a lack of a firewall on the server. And I also forgot to install.
I hope now that the firewall will help in this situation if for you help.
The reason i asked about the firewall is because last time i had similar problems with my new dedicated it was because i forgot to setup the firewall.
The server was getting hit so hard with port scans it was overloading things. As soon as i enabled a firewall, things returned to normal and has been ever since.
|
I do not know how many CPU's you have, but good rule of thumb is 2GB of memory per cpu core. If that is only one CPU. Then your memory is fine. Although the CPU is a XEON which is a excellent CPU, the speed of it is rather low. So if that is not a dual or quad core cpu, then it is lacking in power.
EDIT: I looked it up L3426, and appears to be a quad core. So ideally the server should have 8Gig of memory following the 2GB per cpu core rule.
https://www.deanbassett.com |
dolphin uses a lot of MYSQL resources, ask your server administrator to optimize the database and to check the /etc/my.cnf file if it needs optimization. |