DeveloperSide.NET Forums
August 20, 2019, 11:44:33 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: phpmyadmin accessable from external website address.  (Read 26716 times)
0 Members and 1 Guest are viewing this topic.
TazDevilLooney
Customer, Basic Support
Jr. Member
*****
Posts: 30



View Profile
« 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
« Last Edit: April 23, 2010, 12:06:23 AM by TazDevilLooney » Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #1 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.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
TazDevilLooney
Customer, Basic Support
Jr. Member
*****
Posts: 30



View Profile
« Reply #2 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
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #3 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.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
TazDevilLooney
Customer, Basic Support
Jr. Member
*****
Posts: 30



View Profile
« Reply #4 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!