You are not logged in.

#1 2016-06-16 15:42:48

Magissia
Member
Registered: 2013-05-06
Posts: 7

[Solved] Use two version of php the same time

I want to run php7 and php5 on the same server but there is no compile option to rename the binary, only changing it's path when using ./configure --help
php7 is from repo and should stay as it is, php5 is self compiled and binary.

I've seen some rigs running each php version with a binary php$version (php5.4) but I don't see any patch to remove that in the official php package, so it may be non-default way to build the binary.

While most seems as easy as adding "5" at the end of the option ( --with-config-file-path=/etc/php5 ), I wasn't able to find a compile time option to alter the binary name.

Thank you for your time

Last edited by Magissia (2018-04-10 12:11:20)

Offline

#2 2016-06-16 16:17:28

null
Member
Registered: 2009-05-06
Posts: 398

Re: [Solved] Use two version of php the same time

I don't have it installed so I can't check it, but the php56 AUR package seems to install the php binary to /usr/bin/php56 and all the extenstions to /usr/lib/php56/modules just by copying them to the right directory with install.

https://aur.archlinux.org/cgit/aur.git/ … LD?h=php56

Last edited by null (2016-06-16 16:17:52)

Offline

Board footer

Powered by FluxBB