Jump to content

How to Recompile PHP


Recommended Posts

Ok, I've been looking around and I am unsure how I would go about recompiling PHP if I need to add in things like PDFLib or cURL etc.

 

On my test server which I don't mind breaking I have 5.0.4 running but I would like to figure out how to get PDFlib running on it.

 

On a live server I have 4.2.2 running and I would like to learn how to recompile it to at least 4.3.2 or even 5.*.

 

Is recompiling PHP fairly involved? Would I download the latest release and use that?  I'm looking for a good tutorial and explainations of the steps to recompile.  I don't think I've really ever recompiled anything in my life and I want to learn!

 

 

Link to comment
https://forums.phpfreaks.com/topic/53296-how-to-recompile-php/
Share on other sites

  • 3 weeks later...

There's a way to build extensions without recompiling PHP (unless you compiled it statically). To install 3rd-party extentions, go to the folder where you extracted the source. Run phpize, then ./configure, then make, and finally make install. (You need the php5-devel or similar package installled on Fedora) For a extension that comes with php (e.g. curl), then download the source, and then go to the folder of the extension (e.g. php-5.2.3/ext/curl) and run the commands above.

Link to comment
https://forums.phpfreaks.com/topic/53296-how-to-recompile-php/#findComment-279716
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.