Error when creating a file: 553 could not create file

更新时间:
复制 MD 格式

After using FileZilla to upload website files to an Alibaba Cloud Web Hosting instance, you might receive the 553 could not create file error when you create a file in a site directory. This issue typically occurs if you have too many website files or lack the required permissions for the site directory. This topic describes the possible causes and provides solutions.

Symptom

After connecting to an Alibaba Cloud Web Hosting instance with FileZilla, you cannot create a file in a site directory and receive the error 553 could not create file.

Possible causes

  • The number of files on your website has exceeded the limit.

  • You do not have the required permissions to create files in the site directory.

Solution

  1. Log in to the Alibaba Cloud Web Hosting console.

  2. On the Site Information page, in the Website Information section, check if your web space usage or file and folder count has reached the limit.

    • If a limit has been reached, delete unnecessary files or upgrade your Alibaba Cloud Web Hosting instance. Then, try to create the file again. For more information about how to upgrade the instance, see Upgrade an Alibaba Cloud Web Hosting instance.

    • If neither limit has been reached, proceed to the next step.

  3. Connect to your Alibaba Cloud Web Hosting instance with FileZilla.

    For detailed instructions, see Manage website files by using FileZilla.

  4. Review the functions and permissions of directories on Alibaba Cloud Web Hosting instances, which vary by operating system.

    • The following table describes the common directories on an Alibaba Cloud Web Hosting instance that runs the Linux operating system.

      Directory nameDescriptionPermission
      /The FTP root directory.read-only permission
      /awstatsThe directory where log analysis and statistics reports are stored. This directory is currently empty.read-only permission
      /ftplogsThe directory where FTP access logs are stored.read-only permission
      /htdocsThe website root directory. You must upload your website application or web files to this directory.read-write permission
      /myfolderContent in this directory is not accessible to web users. You can temporarily store private content in this directory, such as a site backup or database backup.read-write permission
      /php_upload_tmpThe directory for PHP upload cache files, such as session data.read-write permission
      /wwwlogsThe directory where www access logs are stored.read-only permission
    • The following table describes the common directories on an Alibaba Cloud Web Hosting instance that runs the Windows operating system.

      Directory nameDescriptionPermission
      /The website root directory. You must upload your website files to this directory.read-write permission
      /HttpErrorsYou can upload your 404 error page to this directory.read-write permission
  5. Create the file again in a site directory that has read-write permissions.

    • On an Alibaba Cloud Web Hosting instance that runs Linux, you can create files in the /htdocs, /myfolder, and /php_upload_tmp directories.

    • On an Alibaba Cloud Web Hosting instance that runs Windows, you can create files in the / and /HttpErrors directories.

    Note

    If the issue persists, submit a ticket.