Koozali.org: home of the SME Server

Install PHP Accelerator for SME6.0.1 & PHP v4.3.8

Offline edb

  • *
  • 548
  • +0/-0
Install PHP Accelerator for SME6.0.1 & PHP v4.3.8
« 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
......

icpix

Install PHP Accelerator for SME6.0.1 & PHP v4.3.8
« Reply #1 on: September 15, 2004, 02:13:08 AM »
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

Offline edb

  • *
  • 548
  • +0/-0
Install PHP Accelerator for SME6.0.1 & PHP v4.3.8
« Reply #2 on: September 15, 2004, 06:46:17 AM »
Thanks for the reply Robert, I'll give it a try.
......

Offline nefkho

  • *****
  • 183
  • +0/-0
    • http://www.cagothonglines.com
can u give us a simple procedure
« Reply #3 on: September 15, 2004, 08:51:10 AM »
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,
Nef Kho  :-) .........

icpix

add a PHPA path line to php.ini and restart Apache
« Reply #4 on: September 15, 2004, 11:59:21 AM »
Quote from: "nefkho"
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

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
Install PHP Accelerator for SME6.0.1 & PHP v4.3.8
« Reply #5 on: December 21, 2004, 12:58:09 PM »
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.
............

icpix

Install PHP Accelerator for SME6.0.1 & PHP v4.3.8
« Reply #6 on: December 21, 2004, 01:04:52 PM »
Much difference/benefit to the use of PHP4.3.10 over my existing PHP4.3.8?

best wishes Robert

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
Install PHP Accelerator for SME6.0.1 & PHP v4.3.8
« Reply #7 on: December 21, 2004, 01:54:40 PM »
Quote from: "icpix"
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
............

icpix

Install PHP Accelerator for SME6.0.1 & PHP v4.3.8
« Reply #8 on: December 21, 2004, 02:33:40 PM »
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.