how to increase the uploading size from 2mb to more how to increase the uploading size from 2mb to more
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

how to increase the uploading size from 2mb to more

Started by friendjain1, November 12, 2008, 02:31:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

friendjain1

Hello everyone.

How can i increase the uploading size from 2mb to more. I have read in various threads that we have to make change in php.ini file. But i m not getting that file. Please let me know where it locate. And how to increase the size. Iwould be really thankful to you people.

USER:
------------------
Array
(
    [ID] => ae170c7176de2c5ee2655ec95e5fd95e
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 16
            [1] => 17
            [2] => 12
            [3] => 18
            [4] => 19
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => Anurag
    [groups] => Array
        (
            [0] => 1
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 1
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg_filetypes; (0.001s)
    [1] => select * from cpg_plugins order by priority asc; (0.001s)
    [2] => delete from `csclasse_copp1`.cpg_sessions where time<1226493527 and remember=0; (0s)
    [3] => delete from `csclasse_copp1`.cpg_sessions where time<1225287527; (0s)
    [4] => select user_id from `csclasse_copp1`.cpg_sessions where session_id = '6ec51b5cba8ed95b15dcde53221d38cb' (0s)
    [5] => select user_id as id, user_password as password from `csclasse_copp1`.cpg_users where user_id=1 (0s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `csclasse_copp1`.cpg_users AS u INNER JOIN `csclasse_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
    [7] => SELECT user_group_list FROM `csclasse_copp1`.cpg_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
    [10] => update `csclasse_copp1`.cpg_sessions set time='1226497127' where session_id = '6ec51b5cba8ed95b15dcde53221d38cb' (0s)
    [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg_banned WHERE expiry < '2008-11-12 13:50:47' (0s)
    [13] => SELECT * FROM cpg_banned WHERE (ip_addr='118.94.36.189' OR ip_addr='118.94.36.189' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.8 - OK
------------------
mySQL version: 4.1.22-standard-log
------------------
Coppermine version: 1.4.19(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.22
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | /usr/lib/php:.:/usr/php4/lib/php:/usr/local/php4/lib/php | /usr/lib/php:.:/usr/php4/lib/php:/usr/local/php4/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in -1.165 seconds - 15 queries in 0.004 seconds - Album set : ; Meta set: ;



http://www.csclasses.com/testimage/phpinfo.php

friendjain1

Alternative 1 (ideal):
Increase the memory limit allocation in php.ini. You must be the server's administrator to do this. Also, .htaccess files cannot change this configuration setting, and it cannot be changed using ini_set(). First, you locate the following block in php.ini (if you actually are the server admin):


; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)


Now you increase the memory limit to fit your needs. 9 to 16 MB should handle most requirements. To calculate the amount of memory an image uses, you simply multiply the pixel width and height, and then you multiply the result by the number of base colors (RGB - 3, CMYK - 4). Finally, you divide by 1048576 to get the memory usage in MB.



Source: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_support


BUT this will help me only when i get php.ini file. The problem is that i m not getting that file.

Fabricio Ferrero

This is very ironical and funny.  ;D

First you quote this link: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_support Where clearly says:

QuoteWhen asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges, with the above mentioned settings in place - this way, supporters can see the error messages as well. Do not post debug_output unless requested. If you want fast results, you should disable admin approval for the group the test user is in, so supporters can tell instantly what is wrong without needing to double-check.
You failed in every single point.

Then, you ask and reply yourself with a wrong answer. I don't know why did you read so much and didn't found your answer. Quite simple by the way. And it's already explained in the docs. What you should read carefully before posting.

Read: 4.12.8 Picture and thumbnail settings

QuoteMax size for uploaded files (KB)

Any file with a file size larger than this value will be rejected by the coppermine script. Setting this option to a higher value than what is actually supported by your webserver will only result in "funny" webserver error messages in lieu of "regular" coppermine error messages. Therefore, it is recommended that you set this value to a size that is slightly lower or equal to the max file size that your server is set to handle. The actual size your server can handle cannot be determined by Coppermine (or any PHP script) - when in doubt, contact your webhost.

Prior to an FTP upload of files, it is recommended that the admin use their imaging software to resize (individually or by batch processing) larger files to a more practical size. This will facilitate the FTP process and the creation of intermediate pictures and thumbnails.

Read Docs and Search the Forum before posting. - Soporte en espaƱol
--*--
Fabricio Ferrero's Website

Catching up! :)