phpMyAdmin“无法访问您为上载工作设置的目录" [英] phpMyAdmin "The directory you set for upload work cannot be reached"
问题描述
我正在上传一个24mb的sql文件,并一直按照说明使用 $ cfg []为phpmyadmin设置上传目录. UploadDir'] .不幸的是,它无法正常工作.
I am uploading a 24mb sql file and have been following the instructions to setup an upload dir for phpmyadmin using $cfg['UploadDir']. Unfortunately it is not working.
我在phpMyAdmin文件夹中创建了一个名为"upload"的文件夹.
I have created a folder inside my phpMyAdmin folder called 'upload'.
在我的config.inc.php中,我输入了以下内容:
In my config.inc.php I have put the following:
$cfg['UploadDir'] = 'upload';
此配置是由PMA创建的向导.
This config was wizard created by PMA.
我也尝试过:
$cfg['UploadDir'] = './upload';
$cfg['UploadDir'] = '/absolute_php_my_admin_address/upload';
我还尝试了所有这些变体,并在末尾添加了'/'.
I've also tried all those variations with a trailing '/' on the end.
我在网络上发现了很多存在确切问题的线程.我的上载文件夹具有与父PMA目录相同的权限和所有权.我也不以安全模式运行.
I've found many threads on the web with the exact problem. My upload folder has the same permissions and ownership as the parent PMA directory. I am also not running in Safe mode.
您遇到了这个问题并解决了吗?在Redhat 5上运行PMA 3.5.2.
Have you run into this issue and solved it? Running PMA 3.5.2 on Redhat 5.
推荐答案
我知道这很旧,但google搜索该问题的地方就在这里.所以这是答案:
I know this is old but the google search for that problem points here. So here is the answer:
Debian和Ubuntu限制对文件夹的访问.您必须为此使用phpmyadmin文件夹.
Debian and Ubuntu limits the access for folders. You must use the phpmyadmin folder for that.
在Ubuntu中,它是"/etc/phpmyadmin/"(不带引号).
In Ubuntu it is "/etc/phpmyadmin/" (without the quotes).
因此配置为:
$cfg['UploadDir'] = '/etc/phpmyadmin/';
这篇关于phpMyAdmin“无法访问您为上载工作设置的目录"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!