Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't open phpmyadmin, require_once(./libraries/common.inc.php): failed to open stream: No such file or directory

When I do php /usr/share/phpmyadmin/index.php, I get this.

PHP Warning: require_once(./libraries/common.inc.php): failed to open stream: No such file or directory in /usr/share/phpmyadmin/index.php on line 33 PHP Fatal error: require_once(): Failed opening required './libraries/common.inc.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/phpmyadmin/index.php on line 33

The common.inc.php file seems to be there.

I didn't make any changes and hadn't used phpmyadmin in a while.


Update: Here is a search:

# find / -name "common.inc.php" -print
/usr/share/phpmyadmin/setup/lib/common.inc.php
/usr/share/phpmyadmin/libraries/common.inc.php

index.php is at /usr/share/phpmyadmin/index.php, so this looks right to me.

like image 669
Noah Avatar asked Jan 17 '26 01:01

Noah


1 Answers

cd /usr/share/php mv php-gettext php-gettext.orig && ln -s php-php-gettext php-gettext

works for me. on Debian 4.3.3

like image 195
rüff0 Avatar answered Jan 19 '26 17:01

rüff0



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!