Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
litespeed_wiki:php:detached_mode [2019/04/12 14:47] Lisa Clarke [Changes to detached mode will be effective when a request comes] Copyediting |
litespeed_wiki:php:detached_mode [2019/07/12 16:09] Jackson Zhang [For a User] |
||
---|---|---|---|
Line 23: | Line 23: | ||
==== For a User ==== | ==== For a User ==== | ||
- | To restart detached PHP processes for the account (vhost) level, you can touch a ''.lsphp_restart.txt'' file under the user's home directory: | + | To restart detached PHP processes for the account (vhost) level, you can touch a ''.lsphp_restart.txt'' file under the user's home directory, such as /home/USER1/ on cpanel/WHM server: |
touch <user_home_dir>/.lsphp_restart.txt | touch <user_home_dir>/.lsphp_restart.txt | ||
+ | | ||
+ | After the ''.lsphp_restart.txt'' was created, the user's PHP should be restarted when next request comes. The file ''.lsphp_restart.txt'' won't be removed after the creation. LSWS only checks the timestamp of the file to decide if the user's detached PHP needs to be restarted or not. You can manually remove it if you want but not necessary. Every time you want to restart that user's detached PHP, you can just touch again no matter it exists or not to refresh the timestamp. | ||
| | ||
To make it compatible with CloudLinux mod_lsapi CRIU feature, server will restart PHP by ''mod_lsapi_reset_me'' as well | To make it compatible with CloudLinux mod_lsapi CRIU feature, server will restart PHP by ''mod_lsapi_reset_me'' as well |