Difference between revisions of "Drupal"

From DUNE
Jump to navigation Jump to search
Line 41: Line 41:
 
mv new_web/ web
 
mv new_web/ web
 
cp -r old_web/themes/business_responsive_theme/ web/themes/
 
cp -r old_web/themes/business_responsive_theme/ web/themes/
</pre>
 
 
 
</pre>
 
</pre>

Revision as of 00:37, 14 May 2019

About this page

This page is essentially a scratch space to collect misc notes about Drupal configuration and management.

Examples of the filesystem layout

Files, Libraries, Themes

./public_html/web/sites/default/files/
./public_html/web/sites/all/libraries/
./public_html/web/sites/all/themes/

DB

Server and Credentials

./public_html/web/sites/default/settings.php

Maintenance

Example of a MySQL dump:

mysqldump eicugorg_eic_drupal -u myUser -p > mydump.sql

Drupal Version Upgrade

Just an illustration how to keep custom themes and site settings when putting in place a new version of Drupal:

mv  includes/ ~/my_includes
cp -r ~/drupal-7.65 new_web
cd new_web/
rm -fr sites
cp -r ../web/sites .
cp ../web/robots.txt .
diff ../web/robots.txt robots.txt
cp ../web/.htaccess .
diff ../web/.htaccess .htaccess
cd ..
mv web old_web
mv new_web/ web
cp -r old_web/themes/business_responsive_theme/ web/themes/