Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Replace repo wordpress with latest version
-
- Posts: 6
- Joined: 2018-07-18 15:17
Replace repo wordpress with latest version
So I've dug myself a bit of a hole on this one.
Two Wordpress specific plugins were requested by my users and yet we had no Wordpress server running. Standing up a new VM container was easy enough and after installing Stretch and following the available guides Wordpress 4.7.5 was installed from the repos and verified as running. After following the necessary guides the requested plugins were installed and AD integration was completed. Lastly available on-site Wordpress, plugins, and themes updates were done bringing the base version to 4.7.11.
Now I'm told that I have to update the Wordpress installation to at least 4.8, with the latest version being preferred.
Knowing that I cannot do that via the repos I would like to ask the community if there is any way to migrate the site from the repository version, 4.7.x, to the latest downloadable version from wordpress.org, 4.9.7 as of this post. Please note that the plugins used are licensed so I'm hoping that a move will be more forgiving than a reinstall, also the database is on another server.
Already having thought thru the issue I think it will go something like this. If you see any issues with this please let me know.
Download the latest version and extract it into /var/www/html.
Copy the contents of /var/lib/wordpress/wp-content into /var/www/html/wp-content.
Edit the /var/www/html/wp-config.php file to include the database settings from /etc/wordpress/config-default.php. Add the hashes and salts as needed.
Move the single blog section from the /etc/wordpress/htaccess file to the /etc/apache2/sites-enabled/000-default.conf file. Remove the comment characters.
Login and take care of any issues.
Remove the site file from /etc/apache2/sites-enabled/ for the repo installed version. Or just uninstall the repo version.
Two Wordpress specific plugins were requested by my users and yet we had no Wordpress server running. Standing up a new VM container was easy enough and after installing Stretch and following the available guides Wordpress 4.7.5 was installed from the repos and verified as running. After following the necessary guides the requested plugins were installed and AD integration was completed. Lastly available on-site Wordpress, plugins, and themes updates were done bringing the base version to 4.7.11.
Now I'm told that I have to update the Wordpress installation to at least 4.8, with the latest version being preferred.
Knowing that I cannot do that via the repos I would like to ask the community if there is any way to migrate the site from the repository version, 4.7.x, to the latest downloadable version from wordpress.org, 4.9.7 as of this post. Please note that the plugins used are licensed so I'm hoping that a move will be more forgiving than a reinstall, also the database is on another server.
Already having thought thru the issue I think it will go something like this. If you see any issues with this please let me know.
Download the latest version and extract it into /var/www/html.
Copy the contents of /var/lib/wordpress/wp-content into /var/www/html/wp-content.
Edit the /var/www/html/wp-config.php file to include the database settings from /etc/wordpress/config-default.php. Add the hashes and salts as needed.
Move the single blog section from the /etc/wordpress/htaccess file to the /etc/apache2/sites-enabled/000-default.conf file. Remove the comment characters.
Login and take care of any issues.
Remove the site file from /etc/apache2/sites-enabled/ for the repo installed version. Or just uninstall the repo version.
Re: Replace repo wordpress with latest version
You'll also need the contents of wp-admin and wp-includes, as well as all the standalone files in the wordpress root EXCEPT wp-config.php. Edit wp-config.php with the same db info and salt.Copy the contents of /var/lib/wordpress/wp-content into /var/www/html/wp-content.
-
- Posts: 6
- Joined: 2018-07-18 15:17
Re: Replace repo wordpress with latest version
Wouldn't copying those files basically copy the older version over the new one?TonyT wrote:You'll also need the contents of wp-admin and wp-includes, as well as all the standalone files in the wordpress root
Re: Replace repo wordpress with latest version
I reckon you might be better off backporting the version currently available in sid and testing. This:
If you're lucky and stevepusser's around, maybe he's already done that.
Code: Select all
$ rmadison wordpress |grep testing
wordpress | 4.9.7+dfsg1-1 | testing | source, all
DebianStable
Code: Select all
$ vrms
No non-free or contrib packages installed on debian! rms would be proud.
-
- Posts: 6
- Joined: 2018-07-18 15:17
Re: Replace repo wordpress with latest version
That did not occur to me. The I can see a few downsides, besides the fact that it might not compile, such that it will still be stuck on Debian's release schedule which could make getting the latest security patches a bigger hassle.kedaha wrote:I reckon you might be better off backporting the version currently available in sid and testing.
However I see no harm in trying to at least build the package, even if I don't use it.
Some reading and working later I have what looks like a proper package, at the very least there were no errors in the final step. I'm still going to hold off on it as I would almost rather get on the official Wordpress release cycle instead. Any other ideas on that?
At least I have a good backup plan now if I don't get anymore help with my original plan.
Re: Replace repo wordpress with latest version
Told by whom? This is not a frivolous question. Is this your boss at work or just some unknown blogger? My point is to ask whether you are going to a lot of work because of somebody's whim.chris.w.noaa wrote:Now I'm told that I have to update the Wordpress installation to at least 4.8, with the latest version being preferred.
-
- Posts: 1454
- Joined: 2015-08-30 20:14
Re: Replace repo wordpress with latest version
Security patches are backported to the version in repo. See the latest wordpress DSA.
-
- Posts: 6
- Joined: 2018-07-18 15:17
Re: Replace repo wordpress with latest version
One of the new plugins that is required for the site needs to have 4.8 or later to work properly and for the Service Agreement to be valid. Now it did install with the current WP version but it is having some issues that an upgrade will most likely fix.Bulkley wrote:Told by whom?
Of this I had no doubt but if I build the package from the testing repo for my own purposes I will need to check for updates and rebuild it when necessary. Not that I'm unwilling to do the work but it is just another thing to add to my already heavy update schedule.Wheelerof4te wrote:Security patches are backported to the version in repo.
I am hoping that someone sees this that is up for, and has the time and available system to, backporting the testing version to Stretch. That would be the easiest for me but I may just install the package I built just to get the users off my back.
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 71 times
Re: Replace repo wordpress with latest version
Well, I did rebuild the upstream version for the MX 17 repo on a vanilla Stretch base in pbuilder, so it should be compatible:
http://mxrepo.com/mx/testrepo/pool/test/w/wordpress/
There's also a way to backport build and host the packages in a repo yourself on the openSUSE Build Service, if you want to try that. There's a guide in the HOWTO section here by yrs. truly, and Head On A Stick here also knows how to do it.
http://mxrepo.com/mx/testrepo/pool/test/w/wordpress/
There's also a way to backport build and host the packages in a repo yourself on the openSUSE Build Service, if you want to try that. There's a guide in the HOWTO section here by yrs. truly, and Head On A Stick here also knows how to do it.
MX Linux packager and developer
Re: Replace repo wordpress with latest version
there's no compiling wordpress - it's just a (huge) pile of PHP scripts.
you should go the backport version first, if possible - added benefit: it would also upgrade dependencies.
if that doesn't work, it is fairly standard practice to "install" CMSs straight from upstream, i.e. "unzip the archive" etc. - follow their installation instructions.
CMSs usually strive to be conservative with system dependencies, in order to be easily installable on a wide variety of systems. IMO, it should Just Work (tm) on debian stable.
you should go the backport version first, if possible - added benefit: it would also upgrade dependencies.
if that doesn't work, it is fairly standard practice to "install" CMSs straight from upstream, i.e. "unzip the archive" etc. - follow their installation instructions.
CMSs usually strive to be conservative with system dependencies, in order to be easily installable on a wide variety of systems. IMO, it should Just Work (tm) on debian stable.