I think I found the issue actually. I am using monit and was getting the PID from /tmp/lshttpd/lshttpd.pid. For whatever reason this was causing problems. Instead of monitoring the process I'm gonna check a host now. Seems to be working properly now.
Just updated to 1.6.9 from 1.5.8. I can't restart OLS now. I'm seeing this error.
Refusing to accept PID outside of service control group, acquired through unsafe symlink chain: /tmp/lshttpd/lshttpd.pid
I'm on Centos 7.
Yeah I ended up doing that. This worked for me.
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{THE_REQUEST} \s/([^?.]+)(?:\.php)?[?\s] [NC]
RewriteRule ^ - [H=application/x-httpd-lsphp73]
It's in a vhost template and the info says this...
Syntax: It can be an absolute path or path relative to $SERVER_ROOT, $VH_ROOT, or $DOC_ROOT. $DOC_ROOT is the default relative path, and can be omitted.
So I assumed I can leave that blank as $DOC_ROOT is the default value.
I've followed the guide here...
https://openlitespeed.org/kb/setup-per-directory-file-php/
...and am using the alternate rewrite method. However, all images, css files, js files, etc are throwing either a 500 error or this...
Resource interpreted as Stylesheet but transferred with MIME type...