File FTP服务器没有';不允许我上传.htaccess文件
我使用的是AmazonEC2服务器。设置Ubuntu系统和ProFTPD服务器。然后我创建一个用户来上传文件。它起作用了 但是我不能上传.htaccess文件。它返回以下错误:File FTP服务器没有';不允许我上传.htaccess文件,file,.htaccess,ubuntu,file-upload,File,.htaccess,Ubuntu,File Upload,我使用的是AmazonEC2服务器。设置Ubuntu系统和ProFTPD服务器。然后我创建一个用户来上传文件。它起作用了 但是我不能上传.htaccess文件。它返回以下错误: Response: 257 "/public_html" is the current directory Command: TYPE A Response: 200 Type set to A Command: PORT 192,168,1,2,200,20 Response:
Response: 257 "/public_html" is the current directory
Command: TYPE A
Response: 200 Type set to A
Command: PORT 192,168,1,2,200,20
Response: 200 PORT command successful
Command: STOR .htaccess
Response: 550 .htaccess: Permission denied
Error: Critical error
Status: Disconnected from server
我通过webmin和终端ssh管理事情。我尝试了以下步骤:
DenyFilter***/(在FTP的配置文件中注释了这一行)
像这样添加了全局:
列表选项“-la”
但什么都不管用
有趣的是,我可以将.htaccess文件上载到除“public_html”之外的其他目录。我最近也遇到了同样的问题,最终解决的方法是为了上载而重命名该文件(例如.htaccess new),然后在live server上将其重命名回.htaccess 确保保存原始文件的备份,并确保文件权限与原始文件相匹配(或设置为您可能需要的任何权限)