php_flag upload_max_filesize "50M"
php_flag max_execution_time 300
php_flag memory_limit "64M"
ini_set('upload_max_filesize', '50M');
change as you need, find it this line
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =
; Maximum allowed size for uploaded files.
upload_max_filesize = ??M <--- change here ....
correct me if i wrong ...
Make sure you are editing the right php.ini file.
PHP4 configuration file is located here: /usr/local/etc/php4/cgi/php.ini
PHP5 configuration file is located here: /usr/local/etc/php5/cgi/php.ini
PHP6 configuration file is located here: /usr/local/etc/php6/cgi/php.ini
You have debian or freebsd?
Debian:
/etc/init.d/httpd restart
Freebsd:
/usr/local/etc/rc.d/httpd restart
locate php.ini
/usr/local/installatron/etc/php.ini
/usr/local/lib/php.ini
Sorry to bump an old thread, but it's at the top of Google, so I'm pretty sure a lot of people are coming here and getting the incorrect info.
Look for post_max_filesize in your PHP.ini file, then update it to 50M or whatever you need.
Note that you'll have to set other configs like timeouts etc if you are going to be able to upload a file that big.
jantsu78 said:EDIT: Problem solved. Find --> post_max_size
Change it what ever you want.
There is no post_max_filesize.