DeveloperSide.NET Forums

DeveloperSide.NET => Web.Developer Server Suite Community Edition,
Public Support Forum => Topic started by: TazDevilLooney on January 27, 2010, 08:52:56 PM



Title: phpmyadmin accessable from external website address.
Post by: TazDevilLooney on January 27, 2010, 08:52:56 PM
Hi there,

www.mysite.com/phpmyadmin (asks for password)

Is there anyway of restricting access to phpmyadmin to the server it's installed on?
Will there be any problems later on by doing this? like installing wordpress?

I also get a nice little message from trying to access stats

eg   www.mysite.com/stats

---------------------------------------------------------

Error: couldn't open config file "blar,blar,blar" nor "awstats.conf" after searching in path "c:/ <-thats the nasty bit->"
No such file or directory

- Did you use the correct URL ?
Example: http://localhost/awstats.pl?config=mysite
Example: http://127.0.0.1/cgi-bin/awstats.pl?config=mysite
- Did you create your config file 'awstats.conf" ?
If not, you can run "awstats_configure.pl" from command line, or create it manually.

Check config file, permissions and AWstats documentation (in 'docs' directory).

-----------------------------------------------------------------------------

Is there anyway to lose this and run it from the installtion on the server only.

Thanks

Taz


Title: Re: phpmyadmin accessable from external website address.
Post by: admin on January 27, 2010, 09:28:37 PM
1.
Create C:\www\webapps\phpmyadmin\.htaccess
(You might need to 1st create this file as htaccess.txt and rename it to .htaccess within notepad as Windows won't let you directly create a file that starts with a period.)
 
Within it place:
Deny from all
allow from 127.0.0.1

This will prevent access to phpmyadmin from evryone but the local system.

Quote
Will there be any problems later on by doing this? like installing wordpress?

No.

2.
Try creating the same .htaccess file under C:\www\webapps\awstats\, I'm about 95% sure it will work here, if not then should work under a deeper folder.


Title: Re: phpmyadmin accessable from external website address.
Post by: TazDevilLooney on January 27, 2010, 09:49:25 PM
Hi admin

1st one worked.

2nd did not.

I made the .htaccess file

Deny from all
allow from 127.0.0.1

And copyed it into

awstats/
awstats/wwroot/
awststs/tools/

any idears

Taz


Title: Re: phpmyadmin accessable from external website address.
Post by: admin on January 27, 2010, 10:24:34 PM
Try under C:\www\webapps\awstats\wwwroot\cgi-bin\

If that does not work, edit C:\www\Apache22\conf\extra\suite-global\suite-awstats.conf
And change the two instances of...

Order allow,deny
Allow from all

To

Order deny,allow
Deny from all
Allow from 127.0.0.1

Restart Apache.


Title: Re: phpmyadmin accessable from external website address.
Post by: TazDevilLooney on January 27, 2010, 10:39:31 PM
Hi admin,

This one worked for me.

If that does not work, edit C:\www\Apache22\conf\extra\suite-global\suite-awstats.conf
And change the two instances of...

Order allow,deny
Allow from all

To

Order deny,allow
Deny from all
Allow from 127.0.0.1

Restart Apache.

Thankyou for all your help.

Taz