Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
litespeed_wiki:cache:litemage:troubleshooting:exclude-api-from-php-timeout-limit [2018/05/30 15:21] Tihomir created |
litespeed_wiki:cache:litemage:troubleshooting:exclude-api-from-php-timeout-limit [2018/06/01 15:39] (current) Lisa Clarke Proofreading |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Run magento API PHP processes with no limits ===== | + | ====== 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 [[litespeed_wiki:config:understanding_500|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. | ||
- | Some Magento plugins or operations may need to run very long php procceses but they may be killed by Litespeed Web Server with [[litespeed_wiki:config:understanding_500|error 500]] after 120 seconds. For example is SOAP API from witch 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. |
- | In that in mind we have additionally environment variable that will resolve that issue. | + | |
+ | ===== noconntimeout ===== | ||
- | ==== noconntimeout ==== | + | You can use the ''noconntimeout'' variable in the ''.htaccess'' file. Here is an example with SOAP API: |
- | + | ||
- | You can use in the .htaccess file "noconntimeout" variable. We will give example with SOAP API: | + | |
<code> | <code> | ||
<IfModule Litespeed> | <IfModule Litespeed> | ||
RewriteEngine On | RewriteEngine On | ||
- | RewriteRule /api/soap/index/ - [E=noconntimeout:1] | + | RewriteRule api.php - [E=noconntimeout:1] |
</IfModule> | </IfModule> | ||
</code> | </code> | ||
- | + | The variable will allow you to run PHP processes without limits for the directory where the ''.htaccess'' file lives. | |
- | Variable will allow running php processes with no limits for that webpage where is the .htaccess file. | + | |
This can be very useful when you are working with modules like [[https://www.farapp.com/|FarApp]] or [[https://marketplace.magento.com/streammarket-royal-mail-shipping-manager.html|Royal Mail Shipping Manager]]. | This can be very useful when you are working with modules like [[https://www.farapp.com/|FarApp]] or [[https://marketplace.magento.com/streammarket-royal-mail-shipping-manager.html|Royal Mail Shipping Manager]]. | ||
- | For additional examples and information how to configurate the server side you can see this [[litespeed_wiki:php:run-without-timeouts|wiki]] | + | For additional examples and information how to configurate the server side you can see this [[litespeed_wiki:php:run-without-timeouts|wiki]]. |