Post Reply  Post Thread 
[howto] ispcp and eaccelerator
Author Message
slav



Posts: 1
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #1
[howto] ispcp and eaccelerator

Howto ISPCP Omega with eaccelerator

Installation

Make sure are logged in as root.
1. Fetch eaccelerator from eacclerator.net

wget http://bart.eaccelerator.net/source/0.9.....1.tar.bz2

2. Untar or unzip the distribution files to secure directory:

# cd /root
# tar -xjvf eaccelerator-0.9.5.1.tar.bz2

3. Change to the newly create directory:
# cd eaccelerator-0.9.5.1

4. Install the required module
# apt-get install php4-dev

5. Compile eAccelerator

# export PHP_PREFIX="/usr"

You must specify the real prefix where PHP is installed in the "export"
command. It may be "/usr" "/usr/local", or something else.

# $PHP_PREFIX/bin/phpize

# ./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config

# make && make install

After that you should see somethink like that:
Installing shared extensions: /usr/lib/php4/20050606+lfs/

6. Now its time to add eaccelearotor into our master php.ini file:

edit /var/www/fcgi/master/php4/php.ini file and add this lines:

extension="eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"

7. Create proper temp directory for eaccelerator
# mkdir /tmp/eaccelerator
# chmod 0777 /tmp/eaccelerator

8. Restart Apache and see the results:

/etc/init.d/apache2 restart

06-01-2007 06:14 AM
Visit this user's website Find all posts by this user Quote this message in a reply
raphael
Member
****
Dev Team

Posts: 474
Group: Dev Team
Joined: Apr 2007
Status: Offline
Reputation: 8
Post: #2
RE: [howto] ispcp and eaccelerator

Not really... eaccelerator should NOT be used with anything but mod_php otherwise some problems may occur, check the docs


YaHost Me | Text Link Ads | my Debian repository | Donate! | No OOXML! | Project HoneyPot | ... and more

Quote:
This is Linux land. In silent nights you can hear the Windows machines rebooting.

If you want to be helped, don't PM me but post in the forums | If you want private support PM me and we'll discuss the price

06-01-2007 10:24 AM
Visit this user's website Find all posts by this user Quote this message in a reply
SniperSister
Junior Member
*


Posts: 21
Group: Registered
Joined: Feb 2007
Status: Offline
Reputation: 0
Post: #3
RE: [howto] ispcp and eaccelerator

raphael Wrote:
Not really... eaccelerator should NOT be used with anything but mod_php otherwise some problems may occur, check the docs


What's the problem with fastcgi? Take a look at the FAQ Wink

http://eaccelerator.net/wiki/Faq Wrote:
Is eAccelerator working with php-cgi or php-cli?
This is not yet supported and it won't be supported in the near future. However FastCGI is supported.


Best regards
Snipy

06-03-2007 03:18 AM
Visit this user's website Find all posts by this user Quote this message in a reply
raphael
Member
****
Dev Team

Posts: 474
Group: Dev Team
Joined: Apr 2007
Status: Offline
Reputation: 8
Post: #4
RE: [howto] ispcp and eaccelerator

SniperSister Wrote:
What's the problem with fastcgi? Take a look at the FAQ Wink

Rolleyes https://www.eaccelerator.net/wiki/Faq?action=history
Last time I saw the FAQ that info wasn't available

But I don't wanna imagine what using a shared eaccelerator.cache_dir could cause...


YaHost Me | Text Link Ads | my Debian repository | Donate! | No OOXML! | Project HoneyPot | ... and more

Quote:
This is Linux land. In silent nights you can hear the Windows machines rebooting.

If you want to be helped, don't PM me but post in the forums | If you want private support PM me and we'll discuss the price

06-03-2007 01:16 PM
Visit this user's website Find all posts by this user Quote this message in a reply
SniperSister
Junior Member
*


Posts: 21
Group: Registered
Joined: Feb 2007
Status: Offline
Reputation: 0
Post: #5
RE: [howto] ispcp and eaccelerator

raphael Wrote:
But I don't wanna imagine what using a shared eaccelerator.cache_dir could cause...


That's the reason why I put the cache_dir to /var/www/virtual/my-domain.tld/phptmp Wink

Regards
Snipy

06-03-2007 04:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BioALIEN
Junior Member
**
Graph Team

Posts: 209
Group: Graph Team
Joined: Feb 2007
Status: Offline
Reputation: 0
Post: #6
RE: [howto] ispcp and eaccelerator

I just did "apt-get update" and "apt-get upgrade"

There are new updates for php5 so I accepted the upgrade. However this broke ispcp admin and all php pages. Looking at the apache error logs it states:

Quote:
PHP Warning: [eAccelerator] This build of "eAccelerator" was compiled for PHP version 5.2.0-8+etch7. Rebuild it for your PHP version (5.2.0-8+etch9) or download precompiled binaries.

PHP Fatal error: Unable to start eAccelerator module in Unknown on line 0
[Sun Jan 13 03:32:25 2008] [warn] FastCGI: server "/var/www/fcgi/master/php5-fcgi-starter" (pid 2663) terminated by calling exit with status '254'


As stated on the How To, you need to *rebuild* eaccelerator. However, don't forget to remove all previous eaccelerator files before you carry out the rebuild.

I think the guide here needs to be more explicit about it:
http://www.isp-control.net/ispcp/wiki/ho...ccelerator

Also, does anybody know how we can enable the control.php file provided with eAccelerator? It would be nice to have it as an optional step.


BioALIEN
OS: Debian 4.0 Etch
ispCP Build: RC3 r953 - 28.12.07
Mods: AWStats dynamic

This post was last modified: 01-13-2008 06:37 PM by BioALIEN.

01-13-2008 02:14 PM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump:

| All rights reserved : isp-control.net |