PhpMyAdmin : 403 forbidden. You don't have permission to access [...] on this server.
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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.
PhpMyAdmin : 403 forbidden. You don't have permission to access [...] on this server.
Hello,
Prior to configuration/hardening of apache2, I could access phpmyadmin, but since then I have done a few modifications in conf.d/security like "uncommenting" the following :
<Directory />
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>
But I tried commenting it out again and it didn't solve the problem.
File does not exist: /usr
or
client denied by server configuration: /usr
Are two different errors I can get (trying different conf) in /var/log/apache2/error.log
Should I do something like create a symlink to /usr/share/phpmyadmin in /var/www ?
Edit : Done but now it complains about symlinks "Symbolic link not allowed or link target not accessible: /var/www/phpmyadmin" but shouldn't it work since I've got : Options FollowSymLinks ?
this is a good example of why i have people install the Apache stack from source for the first 12 or so installs
that way you LEARN how to configure everything
i would re go over the
Apache, MySQL, php,and PhpMyAdmin documentation.
make 100% sure that apache is set up right . Files have the correct permissions , and the httpd set up right
then make sure that mysql is up and running with a NEW non default ( user=user , password=password)
that php is set up and configured and the apache php_mod is running
then that the `myadmin config file is set up correctly.
-- edit ---
for convenience you might also want to install mysql,php,phpmyadmin,and the rest
into /var/www
that way Apache docroot /var/www/http
mysql root is /var/www/mysql
and phpmyadmin is /var/www/phpmyadmin
everything is in one place and there is on digging around for files scattered all over the place .
After a long google session I come to the conclusion that symlinks are not allowed with mod_chroot. I'm going to try to revert this mod_chroot thing now ...
"Symbolic link not allowed or link target not accessible: /var/www/phpmyadmin"
I think that's what I had. As far as I know symlinks are not allowed with mod_chroot so I would advise people to install phpmyadmin and everything needed inside the jail ... or just give up on chrooting apache.
(the phpmyadmin.conf that I posted earlier was wrong too btw ... but now that's good)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.