Compiling PHP 6

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Compiling PHP 6

Post by alex.barylski »

I really want to try out some of the locale/intl features and unicode of PHP 6 I think they will help me solve a lot of internationalization issues, but I also need a server to continue running 5.2.0

So I would like to download the PHP 6 source, compile and build the latest version and temporarily swap the old version with the new.

How can this be done while making it easy to switch back when I need 5.2?

Is it just the single binary and it's extensions which need be copied over, in addition to php.ini? WOuld this work, if I made temp copies of each then just renamed older binaries back to original and php.ini?

Can I build PHP6 into a separate directory and just notify Apache to use the latest version?
Post Reply