The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP4 or PHP5?

Discussion in 'General Discussion' started by zigzam, Mar 1, 2007.

  1. zigzam

    zigzam Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    206
    Likes Received:
    0
    Trophy Points:
    16
    Which would be better to run on a shared hosting server? PHP4 or PHP5?

    Are there a lot of script incompatibilities with PHP5?
     
  2. Patiek

    Patiek Active Member

    Joined:
    May 23, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    No. there are not. Go with PHP 5 unless you have some obscure reason not to. PHP 5 has been out for over two years now and usable (5.1x/5.2x) for over a year.

    Plus selecting PHP 4 is just killing those developers who love the new OO capabilities. How can one live without abstract classes?
     
  3. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    There are lots of developers that have chosen to jump from 4.x to 6.x when it releases though. Lots of problems with some places supporting php5.
     
  4. zigzam

    zigzam Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    206
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for the feedback. I will try using 5.2.0
     
  5. hostechsupport

    hostechsupport Well-Known Member

    Joined:
    Apr 1, 2006
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    0
    Go with the current php stable release version which you can find at http://php.net
    which is
    # Current PHP 5 Stable: 5.2.1
    # Current PHP 4 Stable: 4.4.6
     
  6. zigzam

    zigzam Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    206
    Likes Received:
    0
    Trophy Points:
    16
    5.2.1 is buggy from what I read.
     
  7. gorilla

    gorilla Well-Known Member

    Joined:
    Feb 3, 2004
    Messages:
    699
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney / Australia
    i would go for PHP 5.2.0 ;)
     
  8. EricG

    EricG Member

    Joined:
    Jul 10, 2006
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    I'm facing the same dilemma. I'm running a VPS with CentOS and cPanel, current apache buid is with php 4.2.1. Now a client needs php 5 to installe mediawiki but I don't know if I should update or not.

    If I rebuild apache with php 5.2.0, how likely am I to create problems for my current customers who are using forums and other php softwares ?
     
  9. rachweb

    rachweb Well-Known Member

    Joined:
    Jun 26, 2004
    Messages:
    268
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    amsterdam
    If you run php 4.2.1 then i recommend to upgrade immediately to the last version 4.4.6
     
  10. norelidd

    norelidd Well-Known Member

    Joined:
    Jan 15, 2007
    Messages:
    173
    Likes Received:
    1
    Trophy Points:
    18
    If you can wait a few weeks, easyapache3 will be out so you can use php4 and 5 side by side
     
  11. celliott

    celliott Well-Known Member

    Joined:
    Jan 2, 2006
    Messages:
    460
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    United Kingdom
    Many hosting providers with cPanel have been running PHP4 and PHP5 together for a long time, including myself :) It's not difficult to setup.
     
Loading...

Share This Page