Category Archives: Web

Linux : APC usage and hit ratio information page

APC (Alternative PHP Cache) come with a nice script (apc.php) that will sort and show you the memory usage and hit ratio of pages cached into APC memory. Do these easy steps to set this up on your Web server. Copy the script from APC folder into a vHost on your Web server (this example… Read More »

Linux : PHP Warning: Unable to allocate memory for pool

Found this error in your Web site Apache error logs? PHP Warning:  require_once(): Unable to allocate memory for pool. This is actually caused by APC (Alternative PHP Cache). The allocated memory limit for APC has been reached and no additional PHP script can be cached anymore. The symptoms on your Web site for such error… Read More »

Web : RoundCube failed to load magic database at ‘/usr/share/misc/magic’

Getting this error message with RoundCube Webmail in your Apache logs? [Sun Jan 12 05:53:51 2014] [error] [client 0.0.0.0] PHP Warning:  finfo_open(): Failed to load magic database at ‘/usr/share/misc/magic’. in /path/to/roundcube/program/lib/Roundcube/rcube_mime.php on line 727, referer: https://roundcube.domain.tld/?_task=mail&_action=preview&_uid=122332&_mbox=INBOX&_framed=1&_caps=pdf%3D1%2Cflash%3D1%2Ctif%3D0 Make sure the path to “libmagic” is correct. Edit your “config/main.inc.php” file. You might (by default) have the following… Read More »

Category: Web

WordPress : Really Simple CAPTCHA show no image after plugin update

If you are using WordPress engine and the Really Simple CAPTCHA plugin for your forms, you may encounter a blank image containing the word “captcha” instead of the automatically generated image after updating the plugin. Here is the procedure to resolve this issue : 1. Login as administrator 2. On the left side menu, click… Read More »

Category: Web

Linux : How to add JSON support to CentOS 5 PHP 5.1.6

JSON support come natively with PHP 5.2 and later. If you are running CentOS Linux 5, this is PHP version 5.1.6 that is included by default. Fortunately, since version 5.6, CentOS packaged version 5.3.3 of PHP that can be installed through YUM (not included in the ISO set). If you still run applications that can’t… Read More »

RoundCube : Service currently unavailable message after transfer

Get this error trying to access RoundCube Webmail after transferring to another server : SERVICE CURRENTLY NOT AVAILABLE! Error No. [500] This indicate in most case something went wrong with the MySQL database transfer. Either you forgot to transfer the database on the new server or something definitely went wrong importing it. Start over the… Read More »

Web : zend_mm_heap corrupted

You may notice this error in the Apache logs : zend_mm_heap corrupted Try to enable or increase this parameter either in your Apache config, htaccess or php.ini file :

Web : Prevent image hot linking to your site

This article is about stopping theses sites who hot link your images, steal them and your bandwidth! I assume you are running Apache as Web server and have some basic knowledge of httpd.conf, htaccess and rewrite rules. You have two choice, either put the rules directly inside your httpd.conf vhost or inside an Apache configuration… Read More »

Linux : How to generate SSL certificate key pair

Here are the few steps to generate the private key, certificate signed request, self-signed certificate and how to get rid of the passphrase request when starting you’re application . Okay, let’s start. Go to the directory you want to store you’re certificate stuff. This example will assume you’re common name (aka : host name) will… Read More »