我有一个新的WordPress 3.2网站,并为其激活了多站点。我在共享的CPanel帐户上托管这个,WordPress安装在root / public_html文件夹中。我已经设置了通配符子域博客。
问题是我已经获得了很多随机内部错误500(每10分钟),所以我的主持人说这是因为.htaccess。所以他们删除了.htaccess,现在我的网站不再收到500的错误。
为什么会发生这种情况?关于问题可能是什么以及如何解决它的任何想法?非常感谢任何帮助或建议。
以下是我从CPanel获得的唯一日志。只是一堆文件未找到错误,我无法理解为什么会导致它。听起来很像这样,但没有确定那里的决议:http://wordpress.org/support/topic/multisite-default-htaccess-rules-cause-infinite-loop-1
[Mon Oct 03 12:34:22 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/404.shtml, referer: http://user234tech.com/wp-admin/network/plugins.php?deactivate=true&plugin_status=all&paged=1&s=
[Mon Oct 03 12:34:22 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/3dc97e86a78d6d3786305e7ff8d89180.css, referer: http://user234tech.com/wp-admin/network/plugins.php?deactivate=true&plugin_status=all&paged=1&s=
[Mon Oct 03 12:34:19 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/404.shtml, referer: http://subdomain1.user234tech.com/wp-admin/plugins.php
[Mon Oct 03 12:34:19 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/3dc97e86a78d6d3786305e7ff8d89180.css, referer: http://subdomain1.user234tech.com/wp-admin/plugins.php
[Mon Oct 03 12:34:19 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/404.shtml, referer: http://subdomain1.user234tech.com/wp-admin/plugins.php
[Mon Oct 03 12:34:19 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/3dc97e86a78d6d3786305e7ff8d89180.css, referer: http://subdomain1.user234tech.com/wp-admin/plugins.php
[Mon Oct 03 12:34:18 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/404.shtml, referer: http://subdomain1.user234tech.com/wp-admin/plugins.php
[Mon Oct 03 12:34:18 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/3dc97e86a78d6d3786305e7ff8d89180.css, referer: http://subdomain1.user234tech.com/wp-admin/plugins.php
[Mon Oct 03 12:34:18 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/404.shtml, referer: http://subdomain1.user234tech.com/wp-admin/plugins.php
[Mon Oct 03 12:34:18 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/3dc97e86a78d6d3786305e7ff8d89180.css, referer: http://subdomain1.user234tech.com/wp-admin/plugins.php
[Mon Oct 03 12:12:19 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/500.shtml, referer: http://user234.co/wp-admin/network/index.php
[Mon Oct 03 12:09:37 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/404.shtml, referer: http://user234.co/wp-admin/network/index.php
[Mon Oct 03 12:09:37 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/dd406ba6ef3849450071a811b5b94568.css, referer: http://user234.co/wp-admin/network/index.php
[Mon Oct 03 11:55:08 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/404.shtml
[Mon Oct 03 11:55:08 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/phpinfo.php,
[Mon Oct 03 11:54:21 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/404.shtml
[Mon Oct 03 11:54:21 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/favicon.ico
[Mon Oct 03 11:54:21 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/404.shtml
[Mon Oct 03 11:54:21 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/favicon.ico
[Mon Oct 03 11:54:21 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/404.shtml
[Mon Oct 03 11:54:21 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/favicon.ico
[Mon Oct 03 11:51:26 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/500.shtml
[Mon Oct 03 11:50:56 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/500.shtml
[Mon Oct 03 11:50:54 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_html/500.shtml
[Mon Oct 03 11:47:45 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_sites/somedomain3.com/404.shtml
[Mon Oct 03 11:47:45 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_sites/somedomain3.com/favicon.ico
[Mon Oct 03 11:47:45 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_sites/somedomain3.com/500.shtml
[Mon Oct 03 11:47:42 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_sites/billing.user234tech.com/404.shtml
[Mon Oct 03 11:47:42 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_sites/billing.user234tech.com/favicon.ico
[Mon Oct 03 11:47:42 2011] [error] [client xx.xx.xx.xx] File does not exist: /home/user234/public_sites/billing.user234tech.com/500.shtml
顺便说一下,这是我的.htaccess:
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]
# END WordPress
答案 0 :(得分:0)
我自己就碰到了这个......好吧,经过几个小时......才找到答案。
问题是我在httpd.conf文件中手动添加了第二个域名作为ServerAlias。但是,第二个域未通过控制面板设置为停放域。
我的修复......
步骤1:删除(注释)httpd.conf文件中的ServerAlias行 引用了我的辅助(别名)域。重启httpd。
第2步:转到cPanel和ADD PARKED DOMAIN中的主域名。 这会在网站的子目录中设置我的辅助域。 (如果您不执行第1步,则会收到错误消息。)
步骤3:返回并手动编辑httpd.conf文件并注释掉 cPanel为辅助域生成块。一世 不希望它进入一个子目录,我希望它会一样 确切的地方作为主要域名。这只是一个别名 毕竟是主域名。
第4步:当我在那里时,取出我添加的那两条注释行 之前我的ServerAlias又回到了我的辅助中心 域。
第5步:重启httpd。
现在,我的辅助域名已在cPanel中注册,并且所有支持数据和系统文件允许Apache正确地提供我的WordPress网站,无论我是否去“charlestonvolleyball.net”或“charlestonvolleyball.com”域名。
如果您没有将此作为辅助域名的问题,请返回并确保所有cPanel设置都正确无误。您需要确保您尝试为Wordpress页面提供服务的域名是在cPanel或WHM中注册的。在WHM中,它将在您的“帐户列表”中,假设您是IPP或运行您自己的专用服务器。
域也可以位于服务器上托管的任何域的cPanel中,并且可以是主域名(主帐户URL)或停放域。子域名在这里没有影响,它只是一个停放或主要域内的主机。
HTH。添加停放的域并暂时禁用我的手动黑客到HTTPD工作。
祝你好运。