shki_80 Posted March 16, 2010 Share Posted March 16, 2010 Hi All, I have a problem uploading Max size more or less 40MB from our admin side. My site is hosted on godaddy.com. I asked them to configure php.ini for the following. max_execution_time 400 post_max_size = 40M upload_max_filesize = 40M But they said that make your php5.ini file and place on www folder. I did so but server error comes up as below. Server Error 500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed. Secondly I found another solution from internet that to make .htaccess file and place the following configuration and also place this file on www (root directory). php_value upload_max_filesize 40M php_value post_max_size 40M php_value max_execution_time 400 php_value max_input_time 400 No after above changes I got the same error. Pls. if you help in this regard. What step to do next. I am looking for your positive response. Regards Quote Link to comment https://forums.phpfreaks.com/topic/195413-posting-large-size-file-upto-40mb-on-godaddy/ Share on other sites More sharing options...
PFMaBiSmAd Posted March 16, 2010 Share Posted March 16, 2010 For the php5.ini settings, max_execution_time 400 is not correct It should be - max_execution_time = 400 At what point does the Server error occur? When you request any page or just when the upload form submits to your form processing code? You can only put php settings in a .htaccess file when php is running as an Apache Module. Quote Link to comment https://forums.phpfreaks.com/topic/195413-posting-large-size-file-upto-40mb-on-godaddy/#findComment-1026882 Share on other sites More sharing options...
shki_80 Posted March 16, 2010 Author Share Posted March 16, 2010 Many thanks for your positive response. Actually, I have php5.ini file max_execution_time = 0 post_max_size = 40M upload_max_filesize = 40M max_input_time = 0 memory_limit = 40M I add this php5.ini www folder. and my website is running in /testing/admin folder where I am uploading my data. We get error when uploading a file. after a long time hang, system give me error as follows Server Error 500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed. Please reply since I am very worried. My client is very annoyed just for this. Regards Shakeel Quote Link to comment https://forums.phpfreaks.com/topic/195413-posting-large-size-file-upto-40mb-on-godaddy/#findComment-1026897 Share on other sites More sharing options...
PFMaBiSmAd Posted March 16, 2010 Share Posted March 16, 2010 For debugging purposes, add the following lines of code immediately after your first opening <?php tag in your form processing code - ini_set("display_startup_errors", "1"); ini_set("display_errors", "1"); error_reporting(E_ALL); Quote Link to comment https://forums.phpfreaks.com/topic/195413-posting-large-size-file-upto-40mb-on-godaddy/#findComment-1026899 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.