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.

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!
Excellent tutorial. You may need to change the DirectoryIndex when installing Wordpress on a fresh LAMP box so that the index.php file will load. If you point your web browser to your server IP / domain and you only see the “It works” Apache page after installing/configuring Wordpress then you will need to edit the DirectoryIndex so Apache will load index.php as the default webpage. To do this, follow these steps:
I followed the above tutorial and found that mysite.com was still showing “It works” after installing Wordpress. I could still access the admin control panel but I was unable to view the blog. Adding index.php as the first file to load in the dir.conf file fixed this issue for me. Hope this helps others as well!
I’ve Just run through this and now getting the error when trying to start up mysql and DB connection error when tryign to access the website. ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (111) Any ideas what could be causing this
Not sure what to do… :-S
It sounds like MySQL server isn’t running, hence a connection can not be made.
Make sure to install a valid LAMP environment first as detailed in: https://www.digitalocean.com/community/articles/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu
(L)inux (A)pache (M)ySQL (P)HP
If MySQL is properly installed you can start it with: sudo service mysql start
If it fails you can review the error log for more details /var/log/mysql.err or /var/log/mysql/error.log
Really a fantastic tutorial. I did have to modify dir.conf as suggested above by James Tansley (thanks for that James BTW!!) Can’t recommend this enough. Thanks for the hard word!
Thank you, and thank you, James! Please let me know if there are any further topics you would like to see covered in our community.
I tried to install new plugins but it needs ftp connection, of which is possible only through SSH, correct me if Im wrong. However I tried using Filezilla and managed to transfer the plugins folder to /wp-content/plugins. When I checked them on wordpress, the plugins are not there. Any idea whats the problem.
You may be able to install the plugins by temporarily changing the permissions of your web directory to 777 until the plugin is installed. As soon as the plug in has finished installing, the permissions should then be scaled back down to 755.
What is the ‘username’ referred in “sudo usermod -a -G www-data username” line? I’m trying to set up Wordpress on a virtual host so my WP home directory is “/var/www/example.com/public_html”. I’m guessing it might be the “demo” user equivalent or maybe something like “www-data” ? I’m lost, I don’t want to screw up. :)