• Hi.

    I continuously keep getting the message

    “The file ‘wp-config.php’ already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try installing now.”

    It happens when I update WordPress and especially when I’ve changed password before that. I change password often because my site was recently hacked. I’ve talked with my web host and they wan’t help me because they say the problem is related to WordPress, not them.
    I’ve changed the password in the original wp-config.php-file, but it doesn’t help.

    Can someone help me??

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’ve changed the password in the original wp-config.php-file

    That password must match the SQL database user password set at the server and has nothing to do with anything else.

    Are you trying to do an installation or trying to access an existing site?

    Thread Starter Ene Bissenbakker

    (@ene-bissenbakker)

    Yes I know, and I figure it’s a password-related problem since it happens when I update + change password. But the password is matching, so I’m really puzzled… I’ve even tried to change between the old and the new password. It’s my own site, btw.

    In the wp-config.php file ends with this, I don’t know… does it look strange?

    /** WordPress absolute path to the WordPress directory. */
    if ( !defined(‘ABSPATH’) )
    define(‘ABSPATH’, dirname(__FILE__) . ‘/’);

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . ‘wp-admin/setup-config.php’);
    require( ABSPATH . ‘wp-settings.php’);

    I have to say that I’m not a skilled user here, my knowledge is pretty basic.

    You and I know about the same in relation to wp-config, but your last line there does not appear in the default wp-config.sample.php:

    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    So, maybe try this with it commented out to see what happens:

    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    //require_once(ABSPATH . 'wp-settings.php');

    Thread Starter Ene Bissenbakker

    (@ene-bissenbakker)

    I did try doing that before, and it lets me access the site, but it doesn’t look quite right
    (take a look here – there’s something wrong in the top..
    Thanks for your support, btw!

    Those at the top are reports from ‘define( ‘WP_DEBUG’, true );’ (set in wp-config.php) as caused by your theme. The theme problems should be addressed, of course, so I would copy them for reference and then comment the ‘WP_DEBUG’ line out for now:

    //define( 'WP_DEBUG', true );
    Thread Starter Ene Bissenbakker

    (@ene-bissenbakker)

    It doesn’t really do the trick…

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

The topic ‘he file 'wp-config.php' already exists’ is closed to new replies.