Hi,
I was trying to upload files larger than 12MB and it returns a 500 internal server error. There is no issues in uploading files upto 11mb in size. As i'm using a shared hosting I cannot access or change the php.ini file.I got following resutls when i executed phpinfo()
max_input_time -1 -1
max_execution_time 90 90
memory_limit 20M 20M
post_max_size 50M 50M
upload_max_filesize 50M 50M
I tried using the ini_set('max_execution_time',600); to exetend the script execution time. But its not working, Every time i upload file larger than 12mb the script executes some time and returns "500 internal server error".
Please help me as this is very urgent
Thanks in advance
Nikhil
Problem uploading a large file
Moderator: General Moderators
Re: Problem uploading a large file
Hi
If your ISP allows htaccess you could try this
http://www.whenpenguinsattack.com/2006/ ... de-phpini/
http://forums.devshed.com/php-developme ... l?p=588028
But if phpinfo said upload_max_filesize 50M 50M and you can't get past 12M
I'm not sure override is the issue.
incubi
If your ISP allows htaccess you could try this
http://www.whenpenguinsattack.com/2006/ ... de-phpini/
http://forums.devshed.com/php-developme ... l?p=588028
But if phpinfo said upload_max_filesize 50M 50M and you can't get past 12M
I'm not sure override is the issue.
incubi
Re: Problem uploading a large file
Thank you for the reply. Yes i have tried the .htaccess. As they don't allow me to upload .htaccess file, i had to upload the file with a different name and rename it. But as soon as i rename the file the linux server considers it as a hidden file and hides it.
I got the same result even after trying the .htaccess file.
Can you tell me why i'm getting a "500 Internal server error" is it b'coz of issues with code
Ok now i'm getting connection reset. does this mean that the script is not executing long enough.....?
I tried placing the .htaccess at the web root and also in the directory where the scripts executes.
Sorry for my bad english.............
Thanks
I got the same result even after trying the .htaccess file.
Can you tell me why i'm getting a "500 Internal server error" is it b'coz of issues with code
Ok now i'm getting connection reset. does this mean that the script is not executing long enough.....?
I tried placing the .htaccess at the web root and also in the directory where the scripts executes.
Sorry for my bad english.............
Thanks
Re: Problem uploading a large file
Server returns a "500 Internal server error" when i used a .htaccess file. If i remove the file the server returns "Connection was reset" error.
Re: Problem uploading a large file
Maybe the server admins have set up a timeout for security purposes.
Might want to ask your host provider.
Might want to ask your host provider.
Re: Problem uploading a large file
@jackpf
Thank you jackpf..
Thank you jackpf..