Click to See Complete Forum and Search --> : How do I Recompile just php, not apache?


Anon
12-26-2000, 09:23 PM
I currently have a working version of PHP 4.0.2 running with apache 3.1.12. I want to update my php build to 4.0.4 as well as add more support in php, but I don't want to have to recompile apache and everything else associated with it. Is this possible? Can Some point me in the right Direction

Anon
12-26-2000, 10:51 PM
Yes, it's certainly possible.

What operating system do you use? - It's hard to give specific advise without knowing that.

How did you install your Apache?

Anon
12-26-2000, 11:12 PM
Linux. RedHat 7.0 that I have recompiled many of the programs on, just to make sure that they are tailored to my own.


It is apache 1.3.12 + mod_perl + mod_ssl + php + mysql. That is the reason I don't want to recompile right now. It is a pain that I don't want to deal with until mid january at the earliest.

Anon
12-27-2000, 09:48 AM
OK. Did you install PHP as a DSO (--with-apxs) or did you compile it into Apache (--with-apache)?

Anon
12-27-2000, 02:57 PM
Last time i compiled it with "--with-apache"

Anon
12-27-2000, 04:47 PM
OK, then you can't just recompile PHP separately. Which is a reason always to compile PHP with --with-apxs in stead of --with-apache.

Anon
12-27-2000, 11:18 PM
Look at this URL for a little more info.

http://www.php.net/manual/install.unix.php

In my opinion using --with-apxs to compile php as an Apache module is the way to go. You can then add and remove the php extensions you using the php.ini file. (ex. mysql, pgsql, ldap, etc) There is more documentation at the above URL.

Compiling php directly into Apache will make your scripts run a little faster. As far as I can tell, and I haven't really done any benchmarking, unless you are running a HUGE site the speed increase isn't worth the hassle of recompiling Apache every time you want to add/remove a PHP feature.

Just my thoughts.