• Resolved lzr0

    (@lzr0)


    Hi,
    I just changed my User database password under cpanel>MySQL menu. The site began giving “Error establishing a database connection”. Then I manually changed DB user password stored in wp-config.php file . The site now gives 500 error (says the page can’t currently handle the request). GoDaddy tech support told me my index.php is corrupted (He put his own index file “hello world” after which the error is gone)
    I tried to FTP index.php from my local backup, but it did not help (that backup was doe before I updated WP to latest). Here is what my old index.php reads. What can be wrong?

    <?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' );
    • This topic was modified 3 years, 8 months ago by lzr0.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If he added his own index.php, then wordpress was not loaded. The error is most likely in wp-config.php, not index.php, as that was the file you edited. Restore wp-config.php from your backup.

    Thread Starter lzr0

    (@lzr0)

    OK, here is update.
    After an hour with useless godaddy tech support, I just changed the DB user’s password back to the old one, changed wp-config.php accordingly, and re-uploaded index.php from my local backup- the above steps have restored the site. Don’t know why simple DB password changed in cpanel triggered so much problems. Very frustrated with GoDaddy.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Corrupted index.php how to fix?’ is closed to new replies.