首页 > 代码库 > centos7 httpd&php

centos7 httpd&php

安装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]测试

wKiom1PWCh7xFjXmAAESHOTx3Ws093.jpg

本文出自 “西伯利亚·狼” 博客,请务必保留此出处http://kernal.blog.51cto.com/8136890/1531573