PHP4, PHP4 PEAR and PHP5 on CentOS 5
I recently released PHP4 RPM’s for CentOS 5, claiming they worked fine alongside the stock PHP5 that comes with CentOS 5.
Okey, that wasn’t entirely true. I had forgotten about php-pear! If you install php (stock version) alongsides my RPM’s you would get some errors, this has been resolved
After a few days of playing around with my RPM’s, I’ve finally managed to have a php4-pear RPM to work fine alongside php delivered by CentOS. Below an example of my results:
php and php5
php4-pear
To grab the latest version, enable the Labcoding repository!
Make a labcoding.repo file:
Paste the following:
Now update your current PHP files!
All set!
If anyone encounters any difficulties, errors or would just like to say thanks, please leave a comment!
Side note: Don’t want to use our repository or grab the SRPM? Be my guest.
Ivo
4 Comments
Make A CommentComments RSS Feed TrackBack URL







February 29th, 2008 at 11:02 am
Hi,
I’ve been testing your RPMs for 2 days and I have a problem so I would like to know if you have tested PHP5 (default on CentOS 5.x) + PHP4 AND Apache 2.2.3 (default on CentOS 5.x too) ?
I’ve tested and after the installation of your RPMs, I’ve seen that neither php.conf (for PHP5) in /etc/httpd/conf.d, neither libphp5.so in /usr/lib/httpd/modules still exist on my server.
So I have taken these 2 files on another server and put them in directories listed above, and now Apache doesn’t want to start and I get this message:
/bin/bash: line 1: 2577 Segmentation fault /usr/sbin/httpd
With the number before “Segmentation fault” which always changes.
Maybe you’ve goot the solution ?
Thanks for your anwser
March 13th, 2008 at 7:13 pm
The location for the PHP5 files are not something i define, it should be /etc/php.ini for PHP5.
My RPM’s are PHP4 RPM’s…
March 14th, 2008 at 9:46 pm
I was able to reproduce your error. You’re trying to load PHP4 and PHP5 on apache, this is obviously not possible.
I’m using PHP4 with apache, PHP5 with Lighttpd/FastCGI.
You should remove /etc/httpd/conf.d/php.conf and php4.conf.
April 8th, 2008 at 1:38 pm
great job, i have a problem with php-mcrypt. if i have to install it, it will install php(5) which I actually don’t need. won’t u please create php-mcrypt that will work on your RPMs? thank yoU!