![]() |
PHP Maximum Upload Size
How do I change the PHP Maximum Upload Size from 2mb to a higher value ?
I know you edit php.in and the my.cnf file but what do I edit ? I have access to both files so please help! |
Its pretty simple, search php.ini for the following lines.
PHP Code:
Please note I believe sometimes you need to also consider the following: PHP Code:
Dont forget you may need to restart apache for the changes to take effect. Now if this fails, providing you have an apache server and apache uses PHP as a module, you can also make changes to the .htaccess file usually in the root, adding a few simple lines. Something like this: Code:
php_flag file_uploads On Matt |
Remember that you need to also restart Apache or your web server.
|
Quote:
|
If you have access to the both files then you should not have too much trouble updating them. You might want to do a backup in any event just in case.
|
Hi,
I need to upload files with a filesize of 50-70mb. For testing purposes, I already changed the values in the php.ini and my.cnf as follows: Code:
upload_max_filesize = 100M Code:
max_allowed_packet = 128M Apache and MySQL servers are both restarted. Thx in advance! |
Do you get any errors in your logs? Are you storing attachments in the database or the file system?
|
There were no errors in the log files.
Ah, I forgot to try the setting to store attachments in the file system. That seems to work correctly and I can live with that. Thanks for pointing me in the right direction. |
How do you "search php.ini"?
And how do you edit it? In the control panel? Using telnet? I really wish the helpfull old timers would be a bit more geared towards newbies in their answers. These threads will be used by newbies for many years going forward. Thanks. |
There are a lot of hosting providers that don't let you change the maximum upload size. If you can't find a php.ini file in your webroot directory, then your hosting provider probably doesn't let you change it.
Contact your hosting provider for more information. |
All times are GMT. The time now is 11:30 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|