Running eAccelerator on OpenBSD’s Apache

OpenBSD provides an optimized and secured Apache v1.3 server. It also provides various PHP modules. But it doesn’t provide the eAccelerator PHP module (yet?).

Here’s how I compiled, installed and run eAccelerator on OpenBSD’s native Apache:
Continue reading “Running eAccelerator on OpenBSD’s Apache”

Optimize PHP on NetBSD

On a NAMP (NetBSD, Apache, MySQL, PHP) server, you can get a faster PHP rendering using eAccelerator.

First of all, install the php53-eaccelerator package.
Then, configure PHP to use it and the system to allow memory allocation:

# vi /usr/pkg/etc/php.ini
# sysctl -w kern.ipc.shmmax=536870912
# vi /etc/sysctl.conf
# /etc/rc.d/apache restart

According to ApacheBench, the initial “Time per request” was 3 sec. Using eAccelerator, it goes down to 1.9 sec.

Source: Optimize PHP