Wrong php.ini?

Discussion in 'Programming/Scripts' started by roadrunner, Apr 26, 2005.

  1. roadrunner

    roadrunner New Member

    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
    Code:
    /etc/php4/apache2/php.ini
    might have been the wrong file to edit? Is there another php.ini?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    I think the right php.ini for your command line PHP is

    Code:
    /etc/php4/cli/php.ini
     

Share This Page