Drupal

mihalis's picture

Uncaught Error: Call to undefined function cache_get() in

If you get:

# drush up
PHP Fatal error: Uncaught Error: Call to undefined function cache_get() in ...
...

The solution might be as simple as executing the next command:
# sudo ln -sfn /usr/bin/php5 /etc/alternatives/php

Drupal 7

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: 

Pages

Subscribe to RSS - Drupal