Installing Apache, MySQL and PHP on Linux Dedicated Server

Most websites are based on PHP, MySQL and Apache if are hosted on Linux server, if your hostign account is on shared server then your webhosting service provider will take care for above basic hosting components on their server but if you are trying to host your website on dedicated server and you dont want to have control panel for your server then you will have to install above components yourself, but if your server is not managed dedicated server then you  will have to install all components on your own. Installing PHP, MySQL and Apache is not a very difficult task, you can easily do it just need to follow following commands and steps.

You need to check if you already have any version of above packages, try to remove any existing installation using yum -y remove httpd mysqld mysql-server php

For installing Apache web server on your dedicated server you need to fire following command yum -y install httpd

Once you are completed with Apache you can proceed with MySQL installation, for getting it on your server just try to run yum -y install mysqld mysql-server command and have MySQL install on your dedicated server box.

You would also need to have PHP on your server so you can use following command install PHP on your server. Run yum -y install php php-mysql thus your server will get installed for PHP.

You also need to install PHP Librarires on your server as they are of great importance and have many addons which are must for any dedicated server. To have this PHP libraries you will have to install PHP GD image library and PHP IMAP library.
To install such PHP librabies you will have to fire following command yum -y install php-gd php-imap

This completed installation process for PHP, MySQL and Apache, now you will have to make them active. You will have to activate them individually. You will have to run service httpd start to get Apache activated and similarly have to run service mysqld start for activating MySQL.

You do not need to activate PHP Library as it would be seen by Apache.
Thus you have completed PHP, MySQL and Apache installation on your Dedicated server without using your cPanel controlpanel.

Posted under Linux cPanel Hosting, Shared cpanel Hosting, cPanel Hosting, cPanel hosting accounts