Current time: 11-17-2024, 06:58 AM Hello There, Guest! (LoginRegister)


Post Reply 
php.ini template?
Author Message
robmorin Offline
Junior Member
*

Posts: 208
Joined: Apr 2007
Reputation: 0
Post: #1
php.ini template?
Hey all... i would like to use aAcelerator on my server, but i am not sure where to put the command in the php.ini file... i tried putting them in the master php4.ini file as i thought that was the site wide php.ini file, but that did not work...

do i need to put this in each domain's php.ini file? if so where is the template for thin in the /etc/ispcp dir , i could not find a place where i would add it there...

Thanks to all

Rob..
10-25-2007 10:37 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: php.ini template?
There is a HowTo in the Wiki - but only in German --> http://www.isp-control.net/ispcp/wiki/do...ccelerator

Maybe you can find something and translate it with Google.

Greez BeNe
10-25-2007 10:46 PM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #3
RE: php.ini template?
maybe apc is the better alternative... I heard that it will ship with PHP6...
10-25-2007 10:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
robmorin Offline
Junior Member
*

Posts: 208
Joined: Apr 2007
Reputation: 0
Post: #4
RE: php.ini template?
I followed the German doc on how to install its very nice and easy to understand no matter what language one speaks...

However i get this error when test to see if its working properly..

peter:/home/rob/eaccelerator-0.9.5.2# php -v
Failed loading /usr/lib/php4/20050606/eaccelerator.so: /usr/lib/php4/20050606/eaccelerator.so: undefined symbol: empty_string
PHP 5.2.0-8+etch7 (cli) (built: Jul 2 2007 20:43:26)
Copyright © 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright © 1998-2006 Zend Technologies
with eAccelerator v0.9.5.2, Copyright © 2004-2006 eAccelerator, by eAccelerator
with Suhosin v0.9.12, © Copyright 2006, by Hardened-PHP Project

Is this normal as when php5 is default i think i have to run php-cgi to get php4 to test/show like this can someone confirm this please?

peter:/home/rob/eaccelerator-0.9.5.2# php-cgi -v
PHP 5.2.0-8+etch7 (cgi-fcgi) (built: Jul 2 2007 20:40:49)
Copyright © 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright © 1998-2006 Zend Technologies
with eAccelerator v0.9.5.2, Copyright © 2004-2006 eAccelerator, by eAccelerator
with Suhosin v0.9.12, © Copyright 2006, by Hardened-PHP Project

If so , the cache dirs are not being setup in /var/www/virtual/domain.com/phptemp as per the above mentioned article

Thanks...

rbtux Wrote:maybe apc is the better alternative... I heard that it will ship with PHP6...
10-26-2007 01:13 AM
Find all posts by this user Quote this message in a reply
robmorin Offline
Junior Member
*

Posts: 208
Joined: Apr 2007
Reputation: 0
Post: #5
RE: php.ini template?
Ok i solved part of it... the...

Failed loading /usr/lib/php4/20050606/eaccelerator.so: /usr/lib/php4/20050606/eaccelerator.so: undefined symbol: empty_string

was because of an error on my part..... i put a statement in the wrong place under php5 dir

But i still cannot get the cache dir in phptmp dir...

Thanks for eveyone's patients!
Smile

Rob..

robmorin Wrote:I followed the German doc on how to install its very nice and easy to understand no matter what language one speaks...

However i get this error when test to see if its working properly..

peter:/home/rob/eaccelerator-0.9.5.2# php -v
Failed loading /usr/lib/php4/20050606/eaccelerator.so: /usr/lib/php4/20050606/eaccelerator.so: undefined symbol: empty_string
PHP 5.2.0-8+etch7 (cli) (built: Jul 2 2007 20:43:26)
Copyright © 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright © 1998-2006 Zend Technologies
with eAccelerator v0.9.5.2, Copyright © 2004-2006 eAccelerator, by eAccelerator
with Suhosin v0.9.12, © Copyright 2006, by Hardened-PHP Project

Is this normal as when php5 is default i think i have to run php-cgi to get php4 to test/show like this can someone confirm this please?

peter:/home/rob/eaccelerator-0.9.5.2# php-cgi -v
PHP 5.2.0-8+etch7 (cgi-fcgi) (built: Jul 2 2007 20:40:49)
Copyright © 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright © 1998-2006 Zend Technologies
with eAccelerator v0.9.5.2, Copyright © 2004-2006 eAccelerator, by eAccelerator
with Suhosin v0.9.12, © Copyright 2006, by Hardened-PHP Project

If so , the cache dirs are not being setup in /var/www/virtual/domain.com/phptemp as per the above mentioned article

Thanks...

rbtux Wrote:maybe apc is the better alternative... I heard that it will ship with PHP6...
10-26-2007 01:37 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #6
RE: php.ini template?
sry i don't understand what does not work here...

What is the directory eAccelerator uses now?
Which directory you want it to be?
10-26-2007 03:10 AM
Visit this user's website Find all posts by this user Quote this message in a reply
robmorin Offline
Junior Member
*

Posts: 208
Joined: Apr 2007
Reputation: 0
Post: #7
RE: php.ini template?
Well as per the German wiki article...

http://www.isp-control.net/ispcp/wiki/do...ccelerator

It is supposed to be in the domain's phptmp dir....

I added the following in /etc/php4/conf.d/eAccelerator and alsoin php5 dir too...

zend_extension="/usr/lib/php4/20050606/eaccelerator.so"
eaccelerator.shm_size="32"
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"


here are my settings in /var/www/fcg/domain.com/php4/php.ini

[eAccelerator]
eaccelerator.cache_dir = "/var/www/virtual/domain.com/phptmp/"

Any ideas why it would not work?

Thanks...
rbtux Wrote:sry i don't understand what does not work here...

What is the directory eAccelerator uses now?
Which directory you want it to be?
10-26-2007 03:29 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)