Hi, when running php as CGI in Apache suEXEC environment, the php.ini
needs to be located in the directory housing the script that being
exectuted - ie:

if your application is running (as per default settings) from:

./app/webroot/index.php

then the location would be

./app/webroot/php.ini

any scripts that are included as a part of running the original script
will be executed with whatever settings you have in this php.ini file.
You do not need additional php.ini files in any directories containing
other included or required scripts.

Note that your webhost might have disabled the ability to override
certain configuration values for php - including (although I doubt
they would) the upload_max_filesize value.

To check if your setting are taking effect, just add a phpinfo() line
at the top of your ./app/webroot/index.php script - you will be able
to see the difference between the default server php configuration
values and those as set by your custom php.ini file.

HTH,

Dan.


On Feb 20, 8:32 am, "Duncan" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I've the common PHP problem of my upload_max_filesize = 2M being too
> small for my needs.  Due to my host's restrictions I can't set value
> this through the .htaccess file.  (Nor does ini_set appear to work
> when placed in, say, app/config/core.php)
>
> As I'm using PHP4, I can't just place a custom php.ini in my http root
> - I have to place it in the directory where the upload script is run.
> So, in order for PHP to accept files larger than the default 2M, where
> should I place my php.ini within the cake directory tree?
>
> Cheers,
>
> Duncan


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to