Hello,
I’ve tried installing Flarum on OpenLiteSpeed with the following configuration:
Enable Rewrite: Yes
Auto Load from .htaccess: No
Context Static Rewrite Rules:
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
Is this the correct way to set it up?
The problem is that OpenLiteSpeed runs as the user nobody, which has no shell access. So whenever I want to install an extension, I have to do something like this:
chown -R myuser:myuser flarum/
composer require flarum/some-extension
composer install --no-dev --optimize-autoloader
/usr/local/lsws/lsphp83/bin/php flarum cache:clear
chown -R nobody:nogroup flarum/
Is there a better way to handle this on OpenLiteSpeed?