Wordpress Cannot be updated in the admin panel

Hello.
Coinciding with the latest system updates on nethserver 7 wordpress does not update the version and asks for a localhost connection in ftp. I did some tests and it seems to be a problem of permissions on php.
Thanks to those who can tell me how to solve the problem.
02

54

Hello @france,

yes, it seems like file permissions are not ok.

  1. I assume you setup wordpress in a virtual host.
    You may check permissions/ownership with ls -l /var/lib/nethserver/vhost/YOURVHOST and set apache as owner with chown -R apache: /var/lib/nethserver/vhost/YOURVHOST

  2. You may try enable FTP and enter the credentials just for the update.

Source:

https://codex.wordpress.org/Upgrading_WordPress#File_Ownership

1 Like

Hi, no I have installed wordpress from the repository.

rpm -qa | grep wordpress
please return

wordpress-4.9.4-1.el7.noarch
nethserver-wordpress-1.1.5-1.ns7.sdl.noarch

ok it is normal, the update is disabled for the core because you installed it by rpm. You must wait that epel release the new version

eventually in /usr/share/wordpress/wp-config.php

you have this option define('AUTOMATIC_UPDATER_DISABLED', true);

you can try to trick, surely you miss the good permission for apache in /usr/share/wordpress/

In fact you should wait :smiley:

2 Likes

Thank you for your immediate reply.
Now I understood why it was not updated. I’m not in a hurry.
:smiley:

1 Like

nethserver is a vibrant community :slight_smile:

1 Like