Chris W. Parker wrote:
> Hello,
> 
> Generally (well, actually 100%) I just use whatever version of PHP is
> included with a certain distro (Redhat pre-Fedora, Fedora Core, CentOS).
> None of the versions I've used have come with PHP5 and I'd really like
> to get with the times and use PHP5.
> 
> I know that Fedora Core 5 offers PHP 5.1.2 but I've heard some negative
> things about it in general (FC5).
> 
> I've never compiled PHP myself so admittedly I'm a bit skeered... Is the
> recommended path to just go with whatever distro I prefer and then
> download PHP5 from php.net and install it myself?

roll your own - it's easy enough, and once you have mastered it you'll have a
warm fuzzy feeling - when you initially get start you might
run into a bit of trouble with regard to required libs/developer files needed
by certain extensions that are not installed (use your fav package manager to
grab those) but the basic premise is this (at the cmdline):

$> mkdir ~/some-work-dir
$> cd ~/some-work-dir
$> wget http://nl2.php.net/get/php-5.1.4.tar.gz/from/this/mirror
$> tar -xvvf php-5.1.4.tar.gz
$> cd ./php-5.1.4
$> ./configure
$> make
$> make test
$> make install

you now have a basic php build on your system

1. you can skip 'make test'
2. if in doubt do 'make clean' before 'make'
3. rinse and repeat 'configure', 'make', 'make install' as required
4. do './configure --help' to see all the options you can pass to configure
5. get stuck with a configure option (for instance enabling GD) come back here 
:-)



> 
> 
> 
> Thanks,
> Chris.    ne`qc       
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to