The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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! |
#2
|
||||
|
||||
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 php_value memory_limit 8M php_value post_max_size 20M php_value upload_max_filesize 10M Matt |
#3
|
||||
|
||||
Remember that you need to also restart Apache or your web server.
|
#4
|
||||
|
||||
Quote:
|
#5
|
|||
|
|||
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.
|
#6
|
|||
|
|||
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 post_max_size = 110M memory_limit = 120M max_execution_time = 300 Code:
max_allowed_packet = 128M Apache and MySQL servers are both restarted. Thx in advance! |
#7
|
||||
|
||||
Do you get any errors in your logs? Are you storing attachments in the database or the file system?
|
#8
|
|||
|
|||
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. |
#9
|
|||
|
|||
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. |
#10
|
||||
|
||||
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. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|