WordPress Manual Upgrade for Experts: Difference between revisions
mNo edit summary |
m →Upgrade |
||
Line 39: | Line 39: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
*Copy the working version of the WordPress website files into the new directory (The below command will not overwrite any of the new files and will also preserve all permissions from the "original / working" WordPress version. The end result is a directory with upgraded WordPress Files and all of the additional or custom stuff from the original site;<syntaxhighlight lang="text"> | *Copy the working version of the WordPress website files into the new directory (The below command will not overwrite any of the new files and will also preserve all permissions from the "original / working" WordPress version. The end result is a directory with upgraded WordPress Files and all of the additional or custom stuff from the original site;<syntaxhighlight lang="text"> | ||
cp -R | cp -R -n -v -a -x /var/www/html/WebSiteDirectory.WorkingVersion/* /var/www/html/WebSiteDirectory | ||
Don't forget the ASTERISK on the end of the Source. | Don't forget the ASTERISK on the end of the Source. | ||
Line 47: | Line 47: | ||
*Also remember a LOT of extensions make use of an .htaccess file (with Apache and other web servers) to modify the behavior of a WordPress site, so make sure that file from the original version of that file is copied into the upgrade directory (its a hidden file, so make sure). | *Also remember a LOT of extensions make use of an .htaccess file (with Apache and other web servers) to modify the behavior of a WordPress site, so make sure that file from the original version of that file is copied into the upgrade directory (its a hidden file, so make sure). | ||
=== Plugins === | ===Plugins=== | ||
My strategy on upgrading plugins is to make a manual copy of their physical directory (see command below), then use the GUI to upgrade the plugin. If everything works, great, if not, go back to the original version<syntaxhighlight lang="text"> | My strategy on upgrading plugins is to make a manual copy of their physical directory (see command below), then use the GUI to upgrade the plugin. If everything works, great, if not, go back to the original version<syntaxhighlight lang="text"> | ||
cp -ax WhatEverExtension WhatEverExtension.BackUp | cp -ax WhatEverExtension WhatEverExtension.BackUp |