Knowledge Base

Files Cannot Be Deleted from Hosting. What Should I Do?

· Updated November 9, 2026

When you build a website with engines such as WordPress, Drupal or Joomla, the following problems may occur:

  • You cannot upload files to a specific folder on the hosting.
  • You cannot delete a file located in a specific folder on the hosting.

The problem is this: when you upload a file to a folder on the server, your FTP login is used, and it becomes the owner of the uploaded file. But when actions are performed on the server itself (for example, a script creates files, or a module is installed through Joomla), the owner of those files is the Apache web server.

There are two ways to solve this problem:

    • Run a PHP script: it will run as the web server and will be able to delete the files without any problems. However, this method is fairly complicated and requires some knowledge.
    • The second option, using the Plesk control panel, is simpler. Go to Websites & Domains, find your domain and select the right PHP mode (so that it runs as FastCGI). Click OK to finish.

To keep everything working properly, follow these recommendations before installing modules in your CMS. Or use the services of UkrHost, one of the best hosting and domain providers in Ukraine.

Tags: seo ftp hosting