Jump to content

[SOLVED] PHP Upload Limit!


Recommended Posts

Heya!

 

Sorry firstly for Posting this as there are plently of tutorials online and secondly because I may have put it in the wrong place, I did look first but Couldn't see anywhere :/

 

Basicly, In my PHP.INI file, there is nothing, and in my .htaccess file, Nothing.

 

I cannot upload more than 2mb, but I try what people say, and nothing.

If I put anything into .htaccess then the Internal Server Error comes up, and nothing in php.ini appears to work :(

 

Any other way? I have access to Cpanel if this helps

Link to comment
Share on other sites

You can only put php settings in a .htaccess file when php is running as an Apache Module. Putting php setting in a .htaccess file when php is not running as an Apache Module results in server errors. I'll guess your php is not running as an Apache Module, but check with your web host to be sure.

 

You can only put php settings in a local php.ini when php is running as an CGI application AND your web host has permitted those particular settings to be changed. Also, some web server setups require a local php.ini to be placed in each folder that the settings need to apply to.

 

Have you checked with your web host exactly where and if you can change the maximum upload size settings? Some web hosts don't permit you to change it. Have you determined if you are exceeding the upload_max_filesize setting or the post_max_size setting or both?

 

Post the line(s) you attempted to put in your local php.ini, the syntax could have been wrong or the name of the setting you were attempting to change could have been wrong.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.