CentOS6.5 Building a basic PHP environment (yum installation)

Source: Internet
Author: User

Reprint: Nothing to do » CentOS6.5 Build a basic PHP environment (yum installation)

Yum installation PHP environment only need a few simple commands can be achieved, OK, you sir, dishes come.
First make sure that your Yum source is available, or that the network is in-line, otherwise you won't be downloading the required packages.

#Install the required packages, have dependencies, automatically help you solveYum Install httpdMySQL MySQL-server php php-gd php-mbstring php-MySQL #start httpdService httpd Start#set to bootchkconfig httpd on#Start mysqldService mysqld Start#set to bootchkconfig mysqld on#Create a test file in the root directory and write a phpinfo functionVI/var/www/html/Phpinfo.PHP#或者直接在浏览器中输入
http://localhost or HTTP///native IP, you should see the Apache test page need to pay attention to the Iptables settings Oh.

Open the browser, enter http://ip/phpinfo.php, you can see the output page of phpinfo (note iptables have not let 80 port through), this is good? That's right! This is good, but this is the most basic, there is no setup, but the environment is really good.

CentOS6.5 Building a basic PHP environment (yum installation)

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.