Quick list of handy commands we use internally to diagnose or fix things on the server.
PHP commands:
- Check available PHP versions on server:
for version in $(ls /usr/local/lsws|grep lsphp); do echo ""; /usr/local/lsws/${version}/bin/php -v ; done
- Installing all PHP versions on server:
apt-get install -y lsphp?? lsphp??-common lsphp??-dev lsphp??-pear lsphp??-mysql lsphp??-imap lsphp??-curl lsphp??-memcached lsphp??-redis lsphp*
- Restart OLS after installing new PHP versions:
killall -9 lsphp && service lsws restart