• Resolved tycooko

    (@tycooko)


    Well, basically what the title says.
    Each day, when I wake up, my site is offline, displaying the following error:
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

    More information about this error may be available in the server error log.
    ———————————————————————————
    I then simply reinstall 4.4 again and the error goes away, and the site goes back online and is visible. Next day, it’s all over again.
    I’ve already tried to deactivate all my plugins, with no success.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator James Huff

    (@macmanx)

    Internal server errors (error 500) are often caused by plugin or theme function conflicts, so if you have access to your admin panel, try deactivating all plugins. If you don’t have access to your admin panel, try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, try switching to the Twenty Fifteen theme to rule-out a theme-specific issue. If you don’t have access to your admin panel, access your server via FTP or SFTP, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue.

    If that does not resolve the issue, it’s possible that a .htaccess rule could be the source of the problem. To check for this, access your server via FTP or SFTP and rename the .htaccess file. If you can’t find a .htaccess file, make sure that you have set your FTP or SFTP client to view invisible files.

    If you weren’t able to resolve the issue by either resetting your plugins and theme or renaming your .htaccess file, we may be able to help, but we’ll need a more detailed error message. Internal server errors are usually described in more detail in the server error log. If you have access to your server error log, generate the error again, note the date and time, then immediately check your server error log for any errors that occurred during that time period. If you don’t have access to your server error log, ask your hosting provider to look for you.

    Thread Starter tycooko

    (@tycooko)

    None of the above solutions worked. My server error log reads as follows:

    [Mon Dec 21 04:43:43 2015] [error] [client 62.149.144.15:52959] – https://www.psmtickling.com – End of script output before headers: index.php
    [Mon Dec 21 04:43:43 2015] [error] [client 62.149.144.15:52959] – https://www.psmtickling.com – AH01215: suexec policy violation: see suexec log for more details: /web/htdocs/www.psmtickling.com/home/index.php

    Thread Starter tycooko

    (@tycooko)

    I use FileZilla, but I have no idea where “/web/htdocs/www.psmtickling.com/home/index.php” is.
    The software doesn’t either display the directory or find it with its search engine.

    Moderator James Huff

    (@macmanx)

    I suspect that’s WordPress’s main index.php file.

    If FileZilla is configured to go directly into the account, it may not display the full server path.

    Try downloading WordPress again and delete then replace your copies of everything except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings. Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

    Thread Starter tycooko

    (@tycooko)

    James, thank you so much for your patience and time.
    I looked at the very first “index.php” file inside the newly downloaded WordPress 4.4 folder and it was as simple as this:

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require( dirname( __FILE__ ) . '/wp-blog-header.php' );

    While the same kind of file I had uploaded on FileZilla was the following:

    [removed]

    Even for an amateur like myself, this one looks radically different and pretty weird, compared to the original one that is supposed to be there, and all that code gobbledygook seems quite suspicious.
    Could this be the problem?
    Well, at least, what’s apparent is I’ve changed this to the official code of the index.php file and, for now, it seems to have brought my site back.

    Moderator James Huff

    (@macmanx)

    Ok, that code at the top is a hack attempt.

    Remain calm and carefully follow this guide. When you’re done, you may want to implement some (if not all) of the recommended security measures.

    Thread Starter tycooko

    (@tycooko)

    For the moment, I haven’t had any problem again, so I’ll set this as resolved. Thank you!

    Moderator James Huff

    (@macmanx)

    You’re welcome!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Site offline daily and have to reinstall 4.4 every time’ is closed to new replies.