Drupal

mihalis's picture

From HTTP to HTTPS

I have converted this web site from HTTP to HTTPS, which is a pretty simple process once you know how to create the necessary certificates and configure Apache.
I used https://letsencrypt.org/ for getting my free certificates.

mihalis's picture

Run Drupal sites with Drush

I wrote "Run Drupal sites with Drush" for Linux User and Developer magazine issue 142!

Drush is a command line shell and scripting interface for Drupal.

Image: 
mihalis's picture

Using R to process Apache Log Files

R can help you check for security threats.

As my site is a Drupal site, I want to monitor the GET /?q=node/add HTTP/1.1, GET /?q=user/register HTTP/1.1, GET /?q=node/add HTTP/1.0 and GET /?q=user/register HTTP/1.0 requests that indicate hack attempts.

After inserting the log file into R using read.table(), I used the following command to select the entries that match my criteria.

HACK = subset(LOGS, V6 %in% c("GET /?q=node/add HTTP/1.1",
"GET /?q=user/register HTTP/1.1",
"GET /?q=node/add HTTP/1.0",
"GET /?q=user/register HTTP/1.0" ))

Last, I created a Bar Plot to visualize my data.

Image: 
mihalis's picture

Programming a Drupal Module.

I wrote "Programming a Drupal Module" for MacTech magazine (December 2013 issue).

One way to extend Drupal’s default functionality is by using modules. If a module that fit your needs does not exist, then you can develop your own. Alternatively, you can make changes to existing modules.
This article teaches you the basics of Drupal Module Development.

Image: 
mihalis's picture

An unrecoverable error occurred.

The problem

I could not create new content on Drupal 7. The error message was: ""An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (2 MB) that this server supports."

The solution

The mod_rewrite Apache 2 module was not enabled.
It can be enabled using the following command (Debian 7):
a2enmod rewrite

You then have to restart Apache:
service apache2 restart

You many also need to change file /etc/apache2/sites-enabled/000-default.
Change AllowOverride None to AllowOverride All (2 times) and you are done!
(do not forget to restart Apache)

Pages

Subscribe to RSS - Drupal