Monday, June 2, 2014

Can't import mysql database on ubuntu Err. phpmyadmin "open_basedir" access to the /tmp directory "ubuntu"

Fix it
1. sudo vim /etc/phpmyadmin/apache.conf
บรรทัด
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/

ให้เพิ่ม /tmp/ ต่อท้าย ดังนี้
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/tmp/

2. sudo chmod -R 777 /tmp/

3. sudo service apach2 restart

Ref.

No comments: