I have to compile a few versions of PHP in work but I need an apache service for each version running like we have on Windows. However the configure options seem to have different folders for everything. I was wondering if there was an easy way to configure so when I make install it is all in one folder, with all the extensions in ext etc rather than scattered around the system.
I want to compile 5.5.1, 5.3.27, 5.2.17 and 4.3.11.
Now this wouldn't be a problem with just one PHP version but with multiple versions things will probably be overwritten/conflicted in other ways.
Say I want everything to go to /php/5.5.1/
./configure --prefix=/php/5.5.1/
How else is this to be configured to put everything in that folder? Has anyone else done this?
/php/5.5.1
. Install under/opt/php/5.5.1
, that's what/opt
is for (a bit likeProgram Files
in Windows).