1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Update PHP to 5.3.x

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by davcom974, Apr 23, 2010.

  1. davcom974

    davcom974 Guest

    0
     
    Hello,
    Is it safe to update to PHP5.3.x on PLESK 9.5.x?
    How can I do this?
    If I get issues, can I revert back to PHP5.2? How?

    And is it possible to have PHP 5.3 installed for only specific domains? I know this is possible for the windows version. How can I do this on LINUX?


    Many thanks!
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,557
    Likes Received:
    1,242
    Location:
    Novosibirsk, Russia
    There are two PHP in Plesk - one for Plesk admin interface (lighttpd) and one for client's sites (Apache):

    Plesk's php:

    /usr/local/psa/admin/bin/php
    /usr/local/psa/admin/conf/php.ini

    Client's php:

    /usr/bin/php
    /etc/php.ini

    You can upgrade only client's PHP and can't do it only for one separate domain.
    You can use this method - http://www.atomicorp.com/wiki/index.php/PHP but seems there is only 5.2 version. Ask atomicturtle when 5.3 will be available.
     
  3. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    5.3 will be available in the next few weeks in the atomic repo.

    There are some major changes in this update that deprecate some existing functions which I suspect will cause some downstream support overhead for everyone (the folks at parallels, 4PSA, and all their customers and customers customers).

    Any time I know a major update will do this, I only approve the release for the beginning of the week to spare us our valuable weekends :p
     
  4. 105547111

    105547111 Silver Pleskian

    32
    30%
    Joined:
    Jul 13, 2006
    Messages:
    643
    Likes Received:
    2
    I built my own php-5.3.2 from Fedora 12 srpm onto my Fedora 11 server and it runs perfectly with plesk. I have not had one issue.

    Make sure all your php scripts and anything you run on your domains are ready. It should not be a problem with anything current. I run ubbthreads and it's fully 5.3 compliant.

    Just remember to set safe mode to off, and add your timezone into the php.ini file, otherwise your error logs get large as these are all depreciated (safe mode) and enforced (set time zone) in php-5.3x
     
  5. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    They run fine with plesk sure, but it will absolutely break a number of popular PHP applications. One of the larger impact issues would be on the way mysql 4.1 & php password handling interacts, thats basically all the RHEL/CentOS 4 systems out there.

    Here are a full list of incompatibilities:

    http://php.net/manual/en/migration53.incompatible.php
     
  6. 105547111

    105547111 Silver Pleskian

    32
    30%
    Joined:
    Jul 13, 2006
    Messages:
    643
    Likes Received:
    2
    True,

    But on my servers its not an issue all mysql-5.1 and all my boards and sites everything has been php-5.3 ready for ages.

    Any newer OS that natively supports php-5.3 its not an issue. Fedora 11 only stayed on 5.2x as it would not breal API, but rather compatability for any existing web apps running (a yum update else breal web sites using non 5.3 compliant software). However F11 is safe to up to php-5.3x as long as your not using old non php-5.3 compliant web apps.

    Remi been building php-5.3 since it started, I opted to stay with the Fedora releses and hence rebuild the F12 srpm.
     
  7. Helen Pang

    Helen Pang Basic Pleskian

    18
    85%
    Joined:
    Jun 23, 2010
    Messages:
    55
    Likes Received:
    0
    Hi atomicturtle,

    Has PHP 5.3.2 available in http://www.atomicorp.com/wiki/index.php/PHP?

    My plesk version is 9.5, would like to upgrade PHP version from 5.1.6 to 5.3.2, any advice how to upgrade it?

    We tried follow the atomicorp link, but shows below error:

    Error Downloading Packages:
    tzdata-java-2010i-1.el5.x86_64: failure: RPMS/tzdata-java-2010i-1.el5.x86_64.rpm from updates: [Errno 256] No more mirrors to try.
    krb5-workstation-1.6.1-36.el5_5.4.x86_64: failure: RPMS/krb5-workstation-1.6.1-36.el5_5.4.x86_64.rpm from updates: [Errno 256] No more mirrors to try.
    lcms-1.18-0.1.beta1.el5_3.2.i386: failure: CentOS/lcms-1.18-0.1.beta1.el5_3.2.i386.rpm from base: [Errno 256] No more mirrors to try.
    grep-2.5.1-55.el5.x86_64: failure: CentOS/grep-2.5.1-55.el5.x86_64.rpm from base: [Errno 256] No more mirrors to try.
    libsmbclient-3.0.33-3.29.el5_5.x86_64: failure: RPMS/libsmbclient-3.0.33-3.29.el5_5.x86_64.rpm from updates: [Errno 256] No more mirrors to try.

    Hope to hear from you soon.

    Thanks.
     
Loading...