Feb
10

PHP4, PHP4 PEAR and PHP5 on CentOS 5

PHP4I 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


Share and Enjoy:
These icons link to social bookmarking sites where readers can share and discover new web pages.

  • Digg
  • del.icio.us
  • Furl
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati

4 Comments

Make A Comment
  • Yann Said:

    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

  • CaliMonk Said:

    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…

  • CaliMonk Said:

    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.

  • daveasuncion Said:

    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!

Comments RSS Feed   TrackBack URL

Leave a comment

top
-->
© 2007 Deziner Folio. All Rights Reserved. XHTML Theme by: Dezinerfolio