Run Magento API PHP Processes With no Limits

Some Magento plugins or operations may need to run very long php procceses but they may be killed by LiteSpeed Web Server with Error 500 after 120 seconds. An example is SOAP API from which you can update products. In this case, LiteSpeed can detect the connection as idle and kill it.

With that in mind, we have an additional environment variable that will resolve the issue.

noconntimeout

You can use the noconntimeout variable in the .htaccess file. Here is an example with SOAP API:

<IfModule Litespeed> 
RewriteEngine On
RewriteRule api.php - [E=noconntimeout:1]
</IfModule>

The variable will allow you to run PHP processes without limits for the directory where the .htaccess file lives.

This can be very useful when you are working with modules like FarApp or Royal Mail Shipping Manager.

For additional examples and information how to configurate the server side you can see this wiki.