Discussion:
phpmyadmin doesn't work?
Bart Braem
2004-11-28 15:22:00 UTC
Permalink
My phpmyadmin suddenly stopped working (didn't use it for a while. The
only error I get when viewing the webpage is this 403 Forbidden: "You
don't have permission to access /phpmyadmin/ on this server." The
apache error_log explains:
[Sun Nov 28 16:20:05 2004] [error] [client 127.0.0.1] Symbolic link
not allowed: /var/www/localhost/htdocs/phpmyadmin/index.php

So I check my commonapache2.conf and it does contain:
<Directory "/var/www/localhost/htdocs/phpmyadmin">
Options FollowSymlinks
</Directory>

Why doesn't it work then?

Bart
--
"May the source be with you"

--
gentoo-***@gentoo.org mailing list
Dirk Raeder
2004-11-28 16:11:22 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Bart,

this sounds like /var/www/localhost/htdocs/phpmyadmin being the symlink. Try
adding the "Options FollowSymLinks"-line to your directives for
<Directory /> in your commonapache2.conf.

Dirk
Post by Bart Braem
My phpmyadmin suddenly stopped working (didn't use it for a while. The
only error I get when viewing the webpage is this 403 Forbidden: "You
don't have permission to access /phpmyadmin/ on this server." The
[Sun Nov 28 16:20:05 2004] [error] [client 127.0.0.1] Symbolic link
not allowed: /var/www/localhost/htdocs/phpmyadmin/index.php
<Directory "/var/www/localhost/htdocs/phpmyadmin">
Options FollowSymlinks
</Directory>
Why doesn't it work then?
Bart
--
"May the source be with you"
--
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBqfis2QYJ1wXrVEYRAnLMAJ49sISvB9WPisMCRmSlkDrCc8aBOQCaAsh0
207YmYg9A0P6GEvAJczOTS0=
=Huqt
-----END PGP SIGNATURE-----

--
gentoo-***@gentoo.org mailing list
Bart Braem
2004-11-28 17:17:35 UTC
Permalink
Post by Dirk Raeder
this sounds like /var/www/localhost/htdocs/phpmyadmin being the symlink. Try
adding the "Options FollowSymLinks"-line to your directives for
<Directory /> in your commonapache2.conf.
Thanks for your reply, but it is already there:
<Directory />
Options -All -Multiviews FollowSymLinks
AllowOverride None

<IfModule mod_access.c>
Order deny,allow
Deny from all
</IfModule>
</Directory>

I have checked the directory structure:
# ls -l /var/www/localhost/htdocs/ | grep phpmyadmin
drwxr-xr-x 8 root root 8192 nov 27 13:31 phpmyadmin
so no symlink there, but inside:
# ls -l /var/www/localhost/htdocs/phpmyadmin/ | grep index.php
lrwxr-xr-x 1 root root 55 jul 27 16:14 index.php ->
/usr/share/webapps/phpmyadmin/2.5.7_p1/htdocs/index.php

And that directory 2.5.7_p1 doesn't exist, I only have 2.6.0_p3??
I have tried to unmerge phpmyadmin which went fine but the directory
/var/www/localhost/htdocs/phpmyadmin/ wasn't empty. Then reemerging it
gave:
* You already have something installed in /var/www/localhost/htdocs/phpmyadmin
* Are you trying to install over the top of something I cannot upgrade?
*
* I can upgrade the contents of /var/www/localhost/htdocs/phpmyadmin
*

And then later on:
...
Post by Dirk Raeder
/var/db/webapps/phpmyadmin/2.6.0_p3/.keep
* vhosts USE flag not set - auto-installing using webapp-config
* This is an upgrade
* phpmyadmin-2.6.0_p2 is already installed - upgrading
* Running /usr/sbin/webapp-config -U -h localhost -u root -d
/phpmyadmin phpmyadmin 2.6.0_p3
cp: cannot create regular file
`/var/www/localhost/htdocs/phpmyadmin/css/phpmyadmin.css.php': No such
file or directory

Fatal error: Fatal error - exiting
Fatal error(s) - aborting
* Removing old version phpmyadmin-2.6.0_p2

--- Couldn't find phpmyadmin-2.6.0_p2 to unmerge.
Post by Dirk Raeder
unmerge: No packages selected for removal.
...

Something is horribly wrong but what?
--
"May the source be with you"

--
gentoo-***@gentoo.org mailing list
Dirk Raeder
2004-11-28 17:49:24 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hmm, webapp-config somehow thinks that you have phpmyadmin 2.6.0_p2
installed - this information is kept
in /var/db/webapps/phpmyadmin/2.6.0_p2/installs.
If you don't mind to re-emerge phpmyadmin again, I would suggest you do the
following:
copy your config.inc.php from /var/www/localhost/htdocs/phpmyadmin to
somewhere safe
emerge -C phpmyadmin
rm -rf /var/www/localhost/htdocs/phpmyadmin
rm -rf /var/db/webapps/phpmyadmin
emerge phpmyadmin
edit phpmyadmin's config file to your needs (see the copy you made earlier)

You manually complete deleting phpmyadmin completely from your system and
re-emerge it afterwards.
Post by Dirk Raeder
Post by Dirk Raeder
this sounds like /var/www/localhost/htdocs/phpmyadmin being the symlink.
Try adding the "Options FollowSymLinks"-line to your directives for
<Directory /> in your commonapache2.conf.
<Directory />
Options -All -Multiviews FollowSymLinks
AllowOverride None
<IfModule mod_access.c>
Order deny,allow
Deny from all
</IfModule>
</Directory>
# ls -l /var/www/localhost/htdocs/ | grep phpmyadmin
drwxr-xr-x 8 root root 8192 nov 27 13:31 phpmyadmin
# ls -l /var/www/localhost/htdocs/phpmyadmin/ | grep index.php
lrwxr-xr-x 1 root root 55 jul 27 16:14 index.php ->
/usr/share/webapps/phpmyadmin/2.5.7_p1/htdocs/index.php
And that directory 2.5.7_p1 doesn't exist, I only have 2.6.0_p3??
I have tried to unmerge phpmyadmin which went fine but the directory
/var/www/localhost/htdocs/phpmyadmin/ wasn't empty. Then reemerging it
* You already have something installed
in /var/www/localhost/htdocs/phpmyadmin
* Are you trying to install over the top of something I cannot upgrade?
*
* I can upgrade the contents of /var/www/localhost/htdocs/phpmyadmin
*
...
Post by Dirk Raeder
/var/db/webapps/phpmyadmin/2.6.0_p3/.keep
* vhosts USE flag not set - auto-installing using webapp-config
* This is an upgrade
* phpmyadmin-2.6.0_p2 is already installed - upgrading
* Running /usr/sbin/webapp-config -U -h localhost -u root -d
/phpmyadmin phpmyadmin 2.6.0_p3
cp: cannot create regular file
`/var/www/localhost/htdocs/phpmyadmin/css/phpmyadmin.css.php': No such
file or directory
Fatal error: Fatal error - exiting
Fatal error(s) - aborting
* Removing old version phpmyadmin-2.6.0_p2
--- Couldn't find phpmyadmin-2.6.0_p2 to unmerge.
Post by Dirk Raeder
unmerge: No packages selected for removal.
...
Something is horribly wrong but what?
--
"May the source be with you"
--
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBqg+m2QYJ1wXrVEYRAvLIAJ908hJkOEW+XSmlnDs9NiAqPSACbwCfdsuf
W2YKwTP0NctXNdu2iFiMnRk=
=HtOS
-----END PGP SIGNATURE-----

--
gentoo-***@gentoo.org mailing list
Bart Braem
2004-11-30 17:20:23 UTC
Permalink
Post by Dirk Raeder
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hmm, webapp-config somehow thinks that you have phpmyadmin 2.6.0_p2
installed - this information is kept
in /var/db/webapps/phpmyadmin/2.6.0_p2/installs.
If you don't mind to re-emerge phpmyadmin again, I would suggest you do the
copy your config.inc.php from /var/www/localhost/htdocs/phpmyadmin to
somewhere safe
emerge -C phpmyadmin
rm -rf /var/www/localhost/htdocs/phpmyadmin
rm -rf /var/db/webapps/phpmyadmin
emerge phpmyadmin
edit phpmyadmin's config file to your needs (see the copy you made earlier)
You manually complete deleting phpmyadmin completely from your system and
re-emerge it afterwards.
That did the job, thanks!
--
"May the source be with you"

--
gentoo-***@gentoo.org mailing list
Dirk Raeder
2004-11-30 18:12:40 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

No problem, had similar issues with other webapps.
Post by Bart Braem
Post by Dirk Raeder
copy your config.inc.php from /var/www/localhost/htdocs/phpmyadmin to
somewhere safe
emerge -C phpmyadmin
rm -rf /var/www/localhost/htdocs/phpmyadmin
rm -rf /var/db/webapps/phpmyadmin
emerge phpmyadmin
edit phpmyadmin's config file to your needs (see the copy you made earlier)
That did the job, thanks!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBrLga2QYJ1wXrVEYRAmFRAJ41mC4D5vBl03BkafhSFUU3vrD7agCfe//T
tSkacYLAbHVXBLC/XqdeDCc=
=FNpg
-----END PGP SIGNATURE-----

--
gentoo-***@gentoo.org mailing list

Loading...