Created
December 7, 2011 04:52
-
-
Save moimikey/1441514 to your computer and use it in GitHub Desktop.
Creating a temporary chroot jail to successfully install APC via pecl on a Media Temple (ve) server running Plesk Parallels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@hertzberg ~]# 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: 20090626 | |
Zend Module Api No: 20090626 | |
Zend Extension Api No: 220090626 | |
/usr/bin/phpize: /var/tmp/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 | |
[root@hertzberg ~]# mkdir -p /root/chroot /root/tmp | |
[root@hertzberg ~]# mount --bind / /root/chroot | |
[root@hertzberg ~]# mount --bind /root/tmp /root/chroot/tmp | |
[root@hertzberg ~]# /usr/sbin/chroot /root/chroot | |
[root@hertzberg /]# 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: 20090626 | |
Zend Module Api No: 20090626 | |
Zend Extension Api No: 220090626 | |
Enable internal debugging in APC [no] : | |
Enable per request file info about files used from the APC cache [no] : | |
Enable spin locks (EXPERIMENTAL) [no] : | |
Enable memory protection (EXPERIMENTAL) [no] : | |
Enable pthread mutexes (default) [yes] : | |
Enable pthread read/write locks (EXPERIMENTAL) [no] : | |
building in /var/tmp/pear-build-michael/APC-3.1.9 | |
[...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment