Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: edb on September 14, 2004, 11:07:16 PM
-
Michel Van Hees has created an article for installing PHP Accelerator for PHP version 4.2 at this site http://www.vanhees.cc/index.phpmodule=ContentExpress&func=print&ceid=22 but I cannot use this rpm because I have PHP4.3.8 installed.
Would anyone have an updated rpm for the newer version of PHP? Thank you
-
I upgraded my SME6.0.1-01 with PHP4.3.8 and then found it broke the existing PHPAccelerator package. Their site has an update...
http://www.php-accelerator.co.uk/download.php
...and I have been using...
php_accelerator-1.3.3r2_php-4.3.0_linux_i686-glibc2.1.3.tgz
...which was applied very simply indeed. Happily without anything untoward happening;~) Works a treat. My Gallery really benefits from its use of PHPA and my ancient little server would almost certainly otherwise be on its proverbial knees - without PHPA.
best wishes, Robert
-
Thanks for the reply Robert, I'll give it a try.
-
hi,
i have the files already but dont know how to install them, can u give us a simple steps on installation of the acceselator...
thanks,
-
i have the files already but dont know how to install them, can u give us a simple steps on installation of the acceselator...
...? You *already have the files*... But you are seemingly unable to read the INSTALL file... where it says to add a single path line for PHPA to php.ini and then to restart Apache...?
For something as deep and tricky as acceleration, without EVEN requiring any compiling, this is truly exceptional simplicity!
I am not a programmer nor particularly experienced but I can read a help file, which is all I needed to do to get PHPA updated. I am sorry but I quite unable to make this procedure any simpler for you.
best wishes, Robert
-
On upgrading to php 4.3.10 my PHPA was knocked out but easily restored. I had hacked php.ini instead of making a template fragment.
This should ensure that future php upgrades do not affect PHPA.
mkdir -p /etc/e-smith/templates-custom/etc/php.ini
touch /etc/e-smith/templates-custom/etc/php.ini/66phpa
echo ' ' > /etc/e-smith/templates-custom/etc/php.ini/66phpa
echo '; PHP Accelerator extension' >> /etc/e-smith/templates-custom/etc/php.ini/66phpa
echo 'zend_extension="/usr/local/lib/phpa/php_accelerator_1.3.3r2.so"' >> /etc/e-smith/templates-custom/etc/php.ini/66phpa
/sbin/e-smith/expand-template /etc/php.ini
service httpd restart
Of course you need to check the path to phpa is actually right for you.
-
Much difference/benefit to the use of PHP4.3.10 over my existing PHP4.3.8?
best wishes Robert
-
Much difference/benefit to the use of PHP4.3.10 over my existing PHP4.3.8?
The updates are due to security issues.
I used the RPMs mentioned in this thread.
http://forums.contribs.org/index.php?topic=25275.0
There is not yet a 4.3.10 upgrade script
-
So I now see (I've been busy away in my other life)... more work huh;~/
For the purposes of this thread I should say that I have been obliged to drop my use of Gallery. Have adopted the rather more ancient osCommerce simply because it has a mature shopping trolley.
PHPA continues perform its 'magic'. However I have seen a number of issues arise...
1) Segmentation fault
[Fri Dec 17 17:02:36 2004] [notice] child pid 26920 exit signal Segmentation fault (11) and
2) Stale process
[Fri Dec 17 17:17:35 2004] [warn-phpa] Stale process 16671 detected (pid 17021)
I did briefly try the 'memory workaround' in the readme but things seemed worse. Similarly changing the memory allocation from the default 8MB to the max 32MB. Have settled on 16MB (empiracally). I am unable to get the monitor/feedback functionality operational...
phpa_cache_admin --mv
...has anyone else? Which means I cannot determine how effective the internal functions are in their respective roles.