Skip to main content

Customers confused when changing cpanel/mysql password, website fails

Comments

10 comments

  • cPRex Jurassic Moderator
    Hey there! I wasn't able to reproduce this issue on a cPanel version 102 server. It would also be odd to me that their site is using a main cPanel user for a MySQL connection on a public website. Could you submit a ticket to our team so we can check this on our end? Normally I'd expect any site (such as a WordPress site) to have a separate MySQL user and password, and that would be unrelated to the cPanel password.
    0
  • ffeingol
    My guess is that they are using the kind of hidden cPanel-userid MySQL user that is generated instead of actually creating a MySQL user (and granting it permissions etc.). If they use that userid and they change their cPanel password, their site will in fact be broken. We have had a few client over the years do that. We just explain how to create/grant access to a MySQL user and have them update their config files and then things are good forever.
    0
  • jndawson
    Hey there! I wasn't able to reproduce this issue on a cPanel version 102 server. It would also be odd to me that their site is using a main cPanel user for a MySQL connection on a public website. Could you submit a ticket to our team so we can check this on our end? Normally I'd expect any site (such as a WordPress site) to have a separate MySQL user and password, and that would be unrelated to the cPanel password.

    This a very old site dating back to (possibly) 2007 which was moved to a new server recently. It's conceivable that the wp mysql user and cpanel user were the same. Customer has created a new user just for WP. The question I need answered is, "There is no .my.cnf file. How is that file supposed to be created?"
    0
  • ffeingol
    What do you need a .my.cnf file for? WordPress (for example) only reads it's on config file.
    0
  • cPRex Jurassic Moderator
    cPanel hasn't created a .my.cnf for the user for some time. There is no reason it has to be present on a system for things to work. You can always manually create that file if you need it, although I would have expected that to get moved over as part of a migration if it was necessary for the account to function. In general, this file is no longer used.
    0
  • cPRex Jurassic Moderator
    I did some more digging on this, and that file used to be created back when it was necessary to have it in place so the cPanel user could access PHPMyAdmin. Since the file stored the cPanel user's password in plain text, that was removed and is now considered a security risk.
    0
  • jndawson
    I did some more digging on this, and that file used to be created back when it was necessary to have it in place so the cPanel user could access PHPMyAdmin. Since the file stored the cPanel user's password in plain text, that was removed and is now considered a security risk.

    Thanks for the info. Perhaps the docs need to be updated to reflect that rather than point to a non-existent file. [QUOTE]3. Select Synchronize MySQL password to use the same password for both MySQL" and the cPanel account. Note: This option only appears if the the .my.cnf file exists in the /home/USERNAME directory where USERNAME represents the account"s username.
    0
  • cPRex Jurassic Moderator
    That seems like a good idea to me. I'll get some action on that, but it's likely going to be next week. I'll post back when I have an update.
    0
  • cPRex Jurassic Moderator
    I've created a case with our Documentation team so they can do some more research on this and get the page edited as necessary. I'll be sure to post updates as soon as I have them.
    0
  • cPRex Jurassic Moderator
    Update - our team plans to release an update to that page with the version 104 documentation.
    0

Please sign in to leave a comment.