我是一个绝对的新手......直到一小时前才学习SSh并且在2小时前得到了我的第一个VPS.还在学习!
所以我正在安装MediaWiki,需要添加APC扩展.但是遇到了麻烦.有什么想法/提示吗?
[root@www ~]# pecl install apc`
downloading APC-3.1.13.tgz ...
Starting to download APC-3.1.13.tgz (171,591 bytes)
.....................................done: 171,591 bytes
55 source files, building
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
shtool at '/var/tmp/APC/build/shtool' does not exist or is not executable.
Make sure that the file exists and is executable and then rerun this script.`
Run Code Online (Sandbox Code Playgroud)
小智 42
从/ var/tmp目录中删除noexec标志使用以下命令
mount -o remount,exec /var/tmp/
您可以使用相同的命令添加noexec标志
mount -o remount,noexec /var/tmp/
试试这个,复制自http://blog.litespeedtech.com/2013/04/05/trouble-shooting-pecl-install-doesnt-work/
更合适的解决方法是将PECL指向
temp_dir允许执行的分区或路径:Run Code Online (Sandbox Code Playgroud)mkdir /root/tmp pecl config-set temp_dir /root/tmp要么
Run Code Online (Sandbox Code Playgroud)pear config-set temp_dir /root/tmp(有一个已知的错误,
pecl config-set它不起作用,但pear config-set确实如此.如果是这种情况,只需使用PEAR配置命令.PECL将在安装时使用PEAR.)这种解决方法保留了/ tmp设置为noexec的任何安全性好处,但也允许PECL安装.