note 104496 added to apc.installation
| From: | brian at diamondsea dot com | Date: | Sat, 18 Jun 2011 02:34:09 +0000 |
| Subject: | note 104496 added to apc.installation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-180654@lists.php.net to get a copy of this message | ||
When installing on Plesk and cPanel machines, I get the following error message:
[root@web1 ~]# pecl install apc
downloading APC-3.1.9.tgz ...
Starting to download APC-3.1.9.tgz (155,540 bytes)
.................................done: 155,540 bytes
54 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/pear/temp/APC/build/shtool: /bin/sh: bad interpreter: Permission denied
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
ERROR: `phpize' failed
The problem is caused by the /tmp/ filesystem being mounted noexec, which keeps any programs on
/tmp/ from being allowed to be executed, which breaks the install script.
To remount /tmp/ as executable, use:
[root@web1 ~]# mount -o remount,exec,suid /tmp
The it should install correctly.
After the install is done, remount the /tmp/ filesystem with the noexec permissions reset.
[root@web1 ~]# mount -o remount,noexec,nosuid /tmp
----
Server IP: 64.71.164.2
Probable Submitter: 69.255.199.42
----
Manual Page -- http://www.php.net/manual/en/apc.installation.php
Edit -- https://master.php.net/note/edit/104496
Del: integrated -- https://master.php.net/note/delete/104496/integrated
Del: useless -- https://master.php.net/note/delete/104496/useless
Del: bad code -- https://master.php.net/note/delete/104496/bad+code
Del: spam -- https://master.php.net/note/delete/104496/spam
Del: non-english -- https://master.php.net/note/delete/104496/non-english
Del: in docs -- https://master.php.net/note/delete/104496/in+docs
Del: other reasons-- https://master.php.net/note/delete/104496
Reject -- https://master.php.net/note/reject/104496
Search -- https://master.php.net/manage/user-notes.php