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)