?
Solved

PHP for Linux

Posted on 2006-03-30
7
Medium Priority
?
303 Views
Last Modified: 2008-03-03
Hi,

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?

Thanks,
0
Comment
Question by:niftyhawk
5 Comments
 
LVL 33

Accepted Solution

by:
snoyes_jw earned 252 total points
ID: 16333913
0
 
LVL 1

Author Comment

by:niftyhawk
ID: 16334130
Hi,

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.

Thanks
0
 
LVL 33

Expert Comment

by:snoyes_jw
ID: 16334654
httpd -v
0
 
LVL 29

Expert Comment

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

Assisted Solution

by:troyjo
troyjo earned 248 total points
ID: 16432813
You might consider disabling php/apache/mysql that came with Redhat and take a look at XAMPP, which you can get http://www.apachefriends.org/en/xampp.html  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:  http://www.apachefriends.org/en/xampp-linux.html#377

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
www.jpwebsite.com

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses
Course of the Month14 days, 9 hours left to enroll

840 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