|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-04-13 10:07 UTC] pfoubert at carat-hosting dot com
Description: ------------ Hello, I try to install APC from pecl. I do # pecl install apc and have this error ============================= Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 23040 bytes) in /usr/share/pear/PEAR/Dependency2.php on line 636 Allowed memory size of 8388608 bytes exhausted (tried to allocate 0 bytes) =============================== Memory in php.ini is set to 16MB I also stopped mod_security to be sure. I use this pear version # pear list Installed packages, channel pear.php.net: ========================================= Package Version State Archive_Tar 1.3.1 stable Console_Getopt 1.2 stable HTML_Template_IT 1.1.4 stable Net_UserAgent_Detect 2.1.0 stable PEAR 1.4.9 stable XML_RPC 1.4.7 stable And here is my pear/pecl config [root@obiwan ~]# pecl config-show Configuration (channel pecl.php.net): ===================================== Auto-discover new Channels auto_discover <not set> Default Channel default_channel pecl.php.net HTTP Proxy Server Address http_proxy <not set> PEAR server [DEPRECATED] master_server pear.php.net Default Channel Mirror preferred_mirror pecl.php.net Remote Configuration File remote_config <not set> PEAR executables directory bin_dir /usr/bin PEAR documentation directory doc_dir /usr/share/pear/doc PHP extension directory ext_dir /usr/lib64/php4 PEAR directory php_dir /usr/share/pear PEAR Installer cache directory cache_dir /tmp/pear/cache PEAR data directory data_dir /usr/share/pear/data PHP CLI/CGI binary php_bin /usr/bin/php PEAR test directory test_dir /usr/share/pear/test Cache TimeToLive cache_ttl 3600 Preferred Package State preferred_state stable Unix file mask umask 22 Debug Log Level verbose 1 PEAR password (for password <not set> maintainers) Signature Handling Program sig_bin /usr/bin/gpg Signature Key Directory sig_keydir /etc/pearkeys Signature Key Id sig_keyid <not set> Package Signature Type sig_type gpg PEAR username (for username <not set> maintainers) User Configuration File Filename /root/.pearrc System Configuration File Filename /etc/pear.conf Pascal PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 18 22:00:01 2025 UTC |
Adding the following line: ini_set('memory_limit', '32M'); to the top of: /usr/share/pear/pearcmd.php Should fix the problem. (Add it right below the comments in the header....)