Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-27-2009, 05:11 PM
|
#1
|
Member
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 694
Rep:
|
You don't have permission to access /phpmyadmin/ on this server.
I am connected via OpenVPN to the server that has PhpMyAdmin installed. The server is 10.10.0.1 and my client is 10.10.0.2.
When I want to access phpmyadmin, the webpage states :
Code:
You don't have permission to access /phpmyadmin/ on this server.
This is my config :
Code:
bash-3.2# cat /etc/httpd/conf.d/phpmyadmin.conf
<Directory "/usr/share/phpmyadmin">
Order Deny,Allow
Deny from all
Allow from 10.10.0.2
</Directory>
Why don't I have permission ??
Extra info :
Code:
[jonas@jonas ~]$ ifconfig tun0
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.10.0.2 P-t-P:10.10.0.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:1282 errors:0 dropped:0 overruns:0 frame:0
TX packets:1145 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1012756 (989.0 KiB) TX bytes:113557 (110.8 KiB)
Log states :
Code:
[Fri Aug 28 00:11:56 2009] [error] [client 10.10.0.2] Directory index forbidden by Options directive: /usr/share/phpmyadmin/
[Fri Aug 28 00:11:59 2009] [error] [client 10.10.0.2] Directory index forbidden by Options directive: /usr/share/phpmyadmin/
[Fri Aug 28 00:15:04 2009] [error] [client 10.10.0.2] Directory index forbidden by Options directive: /usr/share/phpmyadmin/
Last edited by jonaskellens; 08-27-2009 at 05:17 PM.
|
|
|
08-27-2009, 05:24 PM
|
#2
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Rep: 
|
Apache is not finding an index page (e.g. .html, .php) to serve, so it's trying to display a directory index. But... you've disabled that (which is probably fine because it's not what you're trying to do anyway).
What have you provided for the DirectoryIndex directive in httpd.conf?
|
|
|
08-27-2009, 05:32 PM
|
#3
|
Member
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 694
Original Poster
Rep:
|
Quote:
Originally Posted by anomie
What have you provided for the DirectoryIndex directive in httpd.conf?
|
Code:
DirectoryIndex index.html index.html.var
I left everything default...
I just need httpd for running PhpMyAdmin...
|
|
|
08-27-2009, 05:39 PM
|
#4
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Rep: 
|
If you haven't already, install mod_php.
And what distro is this? Fedora? CentOS?
-------
edit: On some distros, mod_php is included with the php package.
Last edited by anomie; 08-27-2009 at 05:40 PM.
|
|
|
08-27-2009, 05:48 PM
|
#5
|
Member
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 694
Original Poster
Rep:
|
Quote:
Originally Posted by anomie
If you haven't already, install mod_php.
And what distro is this? Fedora? CentOS?
-------
edit: On some distros, mod_php is included with the php package.
|
This is CentOS 5.3.
Re-installing the php-package made it work.
Thanks for the help !
|
|
|
12-19-2009, 02:25 PM
|
#6
|
LQ Newbie
Registered: Nov 2009
Posts: 1
Rep:
|
I had this same issue.
I noticed that when I uncompressed the phpMyAdmin archive and moved it to the target location I was getting the permissions error.
I performed a copy (cp) of the uncompressed folder and it worked!
(I downloaded the english only archive)
(Note: I'm running CentOS 5.4 i386)
Steps...
0- After downloading the tar file to /tmp
1- cd /tmp
2- tar -xzvf phpMyAdmin-3.2.4-english.tar.gz
3- cp -Rf phpMyAdmin-3.2.4-english /usr/share/phpmyadmin
4- echo "alias /phpmyadmin /usr/share/phpmyadmin" > /etc/httpd/conf.d/phpmyadmin.conf
4a- You can add <DirectoryIndex ...> ... </DirectoryIndex> to phpmyadmin.conf, but I'm running locally for the moment and didn't need it. The alias command worked just fine.
5- cp /usr/share/phpmyadmin/config.sample.inc.php /usr/share/phpmyadmin/config.inc.php
6- Make the appropriate changes to: config.inc.php
7- service httpd restart or /etc/init.d/httpd restart
After that, it worked just fine...
|
|
|
All times are GMT -5. The time now is 05:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|