Posts for February, 2006

Hard Disk Problem

February 16, 2006 Posted in Apache

In the last two months, my server got the following errors occasionally (very infrequent):

> ad0: FAILURE – READ_DMA status=51<READY,DSC,ERROR> error=40<UNCORRECTABLE>
LBA=154033791
> ad0: FAILURE – READ_DMA status=51<READY,DSC,ERROR> error=40<UNCORRECTABLE>
LBA=154033791
> ad0: FAILURE – READ_DMA status=51<READY,DSC,ERROR> error=40<UNCORRECTABLE>
LBA=154033791
> ad0: FAILURE – READ_DMA status=51<READY,DSC,ERROR> error=40<UNCORRECTABLE>
LBA=150991359
Read More

Add GD Support for PHP

February 15, 2006 Posted in PHP

To enable image (JPEG/PNG) manipulation for PHP, install gd extension from ports:

# cd /usr/ports/graphics/php4-gd
# make install clean
# apachectl graceful
Read More

MySQL Start Script

February 15, 2006 Posted in MySQL

I installed mysql-server-4.0.21 when I got the server more than one year ago. Although MySQL 4.0 (4.0.26 as for now) only released small patches thereafter, the start script for FreeBSD has made significant changes: Read More

PHP Upgrade

February 15, 2006 Posted in PHP

Upgrading PHP may affect installed PHP modules. For example, a PHP script reported the following error after I upgraded PHP:

PHP Warning: Unknown(): Unable to load dynamic library ‘/usr/local/lib/php/20020429/xml.so’ – Shared object "libexpat.so.5" not found, required by "xml.so" in Unknown on line 0

Reinstalling /usr/ports/textproc/php4-xml fixed it.

Mambo Revisited

February 15, 2006 Posted in PHP

I tried Mambo a while ago and it’s always causing a fatal error “httpd exited on signal 11“. Read More

Update AwStats with Cron Job

February 10, 2006 Posted in Apache

In the next few days, I will try to automate the server maintenance as much as possible – ideally, I don’t have to logon the server for months if I don’t want to. Summer is coming :-) . Read More



Archives