500 Internal Server Error - Wordpress

a 夏天 提交于 2019-12-25 01:39:36

问题


I have uploaded a Wordpress site under the following subdomain - http://wptest.paddingtonterraces.com.au/

I am getting '500 Internal Server Errors' for everything that is grabbed from outside the root directory.

Any help with resolving this would be greatly appreciated.

EDIT:

.htaccess rewrites:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /paddington-terraces/
RewriteRule ^index\.php$ - [L]
RewriteRule ^css/(.*) /paddington-terraces/wp-content/themes/retlehs-roots-g2368ac2/css/$1 [QSA,L]
RewriteRule ^js/(.*) /paddington-terraces/wp-content/themes/retlehs-roots-g2368ac2/js/$1 [QSA,L]
RewriteRule ^img/(.*) /paddington-terraces/wp-content/themes/retlehs-roots-g2368ac2/img/$1 [QSA,L]
RewriteRule ^plugins/(.*) /paddington-terraces/wp-content/plugins/$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /paddington-terraces/index.php [L]
</IfModule>

SOLVED:

Had to remove /paddington-terraces from the Rewrite paths.


回答1:


A few possibilities:

  1. Could be a bad plugin.
    • Disable all plugins, then refresh your homepage.
  2. Bad install.
    • Go download a fresh copy from wordpress.org. Overwrite your current WP dir, with the exception of wp-contents and wp-config.
  3. Bad theme code
    • Check your functions.php file
    • Even better, if you have command line access, from your main WP directory run:
      • grep -rn /home/paddingt/public_html/wptest/ gllr_add_script *
  4. Bad version of PHP or Apache/HTTPD
    • echo php_info();

My bet is a bad plugin. Good luck.




回答2:


Try To deactivate plugins and check
you can deactivate plugin without using wp-admin. Simply login with ftp and rename the plugin name for example: 'plugin_name' change to 'plugin_name_rename'.. I faced same issue .. and my problem was solved by deactivating plugin :)



来源:https://stackoverflow.com/questions/11769262/500-internal-server-error-wordpress

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!