From: Operating system: Ubuntu 11.10 PHP version: 5.3.9 Package: *Configuration Issues Bug Type: Bug Bug description:Makefile INSTALL_IT target ignores --exec-prefix, --libexecdir, --sysconfdir
Description: ------------ The INSTALL_IT target hardcodes apxs2 directories making it very difficult to install multiple versions of php or relocate php. This also causes unexpected over writing of system php files, causing Apache to segfault. Fixes are a bit complex because they involve configure + Makefile. Suggest the end result produce a Makefile which honors these setting in all cases. So Makefile should include... sysconfdir=argument_passed_to_configure || /usr/lib/apache2/modules libexecdir=${exec_prefix}/argument_passed_to_configure || /etc/apache2 INSTALL_IT target then changes to... INSTALL_IT = $(mkinstalldirs) '$(INSTALL_ROOT)/$libexecdir' && \ $(mkinstalldirs) '$(INSTALL_ROOT)/$sysconfdir' && \ /usr/bin/apxs2 -S LIBEXECDIR='$(INSTALL_ROOT)/$libexecdir' \ -S SYSCONFDIR='$(INSTALL_ROOT)/$sysconfdir' \ -i -a -n php5 libphp5.la -- Edit bug report at https://bugs.php.net/bug.php?id=60812&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60812&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60812&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60812&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60812&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60812&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60812&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60812&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60812&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60812&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60812&r=support Expected behavior: https://bugs.php.net/fix.php?id=60812&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60812&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60812&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60812&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60812&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60812&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60812&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60812&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60812&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60812&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60812&r=mysqlcfg