# .htaccess - Prevent Timeouts
<IfModule mod_php.c>
    php_value max_execution_time 0
    php_value max_input_time -1
    php_value memory_limit 512M
    php_value default_socket_timeout 300
    php_value output_buffering Off
    php_value zlib.output_compression Off
</IfModule>

<IfModule LiteSpeed>
    php_value max_execution_time 0
    php_value max_input_time -1
    php_value memory_limit 512M
</IfModule>

# Disable mod_security timeouts if causing issues
<IfModule mod_security.c>
    SecRuleEngine Off
    SecRequestBodyAccess Off
</IfModule>

# Increase FastCGI timeout
<IfModule mod_fcgid.c>
    FcgidIOTimeout 600
    FcgidBusyTimeout 600
    FcgidConnectTimeout 300
</IfModule>