APC /bin/sh bad interpreter: Permission denied
Oct 23
APC /bin/sh bad interpreter: Permission denied
Thu, 2008-10-23 08:52 — superuser
So I'm trying to install APC, a simple pecl install apc should be enough but it fails with the following:
[root@www3]# pecl install apc downloading APC-3.0.19.tgz ... Starting to download APC-3.0.19.tgz (115,735 bytes) ................done: 115,735 bytes 47 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519 /usr/bin/phpize: /tmp/tmp2gmeEO/APC-3.0.19/build/shtool: /bin/sh: bad interpreter: Permission denied Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script. ERROR: `phpize' failed
For security reasons the /tmp filesystem is mounted with the noexec flag:-
[www4 19:24:12]-(~)# mount | grep \/tmp
/dev/sda2 on /tmp type ext3 (rw,noexec,nosuid,nodev)
Remount the drive with the exec flag:
[www4 19:28:46]-(~)#
mount -t ext3 /dev/sda2 /tmp -oremount,rw,exec,nosuid,nodev
[www4 19:28:52]-(~)# mount | grep \/tmp
/dev/sda2 on /tmp type ext3 (rw,nosuid,nodev)
Comments
Ahh, thank you! That's exactly the explanation I was looking for.
Post new comment