pecl install apc isn't working. shtool does not exist

后端 未结 2 579
-上瘾入骨i
-上瘾入骨i 2021-02-01 06:21

I am an absolute newbie…didn\'t learn about SSh till an hour ago and got my first VPS 2 hours ago. Still learning!

So I\'m installing MediaWiki and need to add APC exten

相关标签:
2条回答
  • 2021-02-01 07:08

    Try this, copied from http://blog.litespeedtech.com/2013/04/05/trouble-shooting-pecl-install-doesnt-work/

    A more appropriate workaround is to point PECL’s temp_dir to a partition or path that allows execution:

    mkdir /root/tmp
    pecl config-set temp_dir /root/tmp
    

    or

    pear config-set temp_dir /root/tmp
    

    (There is a known bug where pecl config-set does not work but pear config-set does. If this is the case for you, simply use the PEAR config command. PECL will use PEAR when doing the install.)

    This workaround preserves any security benefit from having /tmp set as noexec, but also allows PECL installs.

    0 讨论(0)
  • 2021-02-01 07:09

    Remove noexec flag from /var/tmp directory use the following command

    mount -o remount,exec /var/tmp/

    You can use the same command to add the noexec flag back

    mount -o remount,noexec /var/tmp/
    0 讨论(0)
提交回复
热议问题