System: Centos6.0 32 bits
First, install MySQL
#yum-y install MySQL mysql-server mysql-devel
Configure MySQL boot up service
#chkconfig--add mysqld (add MySQL service to the list of services)
#chkconfig mysqld on (setting up the MySQL service starts with boot)
#service mysqld Start (start the MySQL service)
second, the installation of PHP
#yum-y Install PHP
#service httpd Restart (restart Apache)
#vi/var/www/html/index.php
Enter the following test code
Copy Code code as follows:
Save exit, use IE access http://youdomain.com/if the output of Phpinfo information indicates that your PHP installation was successful.
third, the installation of PHP related components
#yum Search PHP (for PHP-related components)
#yum-y install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc
Restart the Apache service after Setup completes
#service httpd Restart
When your lamp environment is set up, hehe use Yum installation is not very simple ah!
I have also seen other people's articles before, after installing PHP components with phpize to recompile, in fact, is not necessary, as long as the restart of Apache it will be loaded on all possible components.