Koozali.org: home of the SME Server

Obsolete Releases => SME 9.x Contribs => Topic started by: jameswilson on August 07, 2017, 02:17:43 PM

Title: wordpress cant apply update from dashboard
Post by: jameswilson on August 07, 2017, 02:17:43 PM
Followed the wiki for the contrib but when clicking on update i get

Quote
Update WordPress

Downloading update from https://downloads.wordpress.org/release/en_GB/wordpress-4.8.1.zip…

Unpacking the update…

Verifying the unpacked files…

Preparing to install the latest version…

The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.: wp-includes/class-smtp.php, wp-includes/class-simplepie.php, wp-includes/class-phpmailer.php

Installation Failed

I also cant upload a theme.

Ive checked the httpd error logs but cant see anything useful?
Title: Re: wordpress cant apply update from dashboard
Post by: guest22 on August 07, 2017, 03:14:02 PM
If you installed from the contrib then those files are symlinks, hence wordpress can not auto update. You need to manually copy the originating files to the wordpress root directory, set www:www permissions. Then auto update.
Title: Re: wordpress cant apply update from dashboard
Post by: jameswilson on August 07, 2017, 04:21:31 PM
If you installed from the contrib then those files are symlinks, hence wordpress can not auto update. You need to manually copy the originating files to the wordpress root directory, set www:www permissions. Then auto update.
Ah i see.
Would i be better of removing it and just installing in an ibay then?
Title: Re: wordpress cant apply update from dashboard
Post by: guest22 on August 07, 2017, 04:29:30 PM
Ah i see.
Would i be better of removing it and just installing in an ibay then?


See the same wiki page on how to move the current contrib install to e.g. /opt or similar or an ibay. Just make sure you include a copy of those 3 files.
Title: Re: wordpress cant apply update from dashboard
Post by: Jean-Philippe Pialasse on August 14, 2017, 09:07:00 PM
Ah i see.
Would i be better of removing it and just installing in an ibay then?
or simply to update it using the rpm ( I added here the epel repo if you want to be sure to have the very last available version, but usually I move it fast to smecontribs) :

Code: [Select]
yum update wordpress --enablerepo=smecontribs,epel