老顽童

2011年8月19日 #

Ubuntu下安装Apache 2无法解析html中的php

摘要: Ubuntu下安装了Apache 2却无法解析html中的php ,好多说是在httpd.conf文件中修改代码,但是ubuntu中没有这个文件啊,新建添加代码之后,网页直接把html的代码给显示出来了……其实一个可行的办法是,在/etc/apache2/apache2.conf文件中添加下面两行即可:AddHandler php5-script .php .htmlAddType text/html .php .html保存后重启apache2:sudo /etc/init.d/apache2 restart 阅读全文

posted @ 2011-08-19 20:21 老顽童 阅读(748) 评论(0) 推荐(0) 编辑

Apache ubuntu

摘要: http://wiki.ubuntu.org.cn/Apachehttp://www.linuxidc.com/Linux/2010-07/27230.htm 阅读全文

posted @ 2011-08-19 20:09 老顽童 阅读(128) 评论(0) 推荐(0) 编辑

导航