All notes


Mail support

stackExchange: how to send email in Drupal.

Install the following modules

File upload

In your PHP php.ini file (you can create a new php.ini under /usr/local/etc/php in your PHP docker image, see php):

file_uploads = On
upload_max_filesize = 50M
max_input_time = 300
memory_limit = 50M
max_execution_time = 180
post_max_size = 50M

file_uploads = On must be set to "On"
upload_max_filesize = 24M can't be larger than post_max_size
max_input_time = 300 small values may cause timeouts for large file uploads
memory_limit = 64M small values may cause out of memory errors for large file uploads
max_execution_time = 180 small values may cause timeouts for large file uploads
post_max_size = 24M limits the size of input submitted to the website (including attached files)

drupal: file.


Content folders

Best way to add parent and child pages is to enable the "book" module in Drupal.core.

Change RootPath / BaseUrl

A couple of things to try:
* In the .htaccess file you may need to set RewriteBase
* And in settings.php you may need to set $base_url and $cookie_domain

Each time I move/copy a Drupal installation from one URL to another I must remember to update the following:

$db_url = 'mysql://username:[email protected]/databasename';
$db_url = 'mysqli://username:[email protected]/databasename';
$base_url = ''; // NO trailing slash!


# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are not working properly.
# RewriteBase /drupal

if you want to change the drupal from sub directory to the root directory
change rewrite rule to

RewriteBase /