Marsha Posted September 10, 2009 Share Posted September 10, 2009 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 Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted September 10, 2009 Share Posted September 10, 2009 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. Quote Link to comment Share on other sites More sharing options...
Marsha Posted September 10, 2009 Author Share Posted September 10, 2009 * upload_max_filesize = 10M ; * post_max_size = 20M ; are the lines and You are correct, All I am running is SMF forums so I doubt Apache is in there :/ I will contact my host right away and should get a reply within 15 minutes Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted September 10, 2009 Share Posted September 10, 2009 Are the '*' and the ';' actually part of the lines? You should only have - upload_max_filesize = 10M post_max_size = 20M Quote Link to comment Share on other sites More sharing options...
Marsha Posted September 10, 2009 Author Share Posted September 10, 2009 No they are not lol! sorry Still waiting on a reply from the host Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted September 10, 2009 Share Posted September 10, 2009 Another possibility is that a local php.ini must be named php5.ini or a similar name. Again, check with your web host for exact requirements on their server. Quote Link to comment Share on other sites More sharing options...
Marsha Posted September 14, 2009 Author Share Posted September 14, 2009 Thank you, My host sorted it out, He put a phpinfo.php file into my downloads folder with the maximum upload codes in it Thanks for all your help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.