Help - Search - Members - Calendar
Full Version: How do i recompile php?
The Planet Forums > System Administration > General Support Questions
theman
I need some help compiling php. Not that I can't read the docs, but I don't know what it was compiled with initially with EV1. Meaning the exact ./configure command + all options used. I don't know that or how to find out how it was done before.
Is it needed if I simply have some options to add to it?

This what I need to add:
--with-freetype-dir=/usr/local --with-png-dir=/usr/local --with-gd=/usr/local --enable-gd-native-ttf --with-ttf --with-gdbm --with-jpeg-dir=/usr/local

Then after the ./config command I would run
make
make install
and restart php... right? would that be all?

Any info on the process, additionaly details, implications or procedures would be much appreciated.

Oh... reason for this addition is to get a cart called cube working. Thanks!
roguemind
Create a file "phpinfo.php" amd put in the following 3 lines;

phpinfo();
?>

and then call it in you browser. This will show all the php options your looking for.
char
Alternatively you can get that information using:

QUOTE
php -i | grep 'configure'


at the command line.
theman
I don't know what it was compiled with initially with EV1. Meaning the exact ./configure command + all options used. I don't know that or how to find out how it was done before.
Is it needed if I simply have some options to add to it?

This what I need to add:
--with-freetype-dir=/usr/local --with-png-dir=/usr/local --with-gd=/usr/local --enable-gd-native-ttf --with-ttf --with-gdbm --with-jpeg-dir=/usr/local

phinfo doesnt tell me how to compile php... nor is it the line that ev1 used initially.

thanks again.
theman
sorry bout that... it seems it does.rolleyes.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.