While attempting to upgrade phpmyadmin (as the result of an apparent security upgrade) the emerge process tries to run web-app config, which quickly quits due to an out-of-date config file (since it was upgraded 30 seconds prior). After running etc-update I manually ran: /usr/sbin/webapp-config -U -h localhost -u root -d /phpmyadmin phpmyadmin 2.6.0_p2 This generated the output: cp: cannot create regular file `/var/www/localhost/htdocs/phpmyadmin/css/phpmyadmin.css.php': No such file ordirectory Fatal error: Fatal error - exiting Fatal error(s) - aborting I then ran: /usr/sbin/webapp-config --bug-report -U -h localhost -u root -d /phpmyadmin phpmyadmin 2.6.0_p2 This generated no output at all. The destination location already contains a broken symlink to the prior version of this file: # ls -l /var/www/localhost/htdocs/phpmyadmin/css/phpmyadmin.css.php lrwxrwxrwx 1 root root 68 Jul 29 22:31 /var/www/localhost/htdocs/phpmyadmin/css/phpmyadmin.css.php -> /usr/share/webapps/phpmyadmin/2.5.7_p1/htdocs/css/phpmyadmin.css.php The source file does exist: # ls -l /usr/share/webapps/phpmyadmin/2.6.0_p2/htdocs/css/phpmyadmin.css.php -rw-r--r-- 1 root root 4053 Oct 17 06:24 /usr/share/webapps/phpmyadmin/2.6.0_p2/htdocs/css/phpmyadmin.css.php The symlink is broken since the emerge process "helpfully" deleted the prior virtual installation of phpmyadmin during the upgrade, and it was installed via symlinks. Setting G_LINK_OPTIONS="-f" at the top of the webapp-config script seems to fix the problem. The problem seems to be that ln refuses to overwrite the pre-existing symlink. Marking major since it does block a security patch. Reproducible: Always Steps to Reproduce: emerge info: Gentoo Base System version 1.4.16 Portage 2.0.50-r11 (gcc34-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r1, 2.6.8-gentoo-r2-rf16) ================================================================= System uname: 2.6.8-gentoo-r2-rf16 x86_64 4 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-g -march=k8 -mtune=k8 -O3 -pipe -fomit-frame-pointer -fstack-protector" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /home /opt/zetagrid /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/freenet /var/qmail/control /var/www" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-g -march=k8 -mtune=k8 -O3 -pipe -fomit-frame-pointer -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache gpg nostrip severe userpriv usersandbox" GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://mirrors.tds.net/gentoo http://mirrors.tds.net/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="X aalib acpi alsa amd64 apache2 apm arts avi berkdb bitmap-fonts bonobo canna cdr crypt cups debug divx4linux dvd encode esd ethereal evo f77 fam fbcon flac foomaticdb gd gdbm gif gimpprint glut gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib innodb java jpeg kde kerberos libg++ libwww mad maildir mikmod motif mozilla mpeg multilib mysql ncurses nls nptl ntlm oav oggvorbis opengl oss pam pda pdflib perl php png postgres python qt quicktime readline ruby samba sasl sdl slang speex spell ssl tcltk tcpd tetex theora tiff truetype wmf xml xml2 xmms xprint xv zlib"
same here.
same here I get "Forbidden You don't have permission to access /phpmyadmin/ on this server." when i try to login.
could you guys try a "clean" install of phpmyadmin ?
*** Bug 72231 has been marked as a duplicate of this bug. ***
*** Bug 72157 has been marked as a duplicate of this bug. ***
*** Bug 72158 has been marked as a duplicate of this bug. ***
Martin, I did a clean install and the problem remains the same.
I came across a similar error upgrading to phpmyadmin-2.6.0_p3 today: * vhosts USE flag not set - auto-installing using webapp-config * This is an installation * phpmyadmin-2.6.0_p3 is not installed - using install mode * Running /usr/sbin/webapp-config -I -h localhost -u root -d /phpmyadmin phpmyadmin 2.6.0_p3 Fatal error: 'wheel' is not a valid group name Fatal error(s) - aborting >>> Regenerating /etc/ld.so.cache... wheel is definitely a valid group name, so I don't know why this error is generated
*** Bug 72672 has been marked as a duplicate of this bug. ***
installing 2.6.1_rc1: >>> /usr/share/webapps/phpmyadmin/2.6.1_rc1/postinst-en.txt * 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.1_rc1 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 ... the file is a dead link /var/www/localhost/htdocs/phpmyadmin/css/phpmyadmin.css.php -> /usr/share/webapps/phpmyadmin/2.5.7_p1/htdocs/css/phpmyadmin.css.ph are thou hard linking? /var and /usr are different fs on this box.
A few notes when upgrading phpmyadmin from 2.6.0_p2 to 2.6.1_rc1: 1: * Remove whatever is listed above by hand Seems like a bad idea since I just installed 2.6.1_rc1 there. 2. mysql -u root -p < /usr/share/webapps/phpmyadmin/2.6.0_p3/sqlscripts/mysql/2.6.0_p3_create.sql This reflects the sql of the previous version, it should be: mysql -u root -p < /usr/share/webapps/phpmyadmin/2.6.1_rc1/sqlscripts/mysql/2.6.1_rc1_create.sql 3. Finally, point your browser to http://localhost/phpmyadmin/. I supplied the host with the -h flag so that sould be used instead of localhost. # webapp-config -U -d phpmyadmin -h basil.mine.nu phpmyadmin 2.6.1_rc1 --- cfgpro file config.inc.php ^o^ hiding ./._cfg0001_config.inc.php * One or more files have been config protected * To complete your install, you need to run this command: * * CONFIG_PROTECT="/var/www/basil.mine.nu/htdocs/phpmyadmin" etc-update --- cfgpro file config.inc.php --- !empty dir themes/original/img --- !empty dir themes/original/css --- !empty dir themes/original --- !empty dir themes/darkblue_orange/img --- !empty dir themes/darkblue_orange/css --- !empty dir themes/darkblue_orange --- !empty dir themes --- !empty dir scripts --- !empty dir libraries/transformations --- !empty dir libraries/fpdf/font --- !empty dir libraries/fpdf --- !empty dir libraries/export --- !empty dir libraries/dbi --- !empty dir libraries/dbg --- !empty dir libraries/auth --- !empty dir libraries --- !empty dir lang --- !empty dir css --- !morecontents /var/www/basil.mine.nu/htdocs/phpmyadmin --- !empty dir /var/www/basil.mine.nu/htdocs/phpmyadmin * Remove whatever is listed above by hand To complete installation, you must 1. Update MySQL's grant tables and the pmadb database: mysql -u root -p < /usr/share/webapps/phpmyadmin/2.6.0_p3/sqlscripts/mysql/2.6.0_p3_create.sql 2. Reload MySQL: /etc/init.d/mysql restart If you are upgrading from an earlier version and are using phpMyAdmin's features for master/foreign tables be sure to read http://localhost/phpmyadmin/Documentation.html#col_com You will need to perform the ALTER TABLE step yourself. Finally, point your browser to http://localhost/phpmyadmin/.
1. Symlinks vs. hardlinks - please test with the latest webapp-config and phpmyadmin and report if the problem persists. 2. It appears that webapp-config does show incorrect instructions. I filed #98142, and changed the postinstall instructions accordingly. 3. localhost was hardcoded in the instructions, fixed in CVS. Closing - if the symlink / hardlink problem is not fixed, please file a new bug and assign it to stuart@gentoo.org, cc'ed to web-apps@g.o