duandeng1824 2015-02-23 13:38
浏览 76

安装PEAR时出错(错误的目录)

The error I am receiving is:

Fatal error: require_once(): Failed opening required 'pages/mail/config.php' (include_path='.:/usr/local/share/pear') in login-exec.php on line 4

But when installing PEAR I made a boo-boo and put it in the wrong directory:

php pyrus.phar install -r /usr/local/etc/ pear/PEAR-1.9.5

I should of used:

php pyrus.phar install -r /usr/local/share/ pear/PEAR-1.9.5

I was able to switch the config of the php directory with

pear config-set php_dir /usr/local/share/pear

but when actually implementing the change, I run out of memory

pear upgrade --force PHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 49152 bytes) in /usr/local/etc/php/pearcmd.php on line 148

I even cloned my 768mb VPS to a 4 gig unit and even after adjusting the memory in the php.ini, phar blows the memory up

I tried:

memory_limit = 1024

and

memory_limit = -1

I tried a symlink and 'include_path = ".:/usr/local/etc/' in the .ini, but apache cannot reach the PEAR structure in that directory so I am pretty sure the app must be relocated.

There in nothing in FreeBSD that will eat 2 gigs of memory except for bad code.

How to I fully delete pear so that is will no long default to the bad directory at reinstall? or How do I manually move PEAR to the proper directory structure avoiding a memory flood from bad engineering?

  • 写回答

1条回答 默认 最新

  • dougua9165 2015-07-22 20:52
    关注

    You are mixing two installers; pyrus and pear. Use only one to install your libs.

    评论

报告相同问题?

悬赏问题

  • ¥15 unity第一人称射击小游戏,有demo,在原脚本的基础上进行修改以达到要求
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染