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

PHP upgrade on CentOS 5

Discussion in 'Plesk for Linux - 8.x and Older' started by hosttt, May 10, 2008.

  1. hosttt

    hosttt Guest

    0
     
    Hi all,

    I need to upgrade my PHP version on my server.

    The server is running CENTOS 5 and my PHP version is 5.1.6. I need to get to version 5.2 or higher (compatibility problems).

    On the website of CENTOS... they write that the highest version included is 5.1.6. And the will not change this until there is a fully new release of CENTOS.

    Can anyone tell me how to do this. And are there persons that have experience in doing this…

    CENTOS 5
    plesk 8.4

    thanks!
     
  2. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
  3. amit290

    amit290 Basic Pleskian

    24
    23%
    Joined:
    Dec 9, 2006
    Messages:
    56
    Likes Received:
    0
    Do you have a date in mind for the release of PHP 5.2.6 on the atomic channel (centos5) ? Been suffering from the include_path problem in 5.2.5. Zend Framework sites dont work if someone logs into Horde because it overwrites the ini include path.
     
  4. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    Sure thing, its available in [atomic-testing] right now. Give it a shot and let me know how it worked out.
     
  5. franki

    franki Guest

    0
     
    Thanks atomicturtle!
    The PHP 5.2.6 fixed my include_path problem.
     
  6. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    Awesome! Thanks for the follow up
     
  7. amit290

    amit290 Basic Pleskian

    24
    23%
    Joined:
    Dec 9, 2006
    Messages:
    56
    Likes Received:
    0
    Me too . What a relief. I thought I was going to have to re-write a web site until I checked the PHP Bug list!!

    Thanks for the package atomicturtle :)
     
  8. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    Are you also using CentOS5? Any other issues with it so far? Anyone using this with ioncube, eaccelerator, or zend?
     
  9. amit290

    amit290 Basic Pleskian

    24
    23%
    Joined:
    Dec 9, 2006
    Messages:
    56
    Likes Received:
    0
    Hey,

    Im on CentOS5 and Plesk 8.3. Not found issues yet. I'm not using ioncube, eaccelerator or zend optimizer.
     
  10. apc_records

    apc_records Guest

    0
     
    I just tried your repositorie with my BlueQuartz 4.7 (based on centos4.5) installation, everything went smooth and php and mysql both work flawlessly, the onlye thing is.. I can't use mysql with php...
    I'm also missing some other extensions for php (like json, soap, gd), it looks like php is compiled without mysql and some other things...

    phpinfo() shows:

    Configure Command './configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--without-mime-magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--disable-json'

    Is it possible to enable these extensions somehow? They should be installed already with yum:

    php-mysql.i386 5.2.5-4.el4.art installed
    Matched from:
    php-mysql
     
  11. apc_records

    apc_records Guest

    0
     
    just fixed the problem.. looks like I needed to update to php 5.1.6 first (using centosplus repository) and than update to 5.2.5 (using atomic repository).

    for people who also have BlueQuartz installed, this is how I managed to update PHP without losing BQ Administrator functionality:

    Create a separate directory for the admin server modules.
    lets copy the needed stuff over there
    edit /etc/admserv/conf.d/php.conf and change the php4_module line into this:
    tell PHP4 where his modules can be found by editing /etc/admserv/php.ini
    Let's test it by restarting the admin server.
    If all goes fine, we can start by modifying the YUM repository.
    enable the centosplus server, save and update using yum
    if you restart apache at this moment, you probably get a syntax error...
    change the perlsection to this:
    Save the file, and restart your main server by doing:
    after this, update using the atomic repository (as described above by atomicturtle)
    I did not enable the Plesk repository because it would uninstall proftpd..

    thanks for sharing this repository with us atomicturtle, sure helped me updating to php5.2!
     
  12. BadCat

    BadCat Guest

    0
     
    I'd really need to upgrade to PHP5.2.6 (from 5.1.6) But last time I did anything like this I had to restore EVERYTHING, mainly because Pleask did not like what I upgraded.

    The procedure above looks pretty easy.... But can someone tell me how to backup my current PHP so I can revert back if necessary?
     
  13. sygrup

    sygrup Guest

    0
     
    I have centos 4
    current verion php 4
    I want to php version 5.
    can I do?
    Pls help me...
     
  14. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
Loading...