vhost权限被拒绝上传文件

时间:2016-11-17 12:42:54

标签: php apache

我创建了一个虚拟主机

<VirtualHost *:80>
        ServerName www.carrosibague.gov.co
        ServerAlias carrosibague.gov.co
        DocumentRoot /var/www/portal/public_html

<Directory "/var/www/portal/public_html">
 Options Indexes FollowSymLinks MultiViews
 AllowOverride None
 #Order allow,deny
 #Allow from all
 Require all granted
 php_admin_value open_basedir "/var/www/portal/public_html:.:/php:/tmp"
</Directory>

</VirtualHost>

但尝试上传文件时

警告:

  

move_uploaded_file(../../../ archivos / imagenes /幻灯片/新闻短片/ 20161116-193.jpg):   无法打开流:权限被拒绝   /var/www/portal/public_html/portal/admin/modulos/portal/imagenes/slide_principal.php   在第312行

目录权限为755,所有者为apache:apache

0 个答案:

没有答案