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

The solution to the failure of phpmyadmin login after changing the password of php integrated installation package wampserver

2025-03-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly explains "php integration installation package wampserver changes the password after the phpmyadmin can not log in the solution", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn the "php integration installation package wampserver to change the password after the phpmyadmin can not log in to the solution"!

1. Question:

The native php development environment was reinstalled today, using the WampServer2.1a-x32 integrated installation package (previously using the appserv-win32-2.5.9 integrated installation package). Install multiple versions of the php runtime environment by the way.

The installation process will not be repeated here. (here wampserver is installed in the root directory of C disk) after installation, because the mysql password is not set by default installation, the mysql password is changed here (for more information, please refer to the previous article "how to modify the default empty password of mysql in WAMP")

After that, for the convenience of php development, I modified the php root directory address to the phpdemo directory under disk C, and put phpmyadmin in this directory by the way.

But the problem comes, after changing the mysql password, click phpmyadmin can not enter, hint: the page can not be opened reason: the request was rejected by the server (403)

2. Solution:

At first, the configuration file config.inc.php in the phpmyadmin directory was modified according to the usual method on the Internet, but restarting wampserver found that it didn't work.

Then modify the httpd.conf file on the Apache server, set the relevant access permissions, and still cannot access phpmyadmin after restarting wampserver again.

Finally, looking back at the relevant configuration files under the original wampserver file, we found that there is a phpmyadmin.conf configuration file in the wamp/alias directory, which is as follows:

The copy code is as follows:

Alias / phpmyadmin "c:/wamp/apps/phpmyadmin3.2.0.1/"

# to give access to phpmyadmin from outside

# replace the lines

#

# Order Deny,Allow

# Deny from all

# Allow from 127.0.0.1

#

# by

#

# Order Allow,Deny

# Allow from all

#

Options Indexes FollowSymLinks MultiViews

AllowOverride all

Order Deny,Allow

Deny from all

Allow from 127.0.0.1

Try to modify it, change it to the directory described now, and set the appropriate access permissions:

The copy code is as follows:

Alias / phpmyadmin "c:/phpdemo/phpmyadmin/"

# to give access to phpmyadmin from outside

# replace the lines

#

# Order Deny,Allow

# Deny from all

# Allow from 127.0.0.1

#

# by

#

# Order Allow,Deny

# Allow from all

#

Options Indexes FollowSymLinks MultiViews

AllowOverride all

Order Deny,Allow

# Deny from all

Allow from all

Restart the server again and find that it can be accessed normally!

At this point, I believe that everyone on the "php integrated installation package wampserver modified password after the phpmyadmin can not log in to the solution" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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

Development

Wechat

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

12
Report