Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache 如何创建公共html文件夹?_Apache_Httpserver - Fatal编程技术网

Apache 如何创建公共html文件夹?

Apache 如何创建公共html文件夹?,apache,httpserver,Apache,Httpserver,我不小心从web服务器上删除了我的“Public_html”文件夹。通过fileZilla代理访问后,不存在公共html文件夹。如何将文件上载到web服务器以及如何再次创建它?在FileZilla中,右键单击远程窗格并选择创建目录。将其命名为“public_html” 其次,将文件从本地窗格上的本地面板拖到远程窗格,以将文件上载到公用html文件夹。您应该通过ssh访问服务器才能访问console命令。如果您的服务器是linux,请从此处开始: mkdir ~/public_html fs sa

我不小心从web服务器上删除了我的“Public_html”文件夹。通过fileZilla代理访问后,不存在公共html文件夹。如何将文件上载到web服务器以及如何再次创建它?

在FileZilla中,右键单击远程窗格并选择创建目录。将其命名为“public_html”


其次,将文件从本地窗格上的本地面板拖到远程窗格,以将文件上载到公用html文件夹。

您应该通过ssh访问服务器才能访问console命令。如果您的服务器是linux,请从此处开始:

mkdir ~/public_html
fs sa ~/public_html system:anyuser read
或者,如果您的服务器是IIS:

cd /home/[yourUser]/domains/domain
mkdir public_html
chown [yourUser]:[yourUser] public_html
chmod 755 public_html
用您的用户名替换[yourUser]


希望这有帮助。

Erm,使用Filezilla?M创建一个新的公共html目录,它将没有任何读取权限。。它可能被其主机视为根目录。。。