Skip to content

Instantly share code, notes, and snippets.

@git-bhanu
Last active December 9, 2021 15:22
Show Gist options
  • Save git-bhanu/535e758ae122aec346b81ac8c232b3cb to your computer and use it in GitHub Desktop.
Save git-bhanu/535e758ae122aec346b81ac8c232b3cb to your computer and use it in GitHub Desktop.
OLS droplet configuration settings.

PHP INI changes:

upload_max_filesize = 64M
max_file_uploads = 200
post_max_size = 64M
memory_limit = 2000M
max_execution_time = 120

Kill PHP Process and Restart Commands

killall lsphp
killall lsphpnew
service lsws restart
/usr/local/lsws/bin/lswsctrl restart
sudo systemctl restart lsws

WebAdmin Changes

Go to Server Configuration External App Tab Edit lsphp with following values (for $5 droplet)

Max Connections	
2000
Environment	
PHP_LSAPI_CHILDREN=2000
LSAPI_AVOID_FORK=200M
PHP_LSAPI_MAX_REQUESTS=10000

Gracefull Restart System.

Error file locations

cd /usr/local/lsws/logs

Logs can be of following types:

  1. access.log
  2. error.log
  3. lsrestart.log
  4. stderr.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment