新的wordpress网站迫使我下载index.php

时间:2014-11-20 06:51:43

标签: php wordpress apache

我正在我的VPS上设置一个Wordpress网站,目前当我尝试访问网站的根URL时,我被迫下载index.php的内容(而不是执行php文件)。 / p>

我怀疑问题可能出在我的/etc/apache2/sites-enabled/foobar.com.conf

SuexecUserGroup "#1007" "#1007"
ServerName foobar.com
ServerAlias www.foobar.com
ServerAlias webmail.foobar.com
ServerAlias admin.foobar.com
DocumentRoot /home/foobar/www
ErrorLog /var/log/virtualmin/foobar.com_error_log
CustomLog /var/log/virtualmin/foobar.com_access_log combined
ScriptAlias /cgi-bin/ /home/foobar/cgi-bin/
ScriptAlias /awstats/ /home/foobar/cgi-bin/
AddType application/x-httpd-php .html .htm
DirectoryIndex index.php
<Directory /home/foobar/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
FCGIWrapper /home/foobar/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/foobar/fcgi-bin/php5.fcgi .php5
</Directory>
<Directory /home/foobar/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
</Directory>
<Directory /home/foobar/www>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
</Directory>
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.foobar.com
RewriteRule ^(.*) https://foobar.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.foobar.com
RewriteRule ^(.*) http://foobar.com:10000/ [R]
RemoveHandler .php
RemoveHandler .php5
php_admin_value engine Off
IPCCommTimeout 31
FcgidMaxRequestLen 1073741824
<Files awstats.pl>
AuthName "michaelarchinal.com statistics"
AuthType Basic
AuthUserFile /home/foobar/.awstats-htpasswd
require valid-user
</Files>
RedirectMatch /cgi-bin/mailman/([^/\.]*)(.cgi)?(.*) http://foobar.com:10000/virtualmin-mailman/unauthenticated/$1.cgi$3
RedirectMatch /mailman/([^/\.]*)(.cgi)?(.*) http://foobar.com:10000/virtualmin-mailman/unauthenticated/$1.cgi$3
Alias /pipermail /var/lib/mailman/archives/public

注意:网址实际上并不是www.foobar.com - 为了示例,我已将其更改为<)>

0 个答案:

没有答案