2.14.6.3. Change administrator password in OkayCMS

Notes:

  • It is technically impossible to find out the current administrator password, as it is not stored on the site in plain text — only its hash is stored. Only a password reset to a new one is possible.
  • The easiest way to set the required password is to use default CMS tools, because it is hashed with the Apr1-MD5 algorithm. For this reason, changing a lost password involves two steps: setting a known password in the database and then changing the password to the required one in the site admin panel.
  1. In the site configuration file, check the name of the database it connects to.
  2. Open database in phpMyAdmin.
  3. Execute the following SQL query (use your data in the query):
    UPDATE `ok_managers` SET `password` = '$apr1$60po2n9a$DbvsIREAnZBn1J0pidcW/' WHERE `email` = 'admin@example.com';
    • Instead of ok_, specify your table prefix if it differs from the default.
    • Instead of admin@example.com, specify the administrator account email for which you are changing the password.
  4. Check sign-in to site admin panel using password as password.
  1. Sign in to site admin panel.
  2. Go to "Site settings → Managers" and click the required administrator name:
  3. Set a new password, repeat it in the second field, and in the pop-up message at the bottom of the page click "Save":
  4. Check sign-in to site admin panel with the new password.
Content