Change HTTP_KEEP_ALIVE default value
Posted by: Psychopsia (201.216.175.---)
Date: November 25, 2006 04:53AM

Hi everyone!

I have a problem with Apache, I'm trying to import a MySQL database of 80 MB to my localhost, but gave me the timeout error.

So, I changed all timeout related values in httpd.conf and php.ini to a higher values, but the error remains.

I think is happening because HTTP_KEEP_ALIVE value is 300, after a long search in Apache site and Google, I can't find any useful information.

So, anyone know how to change the HTTP_KEEP_ALIVE value?

Thanks in advance.

Options: ReplyQuote
Re: Change HTTP_KEEP_ALIVE default value
Posted by: CyberSpatium (71.237.217.---)
Date: November 25, 2006 03:52PM

edit your php.ini file, and change
upload_max_filesize = 2M

to
upload_max_filesize = 90M

save the file and restart apache for the new setting to take effect.


CyberSpatium
WAMP English Forum Admin

Options: ReplyQuote
Re: Change HTTP_KEEP_ALIVE default value
Posted by: Psychopsia (201.216.175.---)
Date: November 25, 2006 05:26PM

Hi CyberSpatium!
Before posting the topic I changed the config files:

httpd.conf:

# Timeout: The number of seconds before receives and sends time out.
Timeout 30000

php.ini:

max_execution_time = 30000
max_input_time = 30000
memory_limit = 250M
post_max_size = 250M
upload_max_filesize = 250M

But in phpinfo() the _SERVER['HTTP_KEEP_ALIVE '] still has the value 300.
The error in phpMyAdmin is something like "The script reached the execution limit of 300 seconds", I can't remember exactly, but show 300.

Thank you


Options: ReplyQuote
Re: Change HTTP_KEEP_ALIVE default value
Posted by: CyberSpatium (71.237.217.---)
Date: November 25, 2006 07:06PM

make sure you have edited the correct files;

php.ini
c:\wamp\apache\bin\php.ini

httpd.conf
c:\wamp\apache\conf\httpd.conf

also restart apache after changing this files to make the new settings take effect.


CyberSpatium
WAMP English Forum Admin

Options: ReplyQuote
Re: Change HTTP_KEEP_ALIVE default value
Posted by: Psychopsia (201.216.175.---)
Date: November 25, 2006 07:21PM

Yes, are the correct files.
This error happened all the week, and after restart the computer too many times.

Options: ReplyQuote


Sorry, only registered users may post in this forum.