WordPress Manual Upgrade for Experts: Difference between revisions
m →Upgrade |
m →Upgrade |
||
Line 36: | Line 36: | ||
find /var/www/html/WebSiteDirectory -type f -exec chmod 644 {} \; | find /var/www/html/WebSiteDirectory -type f -exec chmod 644 {} \; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
*Copy the working version of the WordPress website files into the new directory (The | *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 "working" WordPress files. The end result is upgraded WordPress Files and any custom stuff in the same directory);<syntaxhighlight lang="text"> | ||
cp -R -n -v -a -x /var/www/html/WebSiteDirectory.WorkingVersion/* /var/www/html/WebSiteDirectory | cp -R -T -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 43: | Line 43: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
*Make sure the wp-config.php file is in the upgrade directory (there shouldn't be a wp-config.php file in the upgrade folder and it should be copied with the above CP command) | *Make sure the wp-config.php file is in the upgrade directory (there shouldn't be a wp-config.php file in the upgrade folder and it should be copied with the above CP command) | ||
*Also remember a LOT of extensions use the .htaccess file to modify the behavior of WordPress, so | *Also remember a LOT of extensions use the .htaccess file to modify the behavior of WordPress, so make sure that file from the original version of that file into the upgrade directory (its a hidden file, so make sure). | ||