In this example, we will be using a cloud server running on "CentOS 6.2 LAMP x64". We will also be using WordPress as an example when demonstrating how to install a PHP application in the server. We will also assume that none of your data is currently in your cloud server, i.e. your cloud server is new, you are willing to start all over, scenarios like these.
First, we need to check whether the cloud server is running on the template (or operating system) "CentOS 6.2 LAMP x64". Please refer to this page on how to gain access to the portal where we can check the "Template" of the cloud server. Please refer to the image below on how to check the cloud server's "Template".
If the cloud server's "Template" is not "CentOS 6.2 LAMP x64", it can be change by following the steps below.
1. Click "Upgrade/Downgrade".
2. Under the "Template" section, for the "New Configuration", choose "CentOS 6.2 LAMP x64 - S$ 0.00".
(This template is free. That is why the cost is S$0.00.) Click "Click to Continue >>".
3. Click "Click to Continue >>".
(If you encounter an error here, it is safe to continue by just typing the URL https://orders.signetique.com/orders/onapp.php in the address bar of your web browser.)
4. Click "Rebuild Virtual Machine". Click "OK". (Please note that changing the "template" or operating
system of the cloud server will result in loss of data.)
This means that the rebuilding is in progress.
5. After a few minutes, refresh the page to check and see if the rebuilding is done. If it is done,
it will look something like this.
6. If the rebuilding has completed, please click "Reset Root Password", then refer to this page
to find out the IP address and root password of the cloud server. This information will be needed later.
Next, please install "Putty" (http://www.chiark.greenend.org.uk/~sgtatham/putty/).It is an SSH client which
lets you to SSH into the cloud server.
Launch "Putty" and SSH into the cloud server.
Set a MYSQL root password using the command "mysqladmin -u root password NEWPASSWORD". In this example, the MYSQL root password is "mysqlrootT737ACno". (Please create a MYSQL password for yourself. Please do not use the same password in this example.) (Please note that the root password of the server and the MySQL root password are 2 different things.)
Create a MySQL user (with its respective password) and database that will be needed by the WordPress application later. The command "mysql_setpermission -u root" can be used. In this example, we will be creating...
MySQL database: wpdatabase
MySQL user: wpsqluser
MySQL user password: A6PGhP44
On with installing WordPress.
Issue the following commands...
cd/var/www/html/
yum install wget
(some output here from the server which is left out)
wget http://wordpress.org/latest.tar.gz
tar xzpf latest.tar.gz
chown -R apache.apache wordpress
yum install php-mysql
(some output here from the server which is left out)
(some output here from the server which is left out)
/etc/init.d/httpd restart
At this point, we assume that your web site's hostname will be called "www.testcloudserver7.com" and you have already pointed the IP address of your web site's hostname to the IP address of your cloud server.
Open your browser and go to
http://www.testcloudserver7.com/wordpress/
and click "Create a Configuration File".
Click "Let's go!"
Remember the MySQL database and the MySQL database user that we have created earlier? Time to fill those in now, and click "Submit".
Click "Run the install".
Fill up the information. Please note that the password that your are filling in now is the password that you will need to use when administering WordPress later. Click "Install WordPress".
Click "Log In".
That's it. WordPress is installed. To start administering WordPress, key in "admin" as Username, and the password is the one that you created in the previous step.
In this example, the WordPress site will be hosted at http://www.testcloudserver7.com/wordpress/.