Difference between revisions of "Drupal"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 25: | Line 25: | ||
=Drupal Version Upgrade= | =Drupal Version Upgrade= | ||
− | Just an illustration how to keep custom themes and site settings when | + | Just an illustration of how to keep custom themes and site settings when |
putting in place a new version of Drupal: | putting in place a new version of Drupal: | ||
<pre> | <pre> | ||
Line 43: | Line 43: | ||
</pre> | </pre> | ||
− | + | One should carefully "diff" the includes and modules to see if all are in place. | |
+ | In the example above, it is assumed that these checks have been done. |
Latest revision as of 00:38, 14 May 2019
Contents
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 of 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/
One should carefully "diff" the includes and modules to see if all are in place. In the example above, it is assumed that these checks have been done.