Apache2.2没有为虚拟主机运行php脚本

时间:2014-02-26 21:16:24

标签: php apache virtualhost

嘿伙计们我在虚拟盒子里安装了一个灯泡(使用apache2.2和php5.3.10运行Ubuntu-server 12.04)。我有一个虚拟主机文件,看起来像这样。

<VirtualHost *:80>
    ServerAdmin admin@demosite.com
    ServerName demosite.dev
    ServerAlias www.demosite.dev
    DocumentRoot /var/www/demosite

    <Directory /var/www/demosite>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride ALL
        Order allow,deny
        allow from all
    </Directory>  

    ErrorLog ${APACHE_LOG_DIR}/bfhosting.log
    LogLevel debug
</VirtualHost>

我在index.php中有一个/var/www/index.php文件,服务器运行该文件很好。但它没有在我的其他网站的文件夹中运行任何PHP代码,即/var/www/demosite

0 个答案:

没有答案
相关问题