wamp 每次都为我快捷搭建PHP带来很大的帮助。
这里主要分享一下,关于开放默认wamp配置只能够在本机查看网页的限制,我在它的网站找到了一个403错误的解决方法:
Author: yfastud (72.236.169.—)
Date: 07-10-06 18:03How did you change your password?
For setup password, need to change it in TWO PLACES:
1. Set password in Privilleges in phpMyAdmin from your Browser/Localhost.
Open your desire browser
Goto: localhost/phpmyadmin/
click on “Privileges” link
click on “edit Privileges” link for ROOT user
and set-up your password (change password) and click go2. Set password in config.inc.php in /wamp/phpmyadmin.
Find and put your password in this line:
$cfg[’Servers’][$i][’password’] = ‘Your_new_password_here’; // MySQL password (onlyAlso, if like to set the permission to access PHPmyadmin and SQLitemanager, so only local network users can access it through Localhost or Alias, and of course it’s only useful if your sites accessible worldwide; otherwise, use htaccess and htpasswrd.
1. open httpd.conf in /wamp/Apache2/conf
2. find the lines
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all3. after the line above add the following:
Order deny,allow
Deny from all
Allow from 127.0.0.1Order deny,allow
Deny from all
Allow from 127.0.0.14. change location of the directories as your might be different from “C:/wamp/phpmyadmin”
Also in Alias folder (/wamp/Apache2/conf/alias), replace these lines in phpmyadmin.conf and splitemanager.conf:
Order allow,deny
Allow from allBy these lines:
Order deny,allow
Deny from all
Allow from 127.0.0.1Hope this help
Post Edited (10-11-06 00:04)
没有评论:
发表评论