PDA

View Full Version : Wrong php.ini?


roadrunner
26th April 2005, 16:13
I habe a PHP script that needs to be run from the command line and which needs more memory than PHP's default value of 8 MB. I'm running Debian Sarge and found that my php.ini is under /etc/php4/apache2/php.ini. So I increased PHP's memory limit in the file, but whenever I run my PHP script it stops immediately moaninig about not having enough memory.
So I guess that /etc/php4/apache2/php.ini might have been the wrong file to edit? Is there another php.ini?

falko
26th April 2005, 16:29
I think the right php.ini for your command line PHP is

/etc/php4/cli/php.ini