Using Drupal syslog instead of default db log

Here is the doc:

Basically, just enable syslog module which is already in the core. And disable the database logging module.

Enabled syslog module on Drupal’s module administration screen, went to Administration / Configuration / Development / Logging and errors and set the Syslog facility to LOG_LOCAL3.(Any of them in the dropdown should be ok I think)

Then you need config the syslog config file. It’s different between Linux and Mac. Here is a instruction for OS X Yosemite:

1. Just like above, create the log file with

sudo touch /var/log/drupal.log

2. Instead of adding a line to /etc/syslog.conf, add the following line to /etc/asl.conf:

# Drupal logging
? [= Facility local3] file /var/log/drupal.log

3. Restart logging with

sudo launchctl unload /System/Library/LaunchDaemons/
sudo launchctl load /System/Library/LaunchDaemons/

My problem is above restart syslog service not working. So I did a restart for my Mac and all works.

AWS EC2 + LAMP + Ubuntu + Drupal install

Tutorial from AWS EC2 Docs

Ubuntu install Apache + PHP

Check this tut but we have RDS so not need to install MySQL like this:


Install php mysql:

Restart apache:

Error log:  /var/log/apache2/error.log



Using Git from BitBucket repository

Install git first. Then when I try to clone the Bitbucket repository, it failed and gives error:

To solve this, you need using SSH keys:

To create SSH keys: