store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Thu Jun 20, 2013 7:46 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 1 post ] 
Author Message
 Post subject: APC (Alternative PHP Cache)
Unread postPosted: Sun Jan 04, 2009 8:15 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
I haven't been happy with PHP eAccelerator (problems with Horde, Apache segfaults, etc.) and I have been replacing it with APC (Alternative PHP Cache) on a couple of machines. I read this opcode cache will be the default opcode cache in PHP 6. Could you package this for the atomic repository?

Here is what I did to manually install APC:

Quote:
Requirements according to the site:
* PHP >= 4.3.0
* PEAR >= 1.4.0

Automatic compile and install using yum and pecl

Make sure you have /usr/bin/pecl:
# yum install php-pear

Make sure you have a C++ compiler:
# yum install gcc-c++

Make sure you have /usr/sbin/apxs:
# yum install httpd-devel

Note sure, is re2c needed? Pecl put up a warning when it was not available:
# yum install re2c

PECL does the rest:
# pecl install APC

Skip to 'Using APC' below for configuration.

Manual installation (untested)

This uses the phpize command from php-devel.

Download the latest version:
# wget http://pecl.php.net/get/APC

Download a specific version, untar, make and install:
$ wget http://pecl.php.net/get/APC-3.0.19.tgz
$ tar zxvf APC-3.0.19.tgz
$ cd APC-3.0.19
$ ./configure
$ make
# make install

Using APC

Load the extension:
# echo "extension=apc.so" > /etc/php.d/apc.ini

Runtime configuration (use all defaults):
# echo "# See http://www.php.net/manual/en/apc.configuration.php for APC configuration directives." > /etc/httpd/conf.d/apc.conf

Reload Apache:
# service httpd reload

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 1 post ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group