今天把Ubuntu升級至14.04時

發現phpmyadmin沒有起來

查一下log發現:

[Wed Oct 15 16:13:05.971530 2014] [:error] [pid 2129] [client 192.168.224.179:64325] PHP Warning:  is_readable(): open_basedir restriction in effect. File(js/codemirror/lib/codemirror.js) is not within the allowed path(s): (/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/) in /usr/share/phpmyadmin/js/get_scripts.js.php on line 31, referer: http://myhost/pma/

 

看起來像是路徑沒設好

但是目錄下確實是有東西

ls -al /usr/share/phpmyadmin/libraries/php-gettext

total 24
drwxr-xr-x  2 root root  4096 Oct 15 16:08 ./
drwxr-xr-x 17 root root 20480 Oct 15 16:25 ../
lrwxrwxrwx  1 root root    36 Dec 12  2013 gettext.inc -> ../../../php/php-gettext/gettext.inc
lrwxrwxrwx  1 root root    36 Dec 12  2013 gettext.php -> ../../../php/php-gettext/gettext.php
lrwxrwxrwx  1 root root    36 Dec 12  2013 streams.php -> ../../../php/php-gettext/streams.php

不過東西是link過來的

神奇的是解法竟然是copy過來,竟然不吃link

cd /usr/share/phpmyadmin/libraries/php-gettext
sudo rm -f ./*
sudo ln /usr/share/php/php-gettext/* .

 

不知道中間有什麼誤會

只能先這樣了~

留言