Support » Fixing WordPress » wp-config.php changes itself once a day

  • Hello!

    There’s a problem with my WordPress –
    Everything is fine, site is working. But then at night, at about 1am CET, the wp-config.php is updating itself.
    The related lines are:

    /** MySQL database username */
    define(‘DB_USER’, ‘name1’);

    and

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    in the first line it constantly changes from “name1” to “name2”.
    in the second line it constantly changes from “localhost” to “localhost:3306”.

    I’m really out of ideas. Is there any chance anyone knows why this problem exists?

Viewing 4 replies - 1 through 4 (of 4 total)
  • It’s something or someone on your server. Is there an automated task that’s carried out at 1am?

    What are the file permissions? Try setting them to 600 (chmod 600 wp-config.php)

    On your cpanel, Also check cron jobs section.

    If you can’t find cron job, then it would be better to set the permissions as 600 as WPRanger suggested.

    EDIT:
    There’s no cjobs on the Server and permissions don’t change anything.

    Any further ideas?

    Speaking with your hosts would be my next plan of action.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp-config.php changes itself once a day’ is closed to new replies.