How to install php, mysql and gd with yum in centos6
Today, I would like to share with you how centos6 uses yum to install php, mysql and gd. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article.
System: centos6.0 32-bit
First, install mysql
# yum-y install mysql mysql-server mysql-devel
Configure mysql Boot Startup Service
# chkconfig-add mysqld (add mysql services to the service list)
# chkconfig mysqld on (set the mysql service to start with boot)
# service mysqld start (start mysql service)
Second, install php
# yum-y install php
# service httpd restart (restart Apache)
# vi / var/www/html/index.php
Enter the following test code
Save exit and use ie to access http://youdomain.com/. If you output phpinfo information, your php installation is successful.
Install the relevant components of php
# 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
Restart the apache service after installation is complete
# service httpd restart
These are all the contents of the article "how to install php, mysql and gd with yum by centos6". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.