Skip to main content

Installing Apache, MySQL, and PHP on Fedora 14 on Rackspace cloud servers.

·2 mins

Following are the steps to install Apache, MySql and PHP on Fedora 14 on Rackspace cloud servers:

Do a SSH login to your cloud server. If you use windows, you can use PuTTY to login to your cloud server. You can download the PuTTY from here. You can login with root using the password send to you via email when you first created your cloud server

After logging into your cloud server run the following commands:

#yum update

Once it has finished updating run the following:

#yum install httpd mysql mysql-server php php-devel php-mysql

Once this has finished installing run the following:

 #/etc/init.d/mysqld start

You will be asked for current password, just press enter. Then next set a root password (make it a secure one), remove anonymous users, disallow root login remotely unless you want to manage your MySql remotely, and remove the test database. Finally reload the privilege tables.

To make sure MySQL always loads on restart run the following:

 #chkconfig mysqld on

We also want to do similar for Apache so run the following:

/etc/init.d/httpd start
 chkconfig --levels 235 httpd on

This will start the web server, however if you go to the IP address of the server in your browser it will say there is a problem loading the page, what is happening is that the Rackspace images have a very restrictive firewall to start, we need to allow some traffic through. To do this perform the following commands:

 #iptables -I INPUT 1 -p tcp --dport http -j ACCEPT
 #iptables -I INPUT 1 -p tcp --dport mysql -j ACCEPT
 #service iptables save
 #service iptables restart

Once this has done you will be able to see the Apache welcome page on your server IP

– Sandeep Sidhu