• Resolved gabrielpioaru

    (@gabrielpioaru)


    Hi,

    The site worked just fine before disabling wordfence from dashboard. Right after disabling the plugin i’ve got “http 500 error” and the website and the backend does not work anymore.

    Here what i have tried and none of them worked:
    – disabled all plugins via ftp (renamed to plugins_off the folder)
    – reupload wordpress core files
    – created a mu-plugins folder and moved wordfence there to force activation
    – reversed wordfence back to plugins folder, deleted mu-plugins
    – rised memory limit to 128m in wp-config.php same tried with user.ini
    – it’s not theme related
    – can’t do database repair with site.com/wp-admin/maint/repair.php
    – database, user, etc, checked that wp-config.php it is the same like in phpmyadmin

    I’ve searched all the internet for a solution but none it’s working for me…
    I can access phpMyAdmin but don’t have access to MySQL for the moment…

    Help me please.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @gabrielpioaru,

    Could try and enable WP_DEBUG in order to get additional information on what’s causing this “500 server error”?

    Also could you check the Web server error log file to see if you can find any specific messages?

    Thread Starter gabrielpioaru

    (@gabrielpioaru)

    I’ve enabled wp_debug, wp_debug_log and wp_debug_display but i can’t find them anywhere, as in wp-content or root folder can’t see them…
    I have ispconfig so i don’t have a file manager. I just use ftp to manage the files

    Thread Starter gabrielpioaru

    (@gabrielpioaru)

    here is my .htaccess file

    <Files xmlrpc.php>
    Allow from deny
    </Files>
    # END GOTMLS Patch to Block XMLRPC Access
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^https://(.+\.)gabriel.pioaru.ro [NC]
    RewriteCond %{HTTP_REFERER} !^$
    </IfModule>
    # BEGIN s2Member GZIP exclusions
    <IfModule rewrite_module>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{QUERY_STRING} (^|\?|&)s2member_file_download\=.+ [OR]
    RewriteCond %{QUERY_STRING} (^|\?|&)no-gzip\=1
    RewriteRule .* – [E=no-gzip:1]
    </IfModule>
    # END s2Member GZIP exclusions
    # Begin redirect www to no-www
    <IfModule rewrite_module>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
    </IfModule>
    # END redirect www to no-www
    # BEGIN rlrssslReallySimpleSSL rsssl_version[2.4.3]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL
    <IfModule mod_expires.c>
    # Enable expirations
    ExpiresActive On
    # Default directive
    ExpiresDefault “access plus 1 month”
    # My favicon
    ExpiresByType image/x-icon “access plus 1 year”
    # Images
    ExpiresByType image/gif “access plus 1 month”
    ExpiresByType image/png “access plus 1 month”
    ExpiresByType image/jpg “access plus 1 month”
    ExpiresByType image/jpeg “access plus 1 month”
    # CSS
    ExpiresByType text/css “access 1 month”
    # Javascript
    ExpiresByType application/javascript “access plus 1 year”
    </IfModule>
    <ifModule mod_headers.c>
    Header unset ETag
    </ifModule>
    FileETag None

    Thread Starter gabrielpioaru

    (@gabrielpioaru)

    I’ve posted de wrong .htaccess file, sorry.
    Here is the right one.

    <Files xmlrpc.php>
    Allow from deny
    </Files>
    # END GOTMLS Patch to Block XMLRPC Access
    <IfModule mod_rewrite.c>
    RewriteEngine On
    #Replace ?mysite\.com/ with your blog url
    RewriteCond %{HTTP_REFERER} !^https://(.+\.)gabriel.pioaru.ro [NC]
    RewriteCond %{HTTP_REFERER} !^$
    </IfModule>
    # BEGIN s2Member GZIP exclusions
    <IfModule rewrite_module>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{QUERY_STRING} (^|\?|&)s2member_file_download\=.+ [OR]
    RewriteCond %{QUERY_STRING} (^|\?|&)no-gzip\=1
    RewriteRule .* – [E=no-gzip:1]
    </IfModule>
    # END s2Member GZIP exclusions
    # Begin redirect www to no-www
    <IfModule rewrite_module>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
    </IfModule>
    # END redirect www to no-www
    # BEGIN rlrssslReallySimpleSSL rsssl_version[2.4.3]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    <IfModule mod_expires.c>
    # Enable expirations
    ExpiresActive On
    # Default directive
    ExpiresDefault “access plus 1 month”
    # My favicon
    ExpiresByType image/x-icon “access plus 1 year”
    # Images
    ExpiresByType image/gif “access plus 1 month”
    ExpiresByType image/png “access plus 1 month”
    ExpiresByType image/jpg “access plus 1 month”
    ExpiresByType image/jpeg “access plus 1 month”
    # CSS
    ExpiresByType text/css “access 1 month”
    # Javascript
    ExpiresByType application/javascript “access plus 1 year”
    </IfModule>
    <ifModule mod_headers.c>
    Header unset ETag
    </ifModule>
    FileETag None

    Thread Starter gabrielpioaru

    (@gabrielpioaru)

    Solved!

    I’ve deleted from php.ini this line
    auto_prepend_file = ‘/home/username/website.com/wordfence-waf.php

    It might be one in .htaccess. Remove that if it’s there!

    Hi @gabrielpioaru,

    I’m glad you managed to fix this issue.

    Thanks a lot for sharing this!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘http 500 error after just disabling wordfence’ is closed to new replies.