CENTOS6 use yum to install PHP mysql GD steps _linux

Source: Internet
Author: User
Tags install php php mysql phpinfo
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:

<?php
Phpinfo ();
?>


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.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.