I run the site on the open-source Drupal CMS and recently updated to the latest 4.7.7 version. The site has quite a few customizations and is not a standard install.
The html document root is a symbolic link to the actual drupal gunzipped folder and all other relevant custom modules are also just symbolically linked from the modules folder to keep the updates as simple as possible.
I also use the "bluemarine" theme which has been customized and named as "linuxweblog", so updates don't necessarily override my custom theme.
Pre-Update Preparation:
-
Backup database and site files.
Login to website as the administrator.
Disable the "Tag Cloud" block as it has some custom php.
Update:
-
`cd /var/www/`
Download from http://drupal.org/project/releases
Untar the gzip package.
`rm html` -- remove the symbolic link.
`ln -s drupal-* html` -- link to the newly extracted folder.
`cd html`
Edit the "sites/default/settings.php" file
-
Add the correct database, username and password to $db_url
Edit the $base_url without trailing slash to http://www.linuxweblog.com
Post-Update Customizations
-
`cp -a themes/bluemarine themes/linuxweblog
Copy or merge node.tpl.php, page.tpl.php and style.css to the linuxweblog theme folder.
Merge .htaccess file and bring over the old customizations.
`cp -a ../drupal-old-*/{robots.txt,favicon.ico} .`
`ln -s ../site_files/ site_files` -- create the symbolic links to where the cache and other static files are placed.
`ln -s site_files/cache/ cache` -- create the link to the cache.
`ln -s ../../drupal_contribs modules/custom_mods` -- create the link to the custom modules.
Enable the "Tag Cloud" block.
Re-apply the google search hack to the "search.module" .
Security:
-
`cd /var/www/`
Chown -R user:group drupal-*
Set the directory permissions: `find . -type d -exec chmod 755 {} \;`
Set the file permissions: `find . -type f -exec chmod 644 {} \;`
`chmod 640 sites/default/settings.php`
`chgrp apache sites/default/settings.php`