Centos6 how to use yum to install phpmysql and gd extension libraries
- # Yum-y install mysql-server mysql-devel
Configure mysql boot service
- # Chkconfig -- add mysqld (add mysql service to the service list)
- # Chkconfig mysqld on (set mysql service to start with startup)
- # Service mysqld start (start mysql service)
II. install PHP
- # Yum-y install php
- # Service httpd restart (restart apache)
-
# Vi/var/www/html/index. php test code:
- Phpinfo ();
- ?>
-
Save and exit, access the http://youdomain.com with IE/if phpinfo information is output, it means php installation is successful. 3. install php components
- # Yum search php (search for php-related components)
- # Yum-y install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc
After the installation is complete, restart the apache service:
- # Service httpd restart
Now the lamp environment is complete. |