Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install php, mysql and gd with yum in centos6

2025-01-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report