cant access my website from online, work localhost
Posted by: yawasare (---.cpe.net.cable.rogers.com)
Date: November 10, 2008 10:07AM

i vista and wamp5 is install on it i have put it only and the welcome page can be open but when i click on phpmyadmin it will not let me if am on line, but when i access it localhost it works and all, ok i have dyndns install and i have domain name ghanacomputer.selfip.com, when i open, it open the wamp5 page and when i click on phpifo and phpmyadmin to access sql databases it says it been decline and forbidden
can i get any help?

Options: ReplyQuote
Re: cant access my website from online, work localhost
Posted by: trescott3 (---.hsd1.wa.comcast.net)
Date: November 10, 2008 10:30AM

WAMP blocks external access to phpmyadmin for security reasons. Exposing that directory to the Internet (globally) would make your databases vulnerable.

If you want to change this:

1. Open phpmyadmin and go to 'Privelages' and set a root password. Make SURE you protect this account!

2. Open C:\wamp\alias\phpmyadmin.conf

Change:

<Directory "c:/wamp/apps/phpmyadmin2.11.6/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>

To:

<Directory "c:/wamp/apps/phpmyadmin2.11.6/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Allow, Deny
Allow from all
</Directory>

If you want to have users authenticate (login) with their username and password, open C:\wamp\apps\phpmyadmin2.11.6\config.inc.php:

Change (Line 71):

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

To (Line 71):

$cfg['Servers'][$i]['auth_type'] = 'http';


Finally, give WAMP a restart and it should work! smiling smiley

--
Trent Scott
trescott3@gmail.com

Options: ReplyQuote
Re: cant access my website from online, work localhost
Posted by: yawasare (---.cpe.net.cable.rogers.com)
Date: November 10, 2008 10:44AM

ok i change it it allow me to access it but on the database when i click on phpmyadmin it open my database good thing, but when i click on previlages it says Error
MySQL said:

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

where can i go to set password for that because am sure theere is a script writing for it but am not sure where it is?

Options: ReplyQuote
Re: cant access my website from online, work localhost
Posted by: trescott3 (---.hsd1.wa.comcast.net)
Date: November 10, 2008 10:48AM

Nope, what happened is you changed the root password and phpmyadmin reloaded thinking there was still no password. You need to open the config.inc.php file and make that change on line 71 from 'config' to 'http'. Now, it will bring up a login screen where you can enter 'root' as the username and whatever password you just set to get back into phpmyadmin.

That should work, let me know.

Also, here's a guide for reference if you have trouble:

[trentscott.org]

--
Trent Scott
trescott3@gmail.com

Options: ReplyQuote
Re: cant access my website from online, work localhost
Posted by: yawasare (---.cpe.net.cable.rogers.com)
Date: November 10, 2008 10:51AM

ok its working nicesly
that you so much
i like to talk at you
yaw_asare@hotmail.com

Options: ReplyQuote
Re: cant access my website from online, work localhost
Posted by: trescott3 (---.hsd1.wa.comcast.net)
Date: November 10, 2008 10:52AM

Glad everything worked well! smiling smiley

--
Trent Scott
trescott3@gmail.com

Options: ReplyQuote
Re: cant access my website from online, work localhost
Posted by: yawasare (---.cpe.net.cable.rogers.com)
Date: November 10, 2008 11:11AM

when i open to the web it goes atraight to wamp welcome page, i want it to open my web site instead open the welcome page for the public seeing what i have open the system

Options: ReplyQuote
Re: cant access my website from online, work localhost
Posted by: yfastud (Moderator)
Date: November 10, 2008 01:31PM


Options: ReplyQuote
Re: cant access my website from online, work localhost
Posted by: yawasare (---.cpe.net.cable.rogers.com)
Date: November 10, 2008 02:22PM

so far evething is work ok, but whne i try connect to my database from dreamwaver it kept on giving me code 404 file not found, here are some reasons
1 there is no testing server on the server michine
2 the testing server specified for this site does not map to
[localhost] url. verify that the url prefix maps to the root of the site

Options: ReplyQuote


Sorry, only registered users may post in this forum.