Simple tutorial showing how easy it is to deploy a cloud based webserver with apache, mysql and php in about 5 minutes. You can also watch the video for this slideshow at http://www.youtube.com/watch?v=3eqUZ6fzpOM
8. Installing Mysql Below are the linux commands Yum -fedora package manager does most the work # yum install mysql mysql-server # /etc/init.d/mysql start # chkconfig --levels 235 mysqld on Install Mysql Packages Start the Mysql Server Set the Mysql Server to start automatically on boot # mysqladmin -u root password <NEWPASS> Set the Mysql root password
9. Installing Apache Below are the linux commands Yum -fedora package manager does most the work # yum install httpd # /etc/init.d/httpd start # chkconfig --levels 235 httpd on Install httpd Packages Start the httpd Server Set the httpd Server to start automatically on boot
10. Installing Apache Below are the linux commands Yum -fedora package manager does most the work # iptables -F Remove firewall You can now enter the IP number of the server into your browser and you should see the “Apache Test Page” If it just hangs, you will probably need to remove your firewall to allow port 80 to talk
11. Installing PHP Below are the linux commands Yum -fedora package manager does most the work # yum install php # /etc/init.d/httpd restart Install php Packages Restart the httpd Server # yum install php-mysql Install php-mysql Package There are many more php modules you will want to install. This is the bare minimum to get php and mysql to work together
12. Restart Firewall Below are the linux commands # iptables-restore /etc/sysconfig/iptables.old # iptables -A INPUT -p tcp --dport 80 -j ACCEPT # service iptables save Restore iptables from old config Add the httpd port 80 Save new config # /etc/init.d/iptables restart Restart firewall