2007年9月7日星期五

使用wamp快速搭建PHP环境

wamp 每次都为我快捷搭建PHP带来很大的帮助。

这里主要分享一下,关于开放默认wamp配置只能够在本机查看网页的限制,我在它的网站找到了一个403错误的解决方法

Author: yfastud (72.236.169.—)
Date: 07-10-06 18:03

How 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 go

2. 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 (only

Also, 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 all

3. after the line above add the following:

Order deny,allow
Deny from all
Allow from 127.0.0.1

Order deny,allow
Deny from all
Allow from 127.0.0.1

4. 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 all

By these lines:

Order deny,allow
Deny from all
Allow from 127.0.0.1

Hope this help

Post Edited (10-11-06 00:04)

没有评论: