How to install Wordpress on Ubuntu 16.04 for Wordpress to Act as a Website

I’ve tried to load Wordpress on Ubuntu 16.04 about 15 times. I’ve tried a variety of instructions to do this but I haven’t gotten it to work. I’ve also reloaded the OS to make sure that I have a clean copy each time I try a new set of instructions.

Apparently there are two ways to load Wordpress.

  1. Install Wordpress with apt get which installs it as an application.
  2. Download Wordpress and extract the files. Copy them to the /var/www/html directory.

I make changes to the apache2.conf as per instructions, setup a database for Wordpress with username, password etc. I then copy the Wordpress files into /var/www/html. Instead of getting the Wordpress website, I continue to get the apache website.

Does anyone have a complete, step by step instuctions to install Wordpress on Ubuntu 16.04 so that Wordpress works as a web site?

I’ve installed an older version on Ubuntu 12.01 before which worked so I believe I know the basics.



Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

You can also try something like Virtualmin and WordPress which gives your a control panel you manage your server.

This comment has been deleted

I would suggest using the Wordpress image which has it preinstalled for you, avoiding these problems in the first place.

Otherwise this seems to be what you’re looking for:

EDIT: sorry for the doublepost, the answer wouldn’t go through. I linked the wrong guide at first (even though I find nginx much easier than Apache).

You can find the correct guide here: