标签:name style img directory www conf span type class
[root@localhost ~]# vim /usr/local/apache2/conf/httpd.conf +322 AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php # 添加该行 <IfModule dir_module> # 修改改行 DirectoryIndex index.html index.htm index.php </IfModule>
#ServerName www.example.com:80 修改为 ServerName localhost:80
[root@localhost ~]# vim /usr/local/apache2/htdocs/index.php <?php phpinfo(); ?>
[root@localhost ~]# /usr/local/apache2/bin/apachectl -t
[root@localhost ~]# /usr/local/apache2/bin/apachectl restart
访问:192.168.xxx.xxx/index.php
标签:name style img directory www conf span type class
原文地址:http://www.cnblogs.com/pzk7788/p/7039288.html