Installing WordPress on Heroku with Rackspace Cloud Database is not very tough if you want to host WordPress on Heroku Cloud and use Rackspace Cloud Database. Not Tough means you need to have some basic idea about Installing WordPress via Command Line Interface (CLI) and Git commands. Even if you do not have any idea about these but still want to continue Installing WordPress on Heroku with Rackspace Cloud Database, these guides will prime you to get ready for Installing WordPress on Heroku with Rackspace Cloud Database :
- Deploying a Facebook App With Heroku Cloud
- Deploying WordPress as Facebook App With Heroku Cloud
- Install WordPress on Rackspace Cloud Server
- Installing WordPress on Rackspace Cloud Sites – This is needed for creating database as a part of Installing WordPress on Heroku with Rackspace Cloud Database guide or you can use the Database from Rackspace alone.
Preface before Installing WordPress on Heroku with Rackspace Cloud Database
The basic of Installing WordPress on Heroku with Rackspace Cloud Database is, we will use the real full version of WordPress upload it to Heroku (logic is – it runs Apache and PHP) and we will use Rackspace Cloud Database which supports to connect with any other host using IP. We will try to offload static content to CDN to keep Heroku hosting within free range.
Steps for Installing WordPress on Heroku with Rackspace Cloud Database
Obviously, launch Git Bash CLI like we did on Deploying WordPress as Facebook App With Heroku Cloud and Deploying a Facebook App With Heroku Cloud. Login to your namespace in Heroku and then change directory to master. To sum up the commands will be :
---
Command 1 :
1 | heroku login |
Login and then create an Private Key by :
1 | ssh-keygen -t rsa |
We are assuming that the user is using Windows PC, for Linux or Mac the steps could be made easier. This method of Installing WordPress on Heroku with Rackspace Cloud Database will work on any OS.
Now change directory to Master. We are using the app namespace salty-gorge-5565 with url https://salty-gorge-5565.herokuapp.com/ .
1 | cd salty-gorge-5565 |
Change with your app namespace. We will clone WordPress locally :
1 | git clone git://github.com/WordPress/WordPress.git |

It will take a huge time to download or rather clone the 35 mb bunch of files. In Linux we would use wget and untar it. Its difficult in Windows Git Bash. Not impossible, but that is itself a pain.
As everything is on WordPress subfolder, we need to move all file to root.
Use jcamenisch’s dotfiles script from Github to move the content in Windows, else it will crash if you run our usual favorite mv command.
So the basic thing is – now you have to push it.
1 | git commit -am "Initial WordPress commit" |
1 | git push -u origin master |
We have avoided any trick, we simply pushed them as file. So, with normal WordPress installation logic, if you now point to your-app-name.herokuapp.com/wp-admin/install.php ; it will ask to create a config file, this is what we wanted for Installing WordPress on Heroku with Rackspace Cloud Database. As we have a database with PHPMyAdmin (See Installing WordPress on Rackspace Cloud Sites) we can simply use the IP of database instead of localhost.
As the database is on a secured place, you practically need to backup only the wp-content folder. The process for Installing WordPress on Heroku with Rackspace Cloud Database is intersting but we do not recommended to use it for serious website due to security flaws.

p