Re: install not reading php.ini

From: Date: Wed, 23 Jan 2008 03:16:35 +0000
Subject: Re: install not reading php.ini
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28456@lists.php.net to get a copy of this message
On Jan 22, 2008 7:11 PM, Ben Carbery <ben.carbery@gmail.com> wrote: > I am trying to install a pecl module with "pecl install radius" > > memory_limit is set to 16M in /etc/php.ini but despite that I still get > this > error implying memory_limit is set to 8M: > > > > -------------------------------------------------------------------------------------------------------------------------------------------------------- > > [root@server pear]# pecl install radius > downloading radius-1.2.5.tgz ... > Starting to download radius-1.2.5.tgz (29,750 bytes) > .........done: 29,750 bytes > > Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to > allocate 92160 bytes) in /usr/share/pear/PEAR/Builder.php on line 312 > > > > -------------------------------------------------------------------------------------------------------------------------------------------------------- > > I initially tried upgrading pear from 1.4.9 to 1.6.2. A change in the > error > but not the memory_limit value: > > [root@server PEAR]# pecl install radius > downloading radius-1.2.5.tgz ... > Starting to download radius-1.2.5.tgz (29,750 bytes) > .........done: 29,750 bytes > > Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to > allocate 23040 bytes) in /usr/share/pear/PEAR/PackageFile/v2/Validator.php > on line 537 > > > > -------------------------------------------------------------------------------------------------------------------------------------------------------- > > I had a look at the pear config (pecl config-show) and php_ini was unset. > I set it to "/etc/php.ini" but again no change. > > I have exhausted my troubleshooting capacity here, can someone please > help? > > thanks, > > Ben > I'd compare "php -v" to "pear config-show" to be sure php_bin is the same PHP version that you expect. If that matches, I'd do "php -i" to verify PHP is using the php.ini that you expect. Those should confirm the "yes we're plugged into the wall and the power is on" gotchas ;) I've been bitten more than once by the pear command choosing things in my environment that I didn't expect it to, so confirming my assumptions is a key first step when I have problems using it. Next step I'd take would be to modify that Validator.php file just above line 537 and add maybe a "phpinfo()" to see what the overall environment looks like once you reach that failure point. Verify the memory_limit setting, and especially the path to the php.ini being used. Not sure where to suggest you proceed at that point... hopefully you'll see something to help steer you there. -- CRB

« previous php.pear.general (#28456) next »