Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any plugin installation failed - could not copy file error

everytime I install a new plugin for wordpress it says Could not copy file and the files address. Does anybody know why this is the case.

like image 589
Jonathan Matchett Avatar asked Oct 23 '25 16:10

Jonathan Matchett


2 Answers

I was facing the same issue but in my case I was updating using FTP.

I fixed it by setting the hostname to "localhost" instead of using the IP.

This is because there was a loop happening and making the file upload fail and that's logged in the /var/log/vsftpd.log

like image 161
Abdullah Adeeb Avatar answered Oct 26 '25 07:10

Abdullah Adeeb


Check file premissions and (important!) file owner or group. If you use apache server group must be www-data (default). This can be a solution

like image 40
Maxim Sarandi Avatar answered Oct 26 '25 07:10

Maxim Sarandi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!