• agilphil

    (@agilphil)


    Hi there,

    I somehow screwed up my config, the site responds ok, but admin panel is no longer accessible.

    When I request <MyDomainName>/wp-admin, the request is rewrited into :
    `http://<MyServerIPAdress>/blog/wp-login.php?redirect_to=http%3A%2F%2F<MyDomainName>%2Fwp-admin%2F&reauth=1

    And the browser is blank. Audit of requests shows redirec raises html error 500. Also named as Blank Page Of Death, is it?

    Could anyone give me a hand please?

    Cheers,
    Phil

Viewing 12 replies - 1 through 12 (of 12 total)
  • jassu22

    (@jassu22)

    It’s a stack over flow

    sinip

    (@sinip)

    Server error 500 and the “white screen of death” are not necessarily the same thing. If you’re getting 500, the details are logged in your error.log file, usually located at your hosting root. You could take a look and post most recent entries.
    In the meantime you can try to rename.htaccess to htaccess.old, just to see if that will take care of that redirect problem.

    jassu22

    (@jassu22)

    Go to your database, and find the table called wp-option, then change the wordpress address and site address to mysite.net.

    You can also add the following lines of code to the wp-config.php-file

    Define(‘WP_SITEURL’,’http://your-site-url.com&#8217;);
    Define(‘WP_HOME’,’http://your-site-url.com&#8217;);

    Thread Starter agilphil

    (@agilphil)

    @jassu22, sinip, thank you.

    Here are the configs at the moment :
    – wp-config.php https://pastebin.com/pXp7vqYZ
    – wp-login.php https://pastebin.com/WxFazbuK

    Siteurl and home in wp-option table = http://<MyIPAdress>/

    Noting changed with different trials I made to these files. Except now both admin and the actual website are on error 500 …

    Thread Starter agilphil

    (@agilphil)

    @sinip, I had tried changing .htaccess name, and reverted to the very standard wp codex version of it. No change.
    Still looking for this error.log file but can’t locate it, even with find / -type d -name “error.log”. What could be the cause?

    sinip

    (@sinip)

    Well, as the last resort you can try asking your hosting support about the location of that log file. Hard to guess where it might be because every hosting provider might have own idea about its location.

    How about restoring your website from a recent backup if everything else fails?

    • This reply was modified 9 years ago by sinip.
    Thread Starter agilphil

    (@agilphil)

    @sinip, the server is dedicated, so I have access to the whole directory tree, and the find command should have located for me, isn’t it ?

    I’d rather not reinstal the whole thing for now, but yes, I may become an option 🙂

    Thread Starter agilphil

    (@agilphil)

    In fact what should the wp-admin, wp-config, wp-login files, and options table look like : all in “MySiteUrl” form ?

    Or : must some of these be in “IPAdress” and others in “MySiteUrl” form ?

    • This reply was modified 9 years ago by agilphil.
    sinip

    (@sinip)

    True that. Maybe it is named differently? Anyway, ask your hosting support, you have nothing to lose.

    Thread Starter agilphil

    (@agilphil)

    Apache default.conf file has:

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    So, there should be a such error.log somewhere. None.
    Do we speak of Apache errors or something else ?

    Thread Starter agilphil

    (@agilphil)

    I’m reinstalling.
    Would you have a pointer for accessing the site from http://MyUrl and not http://MyUrl/wordpress please ?

    Install directory is /var/www/wordpress

    sinip

    (@sinip)

    Sorry, I’ve lost you here… If you’re asking about the default install directory, it doesn’t have to be /wordpress, you can install it in root, if that’s the only website at your server.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘WP Admin error 500’ is closed to new replies.