Jump to content

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

What OS are you using? In gentoo Linux for instance its a simple matter of setting the USE flags you want in /etc/portage/package.use and then re-emerging.

 

Other distro's need a bit more work.

 

The best thing to do is download the source, extract it and read the README file.

Link to comment
https://forums.phpfreaks.com/topic/53296-how-to-recompile-php/#findComment-263402
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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.