By Habib Qadoos
A website hosted on a dedicated server goes down itself with traffic or no traffic and goes up when i restart apache. I have contacted host team of godaddy and they say no issue on their side. Project is built on PHP oscommerce and less customized.
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!
Hello, @habibjutt
If you have access to check the Apache error log you can see if there any logged errors. Usually this happens when you exceed the Apache workers and what will happen is when you try to load any of the sites hosted on the server, the browser will keep spinning/loading until there is a free worker to handle the process.
You can check if the Apache workers have been exceeded by using the following command:
For CentOS servers:
grep -i workers /usr/local/apache/logs/error_log
For Ubuntu:
grep -i workers /var/log/apache2/error.log
If you can’t find any references when searching for this, you can still check the Apache error log for any logged errors. You can tail the error_log for the last 100 or 200 rows:
tail -n 200 /usr/local/apache/logs/error_log
or
tail -n 200 /var/log/apache2/error.log
depending from the server’s distro.
Hope this helps! Let us know how it goes.
Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.