Installing WordPress on Debian Rackspace Cloud Server is a detailed text plus video guide explaining the commands for each steps and the advantage of symlinks. We have other guides for installing WordPress on Rackspace Cloud Unmanaged Single Server. This guide Installing WordPress on Debian Rackspace Cloud Server is for the advanced users, we do not recommend to follow this guide for installing WordPress on Debian Rackspace Cloud Server despite it is very easy, as maintenance and security upgrades requires more skill on UNIX commands. We actually can install WordPress on Debian only with 3-4 commands.
Installing WordPress on Debian Rackspace Cloud Server : Preface
You can follow this guide to install WordPress on CentOS or this Video guide to Install on Ubuntu Server. We will not follow the classic method used for creating LAMP stack. We will use a feature of Debian to install WordPress. Unless you can understand the method, i.e. permission and symlinking, it is probably better to follow the usual method especially for an unmanaged server. There is one big advantage, you can actually symlink and share the common files for two WordPress installations.
Installing WordPress on Debian Rackspace Cloud Server : Steps and Commands
This method for Installing WordPress on Debian Rackspace Cloud Server requires a fully qualified domain name. Be it the main domain or its part like subdomain. After creating the server first update and upgrade it as shown in the video. Then, install the services (WordPress is service) :
apt-get install mysql-server
apt-get install wordpress
Other server components will automatically get installed which includes Apache2. Create the link :
ln -s /usr/share/wordpress /var/www/wordpress
The two colors are used to show from and to. www is the root of public folder. First CHMOD the MySQL script, otherwise it will deny to get installed :
chmod 700 /usr/share/doc/wordpress/examples/setup-mysql
Then run the script :
/usr/share/doc/wordpress/examples/setup-mysql -n example example.com
You will watch in the video that it is not possible to install WordPress without a domain name in this method. The last command is :
ln -s /etc/wordpress/config-localhost.php /etc/wordpress/config-uri.php
Where localhost is server’s name and uri is real URL. So actually it is a very easy method and takes less time, but possibly this might appear difficult to the new users. Now, watch it :