Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 3 of 3

This is a discussion on oracle & issues with http uploading image over 2mb in the Shared & Semi-Dedicated forum
I am on oracle server now,was on a different before and did not have this issue before, I can not use http to upload images ...

  1. #1
    JPC Addict Jacksdad's Avatar
    Join Date
    Jul 2002
    Posts
    240

    oracle & issues with http uploading image over 2mb

    I am on oracle server now,was on a different before and did not have this issue before, I can not use http to upload images over 2Mb to my site.

    This is a new install of gallery and I also tried a straight php code to upload an image over 2mb and it fails. I have check and php is running as Cgi. I would think it has something to do with upload_max_filesize in php.ini, but I was under the impression that php.ini is not in play if php is running as cgi.

    ANYONE have the same issue and/or been able to fix this?

    Thank you,
    Scott

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    PHP.ini is still very much in play under CGI and my guess is that it is your upload_max_filesize setting that is causing problems here.

    JPC's implementation of PHP-CGI reads php.ini from one of three places:
    a) If you set an suPHP_ConfigPath directive in an .htaccess file somewhere in your site, the directory containing that file and all subdirectories below it (until you issue another suPHP_ConfigPath directive) will look for a php.ini file in the location specified in that directive

    Code:
    suPHP_ConfigPath /home/USERNAME/php5
    Note that this is a path to the directory containing the php.ini file, not to the file itself. In this example the file that will be read is /home/USERNAME/php5/php.ini.

    b) When no suPHP_ConfigPath directive is in use, PHP will look for a php.ini file in the directory of the current script and load that.

    c) If there is no suPHP_ConfigPath directive or local php.ini file, PHP will resort to looking for the php.ini file in the configuration path that was set when PHP was compiled, usually /etc.

    Only one php.ini file is read for any given script, so it is important that all options you may need be set in whichever php.ini file is used. When using a custom file, it is best to download the current version of the system-wide file from your cPanel to make changes and then upload that to your site so that you get a consistent configuration.

    The .htaccess directives php_flag and php_value are not supported under PHP-CGI; I think you are confusing that with php.ini.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  3. #3
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    There's also an upload_max_post_size or some such... that needs to be at least upload_max_filesize

    Search php.ini for "max"

    BTW JAG's default php.ini is 99MB for both (IIRC)
    Good luck

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •