By willjackson
I installed Wordpress on an Apache server, but when I go to the index.php file with my web browser, expecting to see the GUI for setting up WP, I get “Error establishing a database connection”. Can anyone point me in the right direction for straightening this out?
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 @willjackson,
Have you configured the WordPress website’s Database? You’ll need to create an empty database, a database user and a password for that user. Once you do, when installing WordPress, you’ll need to put this information in the wizard. This should help with the problem.
If you let us what process you followed and when exactly you experienced the problem, we should be able to give you a more detailed response.
Hello, @willjackson
If you’re installing WordPress manually you can check our tutorial on How To Install WordPress on Ubuntu 20.04 with a LAMP Stack
You’ll need to create a database and database user in step one and then complete the installation through the Web Interface
Also, you can quickly deploy a WordPress droplet using our Marketplace app:
https://marketplace.digitalocean.com/wordpress
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.