WordPress.org

Ready to get started?Download WordPress

Forums

wp-config.php changes itself once a day (5 posts)

  1. Loxtus
    Member
    Posted 6 months ago #

    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?

  2. Dave Naylor
    Member
    Posted 6 months ago #

    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)

  3. ubaidullahbutt
    Member
    Posted 6 months ago #

    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.

  4. Loxtus
    Member
    Posted 6 months ago #

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

    Any further ideas?

  5. Dave Naylor
    Member
    Posted 6 months ago #

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

Reply

You must log in to post.

About this Topic