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

新的wordpress站点迫使我下载index.php,php,wordpress,apache,Php,Wordpress,Apache,我正在我的VPS上建立一个Wordpress网站,目前当我试图访问该网站的根URL时,我被迫下载index.php(而不是执行php文件)的内容 我怀疑问题可能出在我的/etc/apache2/sites enabled/foobar.com.conf: SuexecUserGroup "#1007" "#1007" ServerName foobar.com ServerAlias www.foobar.com ServerAlias webmail.foobar.com ServerAlia

我正在我的VPS上建立一个Wordpress网站,目前当我试图访问该网站的根URL时,我被迫下载
index.php
(而不是执行php文件)的内容

我怀疑问题可能出在我的
/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
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\u error\u log
CustomLog/var/log/virtualmin/foobar.com\u访问\u日志组合
ScriptAlias/cgi-bin//home/foobar/cgi-bin/
ScriptAlias/awstats//home/foobar/cgi-bin/
AddType应用程序/x-httpd-php.html.htm
DirectoryIndex.php
选项-索引+包括noexec+symlinksFownerMatch+ExecCGI
通融
AllowOverride All Options=ExecCGI,Includes noexec,index,multiview,symlinksFownerMatch
AddHandler fcgid script.php
AddHandler fcgid script.php5
FCGIWrapper/home/foobar/fcgi-bin/php5.fcgi.php
FCGIWrapper/home/foobar/fcgi-bin/php5.fcgi.php5
通融
AllowOverride All Options=ExecCGI,Includes noexec,index,multiview,symlinksFownerMatch
通融
AllowOverride All Options=ExecCGI,Includes noexec,index,multiview,symlinksFownerMatch
重新启动发动机
RewriteCond%{HTTP_HOST}=webmail.foobar.com
重写规则^(.*)https://foobar.com:20000/ [R]
RewriteCond%{HTTP_HOST}=admin.foobar.com
重写规则^(.*)http://foobar.com:10000/ [R]
php
RemoveHandler.php5
php_管理_值引擎关闭
IPCCommTimeout 31
FcgidMaxRequestLen 1073741824
AuthName“michaelarchinal.com统计”
AuthType Basic
AuthUserFile/home/foobar/.awstats htpasswd
需要有效用户
重定向匹配/cgi-bin/mailman/([^/\.]*)(.cgi)?(*)http://foobar.com:10000/virtualmin-邮递员/未经认证/$1.cgi$3
重定向匹配/mailman/([^/\.]*)(.cgi)?(*)http://foobar.com:10000/virtualmin-邮递员/未经认证/$1.cgi$3
别名/pipermail/var/lib/mailman/archives/public

注意:url实际上不是www.foobar.com-为了举例,我已将其更改为该url)

的可能重复项您确定您的Apache服务器正在运行吗?您能否在安装wordpress的文件夹之外创建一个包含另一个index.php文件的文件夹并将其打开?