Koozali.org: home of the SME Server

[announce] PHP version 5 - standalone install

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
[announce] PHP version 5 - standalone install
« on: January 29, 2009, 12:13:24 PM »
Hi all

I have been working on a update to php5-cgi from Firewall Services. I have successfully created RPM packages for PHP 5.2.8 - the latest version - and a brand new integration package that makes it super easy to turn it on for ibays:

Code: [Select]
db accounts setprop [ibayname] php5 yes
signal-event ibay-modify [ibayname]

For installation instructions etc, check out the wiki page at http://wiki.contribs.org/PHP5

Note that this is beta quality code. It compiles, and performs its basic functions but I haven't done extensive testing.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: [announce] PHP version 5 - standalone install
« Reply #1 on: January 29, 2009, 08:33:38 PM »
Hi all

I have been working on a update to php5-cgi from Firewall Services. I have successfully created RPM packages for PHP 5.2.8 - the latest version - and a brand new integration package that makes it super easy to turn it on for ibays:

Code: [Select]
db accounts setprop [ibayname] php5 yes
signal-event ibay-modify [ibayname]

For installation instructions etc, check out the wiki page at http://wiki.contribs.org/PHP5

Note that this is beta quality code. It compiles, and performs its basic functions but I haven't done extensive testing.
What is wrong with the CentosPlus RPM's like Greg Zartman suggested here?

They are supposed to be more stable than your work I guess.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: [announce] PHP version 5 - standalone install
« Reply #2 on: January 29, 2009, 09:02:04 PM »
What is wrong with the CentosPlus RPM's like Greg Zartman suggested here?

They are supposed to be more stable than your work I guess.

AFAIK, Centoplus rpms will upgrade PHP to version 5..

with David's one you can install PHP5 without upgrading.. and you can enable it per ibay..

it's a different approach.. and, as David said, it's an evolution of what you can find here

Ciao
Stefano

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: [announce] PHP version 5 - standalone install
« Reply #3 on: January 29, 2009, 11:46:55 PM »
it's a different approach.. and, as David said, it's an evolution of what you can find here

I tried the CentOSPlus upgrade once, and it mangled my ability to do updates etc. Because this is a standalone contrib, it doesn't muck up the core of SME 7.x.

Offline Henk

  • 2
  • +0/-0
Re: [announce] PHP version 5 - standalone install
« Reply #4 on: February 02, 2009, 08:19:18 PM »
Thanks a lot David. I've installed this php5 contrib to be able to use mediawiki 1.13.3. in an ibay. As far as I can see everything works fine.

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: [announce] PHP version 5 - standalone install
« Reply #5 on: February 02, 2009, 11:01:25 PM »
Fantastic, glad you like it.

Offline Craig Cabrey

  • ****
  • 79
  • +0/-0
Re: [announce] PHP version 5 - standalone install
« Reply #6 on: February 02, 2009, 11:13:39 PM »
Thank you so much for this!
I have been waiting for a long time for PHP5. I tried (a while ago) to upgrade the server to PHP5 & MySQL 5 CentOS 4.7 RPMs, but this resulted in an unusable server. Now I can use Ampache! Yes, I much prefer Ampache over Jinzora...
Again, thank you.

Craig

Offline Mjohnson

  • *
  • 172
  • +0/-0
Re: [announce] PHP version 5 - standalone install
« Reply #7 on: February 03, 2009, 06:09:39 AM »
This is wonderful.  Thank you very much!!

MJ
......

Offline JohnG

  • ****
  • 89
  • +0/-0
Re: [announce] PHP version 5 - standalone install
« Reply #8 on: February 04, 2009, 03:23:24 PM »
Hi, this looks like exactly what I need while awaiting SME8, thanks!

How does it work with PHPMyAdmin? Can PHPMyAdmin manage both PHP 4 and PHP 5 at the same time?

Also if there are any security updates to PHP, does both versions get updated?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: [announce] PHP version 5 - standalone install
« Reply #9 on: February 04, 2009, 03:29:30 PM »
Hi, this looks like exactly what I need while awaiting SME8, thanks!

How does it work with PHPMyAdmin? Can PHPMyAdmin manage both PHP 4 and PHP 5 at the same time?

Also if there are any security updates to PHP, does both versions get updated?

since David's rpm works per ibay, I expect that everything is out of ibays (phpmyadmin ecc) will continue work with PHP4..

about updates: updates to PHP4 come from Centos/RedHat.. for PHP5.. I hope David will do the work :-)

Ciao
Stefano

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: [announce] PHP version 5 - standalone install
« Reply #10 on: February 04, 2009, 10:03:18 PM »
PHPMyAdmin manages MySQL, not PHP per se, and yes, it will continue to use PHP4.

With regards to updates, yes, I will definitely try to compile PHP5 updates when they are released. But it will have to fit around my work of course :)

Offline judgej

  • *
  • 375
  • +0/-0
Re: [announce] PHP version 5 - standalone install
« Reply #11 on: February 05, 2009, 02:00:34 AM »
I haven't used it yet, but will be trying it out soon. I've been waiting a long time for an update to the PHP5 contrib to make use of the latest features that were not included in the previous version (some apps would not run). It seemed to be the same [older] version of PHP5 everywhere I looked.

Thank you,

-- Jason
-- Jason

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: [announce] PHP version 5 - standalone install
« Reply #12 on: February 05, 2009, 06:38:42 AM »
This work is based on the earlier spec, so it may not behave all that differently. Let me know how you get on with your testing.

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: [announce] PHP version 5 - standalone install
« Reply #13 on: February 05, 2009, 06:39:15 AM »
Sorry, duplicate post.
« Last Edit: February 05, 2009, 07:32:08 AM by David Harper »

Offline edb

  • *
  • 548
  • +0/-0
Re: [announce] PHP version 5 - standalone install
« Reply #14 on: April 25, 2009, 05:27:08 AM »
This looks to be a very positive contrib, so thanks to whoever went to all the work of creating this work-around!

I do have a couple questions however:

1) How can I go about installing ZEND Optimizer and the php-mcrypt extention for the PHP5-cgi install?
2) I will also need to do "pecl install pdflib" for the PHP5 install and I'm not too sure as to how I can do that.

Thanks for any and all comments on how I can accomplish this.

-edb
......

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: [announce] PHP version 5 - standalone install
« Reply #15 on: April 25, 2009, 08:19:05 AM »
Mcrypt will be compiled in when PHP 5.3 comes out. Unsure about pdflib. What is it needed for?

As for Zend, do you need the encoder or decoder?

Offline edb

  • *
  • 548
  • +0/-0
Re: [announce] PHP version 5 - standalone install
« Reply #16 on: April 25, 2009, 06:29:27 PM »
Hi David,

Thanks for your reply though it was not exactly what I was hoping for. :(

For the webapp I'm running I need it to have the mcrypt extension, pdo_mysql extension, and the pdf extention.

As far as the pdf requirements I normally install and compile PDFlib-Lite from here http://www.pdflib.com/products/pdflib-family/pdflib-lite/PDFlib Lite 7.0.4p1.tar.gz then do:
Code: [Select]
cd PDFlib Lite 7.0.4p1
Code: [Select]
./configure
Code: [Select]
make
Code: [Select]
make installWhich installs the pdf library ...

Then I use the following command to download and compile the actual pdf extension for PHP:
Code: [Select]
pecl install pdflibThe install will want to know the path to the pdflib install which is usually "/usr/local" in a normal install.
Then I only need to add the extention "extension=pdf.so" to my template fragment.
Followed by:
Code: [Select]
expand-template /etc/php.ini
/etc/init.d/httpd-e-smith restart

The ZEND Optimizer is used to load encoded files and uses multi-pass code optimizations to double the running speed of PHP applications. This is done by running an optimization of the code created by the run-time compiler, before the code is executed.
I need to be able to install the ZEND Optimizer extensions for PHP which is done by downloading ZENDOptimizer from here http://www.zend.com/en/downloads/
Then just run the install script which adds the ZEND extensions to the phpini file which in turn needs to be added as a php.ini template fragment which should look like this:
[Zend]
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.2.8
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.2.8
zend_optimizer.version=3.2.8
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

I guess I may end up needing to go to SME8x even though it is just in beta right now because it just seems to be one issue after another trying to get PHP5 running smoothly in SME7.4.
This contrb was really my last hope for getting PHP5 to work on my current SME7.4 production server.

Thank again for all your work on this as I'm sure it has helped many!

-edb
......

Offline StephenHodgman

  • *
  • 31
  • +0/-0
Re: [announce] PHP version 5 - standalone install
« Reply #17 on: May 11, 2009, 09:45:04 AM »
I need to install PHP5 so this contrib is of great interest to me.

I see the contrib is still marked as "Beta"

Does anybody have feedback form real use on production servers?
I am a little cautious about installing it in case there are issues with it.
Thanks,

Offline JohnG

  • ****
  • 89
  • +0/-0
Re: [announce] PHP version 5 - standalone install
« Reply #18 on: May 11, 2009, 03:02:35 PM »
I've been running with it for about 3 months now on a moderately used server, no problems so far.

Offline StephenHodgman

  • *
  • 31
  • +0/-0
Re: [announce] PHP version 5 - standalone install
« Reply #19 on: May 17, 2009, 01:43:43 PM »
Thanks for the reply.  I too now have it running and all looks OK.

Thanks David for packaging this Contrib!

Offline DjD

  • 3
  • +0/-0
Re: [announce] PHP version 5 - standalone install
« Reply #20 on: November 11, 2009, 08:49:28 AM »
Hi david

Thanks for your great work on this often required php upgrade.  Just looking at an app that requires PHP: version 5.1.0 or higher, with xml, mb_string, mcrypt, php_imap, mysql modules installed plus:
Encoder: the latest version of Zend Optimizer or IonCube
(from this link http://www.kayako.com/solutions/system-requirements.php )

What chance of seeing this anytime soon?  Will $$ help?

Thanks
David

Offline Marco Hess

  • *
  • 149
  • +0/-0
    • http://www.through-ip.com
Re: [announce] PHP version 5 - standalone install
« Reply #21 on: November 17, 2009, 09:15:52 PM »
What chance of seeing this anytime soon?

The latest version is php5-cgi 5.2.8 and can be installed from the smecontribs repository.

See http://wiki.contribs.org/PHP5

And this page shows the PHP features in that release:

http://bugs.contribs.org/attachment.cgi?id=2644

Cheers,

Marco
Adelaide - Australia