首页 > 解决方案 > directadmin 使用 php 将文件上传到另一个用户目录

问题描述

我正在用php上传文件。源目录是

/home/asghar/domain/asghar.com/public_html/code.php

上传目录为

 /home/akbar/domain/akbar.com/public_html/assets/data

但我的代码中出现此错误:

Unable to create the "/home/akbar/domain/akbar.com/public_html/assets/data" directory.

我试过这个解决方案:

chmod 777 /home/akbar/domain/akbar.com/public_html/assets/data

chown asghar:asghar   /home/akbar/domain/akbar.com/public_html/assets/data

标签: phplaraveldirectadmin

解决方案


推荐阅读