[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/
看起來像是路徑沒設好
但是目錄下確實是有東西
1
2
3
4
5
6
7
8
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 122013 gettext.inc -> ../../../php/php-gettext/gettext.inc
lrwxrwxrwx 1 root root 36 Dec 122013 gettext.php -> ../../../php/php-gettext/gettext.php
lrwxrwxrwx 1 root root 36 Dec 122013 streams.php -> ../../../php/php-gettext/streams.php
不過東西是link過來的
神奇的是解法竟然是 copy 過來,竟然不吃 link
1
2
3
cd /usr/share/phpmyadmin/libraries/php-gettext
sudo rm -f ./*
sudo ln /usr/share/php/php-gettext/* .