Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Resolve the problem that the phpcms password has been forgotten

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article is about solving the problem that the phpcms password has been forgotten. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

1. First log in to the database and find the corresponding database of the website. Here we mainly use member table and times table.

2. Is there a locked ip address? if so, do you really have to wait for an hour? See here to teach you how to remove the lock. If not, just skip the second part and look at the fourth part.

3. Open your phpcms_times table, the prefix may vary according to your situation. Delete the entry corresponding to your ip address. If you are not sure, you can select all of your information directly, and then click Delete. In this way, you can log in to the background directly without being prompted to lock by ip.

4. Find your password key PASSWORD_KEY, find the config.inc.php file in the include directory, search password _ KEY, and find the value you set, as shown in the figure:

5. Write a program to generate a new password

In phpcms, passwords are stored with a secret key + password and then encrypted by md5. So we only need to write the following program to output the encrypted string of our password, or we can use the existing web page md5 encryption.

Sample program:

6. Copy the encrypted string, find the phpcms_member table in the database, select your user name, click Edit, and replace the password string with the copied encrypted string

7. In this way, the modification process is over. Go back to the normal background and log in directly using the password (111111) you just set.

Thank you for reading! So much for solving the problem of forgetting the phpcms password. I hope the above content can help you to some extent, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report