403 error
Posted by: Blake (---.ipt.aol.com)
Date: July 10, 2006 05:15PM

When I try to access my website (running WAMPserver) I get this error:

"
Error 403
--------------
Forbidden

You don't have permission to access / on this server.
--------------------------------------------------------------------------
Apache/2.0.58 (Win32) PHP/5.1.4 Server at ccfootball.getmyip.com Port 80
"

Can someone tell me what’s happening how to fix it?

Thanks!

Options: ReplyQuote
Re: 403 error
Posted by: yfastud (72.236.169.---)
Date: July 10, 2006 06:03PM

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
</Directory>

3. after the </directory> line above add the following:

<Directory "C:/wamp/phpmyadmin">
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Directory>

<Directory "C:/wamp/sqlitemanager">
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Directory>

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)

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: 403 error
Posted by: Blake (---.ipt.aol.com)
Date: July 10, 2006 08:01PM

Thanks!

That sorted out the problem.

Options: ReplyQuote
Error
Posted by: Jonathan (---.phil.east.verizon.net)
Date: August 15, 2006 08:05AM

#1045 - Access denied for user 'root'@'localhost' (using password: YES)

That's the error message I get on phpmyadmin now. I followed your steps exactly and now i'm blocked out.

Options: ReplyQuote
Re: 403 error
Posted by: CyberSpatium (67.170.181.---)
Date: August 15, 2006 09:06AM

any time you edit your httpd.conf or php.ini file, you need to restart windows for the new settings to take effect

Options: ReplyQuote
Re: Error
Posted by: Breeze (221.127.100.---)
Date: August 15, 2006 09:12AM

I suspect that he haven't altered this line in config.inc.php


find
$cfg['Servers'][$i]['auth_type'] = 'config';

replace it with
$cfg['Servers'][$i]['auth_type'] = 'http';

Options: ReplyQuote
Re: 403 error
Posted by: CyberSpatium (67.170.181.---)
Date: August 15, 2006 12:37PM

no, dont change your config.ini.php file auth_type to http. changing that setting just tells phpmyadmin what type of login promt to use when logging in to phpmyadmin. that has nothing to do access permissions.

Options: ReplyQuote
Re: 403 error
Posted by: Jonathan (---.phil.east.verizon.net)
Date: August 17, 2006 06:39AM

Well hey, it worked. I just have to log in every time (which is no problem). Thanks.

Options: ReplyQuote
Re: 403 error
Posted by: si458 (---.net)
Date: September 06, 2006 08:36PM

hi

i had the same problems with the wamp5 server but thanks to this page i have my very own webserver and mysql server

thanks

p.s: cyberspatium the reply you wrote was rubbish i did what Brezze said to to and it attachule worked
CyberSpatium wrote:

> no, dont change your config.ini.php file auth_type to http.
> changing that setting just tells phpmyadmin what type of login
> promt to use when logging in to phpmyadmin. that has nothing to
> do access permissions.



SASmith

Options: ReplyQuote
Re: 403 error
Posted by: CyberSpatium (67.170.181.---)
Date: September 07, 2006 12:31AM

< si458 Wrote: >
< - - - - - - - - - - - - - - - - - - - - - >
p.s: cyberspatium the reply you wrote was rubbish i didwhat Brezze said to to and it attachule worked
< - - - - - - - - - - - - - - - - - - - - - >

i was not wrong. if you change the auth_type setting from httd to cookie, it will change the type of login prompt you get when you access phpmyadmin. it has nothing to do with any authorization or login problems you may get when trying to login to phpmyadmin.

if you use http you will get a prompt to enter your user id and password to access phpmyadmin.

if you use cookie, then you will see a webpage where you need to enter your user id and password to access phpmyadmin.

if you use config, you will not see any login prompt or page, and access phpmyadmin directly.

More Info:
[www.phpmyadmin.net]
[wiki.cihar.com]



Post Edited (09-11-06 10:54)

CyberSpatium
----------------------
WAMP Forum Admin

Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.

Options: ReplyQuote
Re: 403 error
Posted by: mdg (---.dyn.iinet.net.au)
Date: September 11, 2006 07:14AM

This is insane.

I've tried all of the above and I still get the error mesage
mysql error 1045
- Access denied for user 'root'@'localhost' (using password: YES)

How can it be so complicated just to get the thing started?

This is really driving me round the bend.

Is there anyway of just installing this so it actually works when you start it?


Options: ReplyQuote
Re: 403 error
Posted by: CyberSpatium (67.170.181.---)
Date: September 11, 2006 11:00AM

make sure you restart apache after you edit your php.ini and httpd.conf file.

Options: ReplyQuote
Re: 403 error
Posted by: alanay (170.38.99.---)
Date: September 12, 2006 05:01AM

Hi All,

This is my first posting to this forum after I decided to re-venture in this interesting field. I think this thread on setting password for root is very very very useful and importance. I tried it and had to re-install the wamp few times because I cannot get into the admin page after applying the root password.

I would like to suggest this thread to be converted into the permanent document of wamp since it's more than mySQL setting alone.

I would like to thank all the respondents here.

Rgds.

Options: ReplyQuote
Re: 403 error
Posted by: bsod (---.superstring.nl)
Date: September 12, 2006 01:46PM

the #1045 error is caused by the fact that the config.ini.php file must NOT reside in the config/ directory (as stated in the docs) but in ./ itself. so a

copy config\config.ini.php .

solved it for me.

Options: ReplyQuote
Re: 403 error
Posted by: si458 (---.net)
Date: September 17, 2006 02:32PM

i changed my $cfg['Servers'][$i]['auth_type'] = 'http'
to
$cfg['Servers'][$i]['auth_type'] = 'cookie'

and it keeps coming up with this:

The configuration file now needs a secret passphrase (blowfish_secret).

what does it mean?

thanks



SASmith

Options: ReplyQuote
Re: 403 error
Posted by: CyberSpatium (67.170.181.---)
Date: September 17, 2006 03:22PM

* The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
* at least one server configuration uses 'cookie' auth_type, enter here a
* passphrase that will be used by blowfish. The maximum length seems to be 46
* characters.
*/
$cfg['blowfish_secret'] = '';

Options: ReplyQuote
Re: 403 error
Posted by: si458 (---.net)
Date: September 17, 2006 08:05PM

its ok i found out what it means and i have sorted the problem out



Post Edited (09-17-06 20:24)

SASmith

Options: ReplyQuote
Re: 403 error
Posted by: tanu16tanu (59.95.30.---)
Date: May 15, 2007 04:36PM

I too got the same error when i installed WAMP5 1.7.1 and tried to see whether my webserver is running or not.
but the solution to this problem that i found was pretty simple. Just open the file httpd.conf In your wamp installation directory (eg...\wamp\Apache2\conf) and search for the following lines:

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from All
Satisfy all
</Directory>

simply change "Deny from All" to "Deny from None". Restart your webserver and get it done.


Options: ReplyQuote


Sorry, only registered users may post in this forum.