HostOnNet Blog

Installing eaccelerator on FreeBSD 6

After having problem with APC Cache, i have installed eaccelerator on FreeBSD 6 server.
 
eaccelerator is available in FreeBSD ports tree.
 
freebsd# cd /usr/ports
freebsd# make search name=eaccelerator
Port:   eaccelerator-0.9.4.r1_2
Path:   /usr/ports/www/eaccelerator
Info:   An opcode cache for PHP with encoder and loader
Maint: 
ale@FreeBSD.org
B-deps: apache-1.3.34_4 autoconf-2.59_2 expat-2.0.0_1 m4-1.
.4.2_1 php4-session-4.4.2_1
R-deps: apache-1.3.34_4 expat-2.0.0_1 perl-5.8.8 php4-4.4.2
_1
WWW:   
http://eaccelerator.net/
 
freebsd#
I have installed it with
 
# cd /usr/ports/www/eaccelerator/
# make install clean
 
After installation you need to do the following
 
You have installed the eaccelerator package.
 
Edit /usr/local/etc/php.ini and add:
 
zend_extension=”/usr/local/lib/php/20050922/eaccelerator.so”
 
Then create the cache directory:
 
mkdir /tmp/eaccelerator
chown www /tmp/eaccelerator
chmod 0700 /tmp/eaccelerator
 
After eaccelerator installed, you can verify this in phpinfo.
 
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
    with eAccelerator v0.9.4-rc1, Copyright (c) 2004-2005 eAccelerator, by eAccelerator
 
 
You can also see it with
 
server24# php -v
PHP 5.1.2 (cli) (built: Mar 7 2006 18:14:58 ) (DEBUG)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
    with eAccelerator v0.9.4-rc1, Copyright (c) 2004-2004 eAccelerator, by eAccelerator
server24#


Posted in Uncategorized. Bookmark the permalink.