Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can not get to phpmyadmin , running Fedora

Status
Not open for further replies.

stfaprc

Programmer
Feb 10, 2005
216
US
cat /etc/httpd/conf.d/phpmyadmin.conf
Code:
#
#  Web application to manage MySQL
#
<Directory "/usr/share/phpmyadmin">
order deny,allow
deny from all
allow from 127.0.0.1,192.168.1.10,192.168.1.51
</Directory>

Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
but when I try from the command line on pc 192.168.1.51 (which is the server host)
lynx 192.168.1.51/phpmyadmin
I get :
Forbidden

You don't have permission to access /phpmyadmin on this server.
_________________________________________________________________


Apache/2.0.54 (Fedora) Server at 192.168.1.51 Port 80
lynx 192.168.1.51 does give me the Apache page.

What am I missing ?
 
I'd be a little confused too if I were apache. First you have "Order deny, allow". This tells apache to parse the deny directive first and set the default state to allow. Then you tell it to nix the allow thing and deny everybody but allow these three addresses. The simpler way would be to set "Order allow, deny". It will set the default state to deny then parse your allow directive. You may also want to check the directory permissions. The directories should be set to 755 and files to 644.
 
like this?
Code:
<Directory "/usr/share/phpmyadmin">
order allow,deny
#not needed?
#deny from all
allow from 127.0.0.1,192.168.1.10,192.168.1.51,24.19.10.21
</Directory>

Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
and the /usr/share/phpmyadmin is:
drwxr-xr-x 10 root root 4096 Oct 18 2007 phpmyadmin
the files in /usr/share/phpmyadmin/
-rw-r--r--
 
That sounds good to me. If you still aren't having any luck, I just noticed your Alias line. Try changing it to this:

Code:
Alias /phpmyadmin/ "/usr/share/phpmyadmin/"

 
I tried changing the alias line to
Alias /phpmyadmin/ "/usr/share/phpmyadmin/"
and to
Alias /phpmyadmin "/usr/share/phpmyadmin/"

restarting the httpd each time.
Still no go.

I tried
lynx
and that gave the same error message as the others,
" You don't have permission to access " ...

i created a simple page called demo.html in the /var/ and there was no problem opening it.

i double checked the pemissions:
ls -l /var/ grep html
drwxr-xr-x 4 root root 4096 Jun 22 17:29 html

ls -l /usr/share | grep php
drwxr-xr-x 10 root root 4096 Oct 18 2007 phpmyadmin

there are .htaccess files anywhere.


so , what the bleep is getting in the way?
 
seems to be working now :)

File: /etc/httpd/conf.d/phpmyadmin.conf
Code:
#
#  Web application to manage MySQL
#

<Directory "/usr/share/phpmyadmin">
order Deny,Allow
#not needed?
#deny from all
Allow from 127.0.0.1,192.168.1.10,192.168.1.51,24.19.10.21,192.168.1.9
</Directory>

Alias /phpmyadmin /usr/share/phpmyadmin/
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin

#added 6/22/08
DirectoryIndex index.php
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top