Since I’ve been fiddling around with OpenCart lately and needed to run WordPress as well for another project I wanted to run WordPress on a different port than 80.
Step 1 - Download WordPress from WordPress.org.Go to http://wordpress.org/ and download the latest version. Unpack it wherever you need it. I unpacked mine to /home/celc/Dropbox/www/wordpress.
Step 2 - Make the apache user the owner of the wordpress folderThis always seems to be a bit of trouble when I run WordPress in Ubuntu thats caused by apache not having enough privileges to create files and do other things it needs. I’ve blogged about this before in relation to installing plugins.
Step 3 - Create a databaseWe need to create a database for WordPress. In Ubuntu we can just run.
Step 4 - Change apache2 settingsWe need a new config file in /etc/apache2/sites-available which will handle the connection on 8080.
Then we need to change /etc/apache2/ports.conf and make apache listen to 8080 by adding the following two lines.
Step 5 - Enable the site and restart apacheWe need to enable the site and restart the server before it’ll run properly.
DoneNavigate to your site at http://localhost:8080 and WordPress will step you through the installation process. Just follow the instructions on the screen and your site will be enabled on http://localhost:8080.