By awasuaqwerty
Hello, I try to recover my Apache2 server. I am using WordPress and after the download of some plugins, I had my server die.
It was an error related to MySQL librariry since resetting the password to root files helped me to make my site available again, but now I encounter 2 problems that I really want to fix:
Any idea what may have happened and how to fix it? Thank you!
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!
Hi @awasuaqwerty,
The first problem is really weird, try creating a new SFTP user to see if you’ll still experience the problem. Check this tutorial to help you out:
As for the second issue, the two events shouldn’t be related. Having said that, this sounds to me like Apache Workers. So first, what are Apache Workers and what are they used for:
Imagine you are in a cinema, and there are 300 chairs inside. Those are the Apache Workers and the movie is your Webiste. If someone wants to watch the movie(your website) they need to sit in the chair (Apache Workers). If all 300 chars are taken, the 301 person needs to wait for someone to leave in order for them to sit and watch the movie. That’s how ApacheWorkers work. Once all ApacheWorkers are taken, a new person that wants to open your website waits for a spot to be open and only after that they can see your website.
Usually, these limits are set by 256 by default but they can be increased.
You can open your Apache configuration file. In there you should see something similar to:
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
Increase both the ServerLimit and MaxClients options, restart Apache, and see if this would solve your issue.
It’s possible they do not exist (haven’t been added) and the default values are the ones above. Adding them to the prefork content of apache mods should be fine as well.
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.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.