安装httpd:http://kernal.blog.51cto.com/8136890/1531545
httpd支持php安装配置:
[1]Install php
# yum -y install php php-mbstring php-pear
# vi /etc/php.ini
878 date.timezone = "Asia/Shanghai" #设置时区
[2]Create Test Page
# vi /var/www/html/index.php <html> <body> <div style="width: 100%; font-size: 40px; font-weight: bold; text-align: center;"> <?php phpinfo(); ?> </div> </body> </html>
[3]测试
本文出自 “西伯利亚·狼” 博客,请务必保留此出处http://kernal.blog.51cto.com/8136890/1531573
centos7 httpd&php,布布扣,bubuko.com
原文地址:http://kernal.blog.51cto.com/8136890/1531573