PHP for Linux

Posted on 2006-03-30
Last Modified: 2008-03-03

Where can I download the latest stable release of php 5 for Red Hat Linux?

Also, I want to upgrade from php 4 to php 5. Is there a step by step installation guide on how to install php5 on linux?

Question by:niftyhawk
    LVL 33

    Accepted Solution

    LVL 1

    Author Comment


    Thanks for the info. How do I know which version of apache is installed on my linux machine? is there a command for it? sorry, i am a newbie.

    LVL 33

    Expert Comment

    httpd -v
    LVL 29

    Expert Comment

    Red Hat probalby has an RPM for PHP5. It is the easiest way to install if you're a newbie...
    LVL 1

    Assisted Solution

    You might consider disabling php/apache/mysql that came with Redhat and take a look at XAMPP, which you can get  This will install php4 and php5 with the ability to switch between them with one command.  It will also keep your php/apache/mysql and phpmyadmin configurations in sync with each other.  You can also plug Webmin in farily easily using the Webmin plugin.

    Very easy install.  Instructions are here:

    The unix commandlines for php4 and php5 switching are:

    By the following command you can switch "back" to PHP 4.x:

    /opt/lampp/lampp php4

    And with the following command you can switch back to PHP 5.x:

    /opt/lampp/lampp php5

    If you forgot which version of PHP is in use simply use phpinfo() or call this command:

    /opt/lampp/lampp phpstatus

    (No I don't work for apachefriends, but I like it a lot).  This is bettern than Redhat's RPMs IMO for newbies (and oldbies as well).

    Hope this helps you.

    Troy Jordan
    Jordan Productions


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    This is a general how to create your own custom plugin system for your PHP application that you designed (or wish to extend a third party program to have plugin functionality that doesn't have it yet).  This is not how to make plugins for existing s…
    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now