本人使用ubuntu的電腦,上面管理mysql 的利器就是phpMyAdmin了
使用phpMyAdmin的時候我用了nginx來作爲php網頁的服務器.
然後打開網頁的時候碰到一個問題:
我在config.ini.php裏配置了它所需要的temp目錄, 但是網頁上提示說那個 temp目錄不能訪問
phpMyAdmin is not able to cache templates and will be slow because of this.
查了萬能的google , 說是需要配置temp目錄的訪問權限.
於是:
- 因爲我這裏是nginx進程服務這個網頁的, 首先要知道我這裏nginx的賬戶和組.
- 進入/var/log/nginx
- 查看到我這裏nginx 的用戶和組是www-data 和 adm
- 於是 chown -R www-data:adm $_the_temp_dir
- 再次打開phpMyadmin網頁, 問題消失