![]() |
php.ini template? - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: System Setup & Installation (/forum-32.html) +--- Thread: php.ini template? (/thread-1619.html) |
php.ini template? - robmorin - 10-25-2007 10:37 PM 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.. RE: php.ini template? - BeNe - 10-25-2007 10:46 PM There is a HowTo in the Wiki - but only in German --> http://www.isp-control.net/ispcp/wiki/docs/de/eaccelerator Maybe you can find something and translate it with Google. Greez BeNe RE: php.ini template? - rbtux - 10-25-2007 10:50 PM maybe apc is the better alternative... I heard that it will ship with PHP6... RE: php.ini template? - robmorin - 10-26-2007 01:13 AM 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... RE: php.ini template? - robmorin - 10-26-2007 01:37 AM 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! ![]() 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... RE: php.ini template? - rbtux - 10-26-2007 03:10 AM sry i don't understand what does not work here... What is the directory eAccelerator uses now? Which directory you want it to be? RE: php.ini template? - robmorin - 10-26-2007 03:29 AM Well as per the German wiki article... http://www.isp-control.net/ispcp/wiki/docs/de/eaccelerator 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... |