PHP INSTALLATION ON LINUX ?

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
vsaggu
Forum Newbie
Posts: 14
Joined: Mon Jun 17, 2002 5:12 am
Location: NZ
Contact:

PHP INSTALLATION ON LINUX ?

Post by vsaggu »

Which is the easiest, fast, best , simple way to install php for the first time on linux ?? im confused...........
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

on which flavor?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

As soon as you know how the package manager of your distro works it doesn't matter.. It's all easy...
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Since I don't know what distro your running my only recommendation is to download the source (*.tar.gz) and run:

Code: Select all

tar xvzf php*.tar.gz
cd php*
./configure --prefix=/wherever/you/want/it/to/go --other-options-found-by-reading-the-documents-(--enable-mysql-of-course)
make
su -
make install
If you have the redhat package manager installed you'll probably find a suitable rpm file which are incredibly easy to install....

Your best bet though, as timvw mentions, is to learn how your package manager works ;)

Example.... on gentoo

Code: Select all

emerge php
User avatar
vsaggu
Forum Newbie
Posts: 14
Joined: Mon Jun 17, 2002 5:12 am
Location: NZ
Contact:

Post by vsaggu »

Thanks dude.......
Post Reply