Category Archives: Web

Web : How to get Web site server information

Using cURL, you can easily grab some information about the server who’s running a Web site. To get all the possible information, simply use (replace domain.tld with the actual domain name) : curl -s -I domain.tld You can also can just output the server info like this : # curl -s -I microsoft.com|grep Server Server:… Read More »

Web : Customize ownCloud slogan footer text

Here is some indication how to customize the footer text “ownCloud – web services under your control”, title, etc. This can be achieved easily editing the following file under your ownCloud root folder : /lib/private/defaults.php Then, locate the following starting at line number 31 : $this->defaultEntity = “ownCloud”; /* e.g. company name, used for footers and… Read More »

Category: 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 : output_buffering = 4096