Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress asks for FTP credentials to upgrade

Tags:

php

wordpress

ftp

I have two Wordpress blogs. One is on a shared server and the other one is on a dedicated server. When I update Wordpress on the dedicated server it asks me to enter FTP details. When I Update Wordpress on my shared server it doesn't ask me to enter FTP details. Does anyone know the reason for this?

Can I trust Wordpress in this kind of situations?

like image 655
Chathuraka Avatar asked Mar 20 '23 19:03

Chathuraka


1 Answers

It asks ftp credentials because wordpress probably does not have write permission on your wordpress root folder.So, it tries to put wp upgrade via FTP. In order to fix that go to your root folder of wordpress site and run;

sudo chown -R www-data:www-data wordpress
like image 61
Hüseyin BABAL Avatar answered Mar 28 '23 16:03

Hüseyin BABAL