I am using Ubuntu 10.10 and i want to install php 5.4 as FPM to use with Nginx but i already have php 5.3.8 installed as apache module. I know i can set the prefix switch when i configure php 5.4 as some directory to prevent it from overwriting php 5.3.8 which is installed in the default path which is /usr/local/lib/php. But how can i prevent it from overwriting the php executable in /usr/local/bin/php and ini file in /usr/local/lib. Also i find that there other directories /usr/lib/php5 and /etc/php5. Would they be overwritten too. If yes how can i prevent them from being overwritten? I want to keep my php 5.3.8 too as an apache module so i cannot just overwrite it.
I am using Ubuntu 10.10 and i want to install php 5.4 as FPM
Share
If you compile it from source, you can specify target directory and where to search for ini file:
Running
./configure --helpwill show you all available optionsusing prefix, your executables will be placed in
{$prefix}/bin/and{$prefix}/sbin/, so path to them will look like/usr/local/lib/php54/bin/phpand/usr/local/lib/php54/sbin/php-fpm