Here you will find instructions on how to install Apache, MySQL and PHP on CentOS.
Installing Packages
1 Install the required packages with the following command:
2 Then, start the services by:
Configuring Services
Apache 2
The configuration file of the Apache service is in the file /etc/httpd/conf/httpd.conf.
The Apache documentation is available under http://httpd.apache.org/docs/.
MySQL
You must create a root password before you can use the MySQL server in a production environment. The following code shows an example of how to do it:
The configuration file for the MySQL service is available in /etc/my.cnf.
The documentation is available at http://dev.mysql.com/doc/.
The documentation is available at http://dev.mysql.com/doc/.
PHP
You can find the configuration file for PHP in /etc/php.ini.
The documentation for PHP is available at http://www.php.net/docs.php.
The documentation for PHP is available at http://www.php.net/docs.php.
Launching services
Run the following commands to ensure that the services are started at boot time:
Hope help