Php – Generate libphp5.so without root privileges

apache-2.2installationPHPredhatunix

I'm trying to get php and apache playing nice together on RedHat 5. I don't have root access. So far I've got a custom install of apache2 in a non standard location and I've run:

yum install php

This has installed PHP but I need libphp5.so available to get apache talking to php.

Any suggestions about how I can do this without running make install would be greatly appreciated…

Best Answer

Autotools makefiles have a DESTDIR variable to install in a different location.

make install DESTDIR=/path/to/where/you/want/php

should install it where you want.