|
Forum > Support
Increasing Upload Limits PHP
(1/3) > >>
SMFHacks:
Increasing Upload Limits PHP
By default php sets the max upload filesize to 2mb To view your current php settings create the following file
--- Code: ---<?php phpinfo(); ?>
--- End code --- Save it as info.php and upload to your website then view it in your browser.
The two important variables are upload_max_filesize And post_max_size
Next step is to change those settings. Look for "Configuration File (php.ini) Path " and "Loaded Configuration File" on the phpinfo page to find your php settings are stored.
Edit that file and increase upload_max_filesize and post_max_size to the size of the largest file you wish to be allowed uploaded.
Then after your save those changes be sure to restart your webserver for the changes to take affect.
If you do not have access to the php.ini you can still override it in most cases on apache by creating a .htaccess file and place it in the root directory of your forum. If the file already exists just append these files to it. Example .htaccess file
--- Code: ---php_value upload_max_filesize 20M php_value post_max_size 20M
--- End code ---
Also if you are using Fast CGI mod_fcgi with apache you need to increase the MaxRequestLen - variable in the fastcgi settings
baboontester:
increasing it through the Php.ini is no good to me b/c I cant restart the webserver,
I created an .htaccess file with that exact thing and but it in my root directory, but it gives me an http 500 internal server error
any ideas?
SMFHacks:
I would try contacting your host for support
baboontester:
tried that too, they wont up crap.
They dont seem to get what I'm saying I guess. Stupid Host Monster.
tiger4020:
i called the host master and they say the file php.ini has to be added by me.
how do i create one and where do i put it in which folder??
the php.ini file which is there on the sever i cannot change it.
what do i do now
Navigation
[0] Message Index
[#] Next page |
No thumbnails on new uploads
by SMFHacks
March 27, 2024, 02:10:41 pm
|
Display the Contact Page for guests
by SMFHacks
March 27, 2024, 10:55:43 am
|
is it possible to add support for odysee.com
by fvlog19
March 21, 2024, 08:47:51 am
|
Request for admin notification
by davejo
March 10, 2024, 01:31:59 am
|
I need help with torrent upload
by Ineedsmfhelp
March 09, 2024, 10:01:13 pm
|
an idea for new mod (( content type with different display ))
by SMFHacks
February 27, 2024, 01:36:27 pm
|
[Mod] RSS Feed Poster
by SMFHacks
February 27, 2024, 11:57:18 am
|
find duplicate pictures
by fvlog19
February 14, 2024, 02:22:40 pm
|
Error uploading video.
by SMFHacks
February 08, 2024, 02:04:16 pm
|
Gallery icon as last added image
by fvlog19
February 01, 2024, 01:04:56 pm
|
|
|