Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: David Harper 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:
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.
-
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:
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 (http://forums.contribs.org/index.php/topic,43086.msg204539.html#msg204539)?
They are supposed to be more stable than your work I guess.
-
What is wrong with the CentosPlus RPM's like Greg Zartman suggested here (http://forums.contribs.org/index.php/topic,43086.msg204539.html#msg204539)?
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 (http://sme.firewall-services.com/spip.php?article46)
Ciao
Stefano
-
it's a different approach.. and, as David said, it's an evolution of what you can find here (http://sme.firewall-services.com/spip.php?article46)
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.
-
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.
-
Fantastic, glad you like it.
-
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
-
This is wonderful. Thank you very much!!
MJ
-
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?
-
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
-
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 :)
-
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
-
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.
-
Sorry, duplicate post.
-
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
-
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?
-
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 (http://www.pdflib.com/products/pdflib-family/pdflib-lite/PDFlib Lite 7.0.4p1.tar.gz) then do:
cd PDFlib Lite 7.0.4p1
./configure
make
make install
Which installs the pdf library ...
Then I use the following command to download and compile the actual pdf extension for PHP:
pecl install pdflib
The 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:
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/ (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
-
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,
-
I've been running with it for about 3 months now on a moderately used server, no problems so far.
-
Thanks for the reply. I too now have it running and all looks OK.
Thanks David for packaging this Contrib!
-
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
-
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