centos7 httpd&php

安裝httpd:http://kernal.blog.51cto.com/8136890/1531545
php


httpd支持php安裝配置:html

[1]Install php
bash

# yum -y install php php-mbstring php-pearide

# vi /etc/php.ini測試

878 date.timezone = "Asia/Shanghai" #設置時區htm


[2]Create Test Pageblog

# 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]測試get

wKiom1PWCh7xFjXmAAESHOTx3Ws093.jpg

相關文章
相關標籤/搜索