PHP for Linux

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,
LVL 1
niftyhawkAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
niftyhawkAuthor Commented:
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
snoyes_jwCommented:
httpd -v
0
TeRReFCommented:
Red Hat probalby has an RPM for PHP5. It is the easiest way to install if you're a newbie...
0
troyjoCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.