-3

I run a WordPress site on AWS EC2 with Litespeed.

When I log in via FTP I cannot delete anything, neither plugin nor theme files. FileZilla shows a rm /path/to/file permission denied error:

FTP rm permission denied screenshot

cabrerahector
  • 3,653
  • 4
  • 16
  • 27
AMANK
  • 1
  • 2
  • Welcome to Stack Overflow! Please move your question to [su] (delete here, re-post there). It's [off-topic here](https://stackoverflow.com/help/on-topic). – Martin Prikryl Apr 07 '21 at 18:13

2 Answers2

-1

These are due to permissions issue, as you are trying to delete the files while loggged in from user that is not the owner of those files.That www-data is server user, ask your server provider to remove those files or change the owner of files.

Majid Ali
  • 109
  • 6
  • Hi, Majid , Can you Please tell me How Can I The Owner of file, I am using filezilla to login into FTP(CLOUD- AWS, Image- Litespeed Wordpress), user as "ubuntu", port 22 – AMANK Apr 07 '21 at 13:38
  • You need to use winscp and login via SFTP and run this command `sudo chown ubuntu filename.php` – Majid Ali Apr 12 '21 at 05:17
  • I already solved it, but Thanks For Your Reply – AMANK Apr 13 '21 at 09:11
-1

For this issue, you need to change the owner of the files. This command will work for you

sudo chown -R www-data:www-data /var/www/html

Run this command from your ssh and try again.

Regards