Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2006
    Posts
    35

    Upgrade to php version 5

    Someone familiar with server software upgrade, please help. I want upgrade from php 4 to php version 5.

    My server not running with cpanel or anything. Just apache, php and mysql!

    Thanks

  2. #2
    Join Date
    Oct 2003
    Location
    Hanoi
    Posts
    4,306
    You will need to re-compile PHP from source. Howto, you can check on php.net site. Remember to check current phpinfo() before compiling, so you can know which options you want to include

  3. #3
    Join Date
    Aug 2003
    Location
    Gods Own Country
    Posts
    869
    * First put a phpinfo page in one of your site and save the configuration listed in the phpinfo page

    ---
    <?php

    phpinfo();
    ?>
    ---


    * Download the source

    * Untar it

    * ./configure --< with options got from the old phpinfo page >

    * Make

    * make Install

    * Just go to /usr/local/apache/libexec or module folder and see if a new file with the name libphp5.so is there or not.

    * If the libphp5.so file is there then go to below steps

    * Restart Apache

    I feel everything should be working now. Test it

    I hope this info is of some help to you.
    Blessen Cherian
    Follow me on twitter.com/blessenonly
    Over a decade plus in the Hosting Industry

  4. #4
    Join Date
    Jan 2008
    Location
    India
    Posts
    287

  5. #5
    If you have PHP installed from standard packages then it could be simply upgraded with help of 'yum' or 'apt-get' depending on OS which you have. If you need exactly information I agree with "servertechs" you should provide OS, PHP, mysql and apache versions.
    Best regards,
    AdminForces

  6. #6
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    Quote Originally Posted by elcidvn View Post
    My server not running with cpanel or anything. Just apache, php and mysql!
    How did you install the php4 earlier?
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  7. #7
    Join Date
    Jun 2006
    Posts
    35
    Php version 5.1.6
    MySql 5.0.22
    Apache 20051115

    So I want update to php version 5.2.5 because some XML coding not running on my old php version.

    Please help. Thanks

  8. #8
    Join Date
    Oct 2005
    Posts
    435
    I know you can add some custom repo in yum.conf so that you can just do a "yum update" but I am not completely sure you can get 5.2.5 that way.

    The one sure way to do is to do a compile. That is probably the way you need to go and one which most people here recommend.

  9. #9
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    11,687
    If you're using an older version of redhat, you're probably not going to be able to use 'yum' to update (or up2date) to php5.

    If you're using redhat itself, you probably won't be able to update to 5.2.5 as they do their own junk to releases, call them something else, and many times just don't update to the 'latest stable' in time.

    The best response? Remove the rpms (if you're using them), download, compile, and install. Of course if you're using RPMS, you'll haave to download, compile and install apache too.
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Always looking for Linux, WHMCS, Support Desk work. PM for details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •