+ -
当前位置:首页 → 问答吧 → archlinux中 php+apache+mysql 配置虚拟主机问题求解?

archlinux中 php+apache+mysql 配置虚拟主机问题求解?

时间:2010-05-07

来源:互联网

文件内容

/etc/hosts
127.0.0.1 test.php.com


/etc/httpd/conf/httpd.conf
include conf/extra/httpd-vhosts.conf


现在的情况是输入 test.php.com 能找到我需要的index.php
但是页面显示的是php文件的源代码。。。不明白为什么。。。?

作者: liufangzhaoly   发布时间: 2010-05-07

php扩展没起作用

作者: CnkknD   发布时间: 2010-05-07

安装好PHP、Apache、php-apache等包后,在Apache的配置文件中加入下面两行
引用:
LoadModule php5_module modules/libphp5.so
Include conf/extra/php5_module.conf

作者: athurg   发布时间: 2010-05-08