我的LAMP笔记(1)(5)
整合apache与php
---------------------------
#cd /web/apache
#vi conf/httpd.conf
找到
DirectoryIndex index.html
在里面加入index.php
找到AddType application/x-gzip
在下面添加如下内容:
AddType application/x-httpd-php .php .phtml
把Options Indexes FollowSymlinks用"#"注释掉
AllowOverride none 改为 all
在根目录里新建info.php
内容为:
phpinfo();
?>
测试成功!
通过文章的介绍,我们知道LAMP达人的学习笔记内容还是比较全的,希望对你们有用!
评论暂时关闭