Koozali.org: home of the SME Server

The ionCube PHP Accelerator?

Michael Maggard

Re: The ionCube PHP Accelerator?
« Reply #15 on: November 07, 2002, 09:15:58 PM »
> -----Original Message-----
> From: Nathan Fowler [mailto:evilghost@packetmail.net]
> Sent: Thursday, November 07, 2002 12:25 PM
> Subject: Re: The ionCube PHP Accelerator? [3:23077:23537]
>
> /etc/php.ini isn't templated...unless something changed in
> 5.5 and I don't know about it.

Yes, it appears that >=5.5 uses templates for php.ini, at least I'm seeing them on my 5.5:

/etc/e-smith/templates/etc/php.ini/

 00PHP
 10LanguageOptions
 20ResourceLimits
 30ErrorHandling
 40DataHandling
 50PathsDirectories
 60FileUploads
 65FopenWrappers
 70DynamicExtension00
 70DynamicExtension30imap
 70DynamicExtension50ldap
 70DynamicExtension70mysql
 80ModuleSettings
 template-begin

Doing some spelunking of these (very unfamiliar territory) in "70DynamicExtension00" I've come across the instructions:

 #;;;;;;;;;;;;;;;;;;;;;
 # Dynamic Extensions ;
 #;;;;;;;;;;;;;;;;;;;;;
 # if you wish to have an extension loaded automaticaly, use the
 # following syntax:  extension=modulename.extension
 # Note that it should be the name of the module only, no directory information
 # needs to go here.  Specify the location of the extension with the
 # extension_dir directive above.}

Which leads me to believe this is to be a double edit. Anyone care to confirm? [Thanks]

-- Michael

ps yes I'll make this into a How-To when done, I'm 1/2way there already ;)
Michael Maggard wrote:

Nathan Fowler

Re: The ionCube PHP Accelerator?
« Reply #16 on: November 07, 2002, 09:23:53 PM »
Perfect, that's the information I needed to confirm/help you out (and others running 5.5).

mkdir -p /etc/e-smith/templates-custom/etc/php.ini
pico -w /etc/e-smith/templates-custom/etc/php.ini/70ionCube01

[Add the lines]
; PHP Accelerator extension
zend_extension="/path/to/php_accelerator_1.3.2.so"
[Save]

/sbin/e-smith/expand-template /etc/php.ini
/etc/rc.d/init.d/httpd restart

Nate

Re: The ionCube PHP Accelerator?
« Reply #17 on: November 07, 2002, 09:24:00 PM »
Make a custom template /etc/e-smith/templates-custom/etc/php.ini/75phpa, and put the stuff needed by phpa into that file.  Expand the template, restart httpd, and see what happens.  Worst case you would have to delete 75phpa and re-expand the template.