Closed adaliszk closed 5 years ago
Hmm, it's there without any problem so I close this because the problem is different:
ls -la /var/lib/litespeed/admin
drwxr-xr-x 13 root root 4096 Jul 27 09:46 .
drwxr-xr-x 1 root root 4096 Jul 27 09:46 ..
drwxr-xr-x 5 root root 4096 Jul 27 09:46 Example
-rw-r--r-- 1 root root 7 Apr 9 08:14 VERSION
drwxr-xr-x 2 root root 4096 Jul 27 09:46 add-ons
drwxr-xr-x 7 root root 4096 Jul 27 09:46 admin
drwxr-xr-x 2 litespee litespee 4096 Jul 27 09:46 backup
drwxr-xr-x 2 root root 4096 Jul 27 09:46 bin
drwxr-xr-x 2 litespee litespee 4096 Jul 27 09:46 cachedata
lrwxrwxrwx 1 root root 14 Jul 27 09:46 conf -> /etc/litespeed
drwxr-xr-x 6 root root 4096 Jul 27 09:46 docs
drwxr-xr-x 2 root root 4096 Jul 27 09:47 fcgi-bin
lrwxrwxrwx 1 root root 18 Jul 27 09:46 logs -> /var/log/litespeed
drwxr-xr-x 2 root root 4096 Jul 27 09:46 modules
drwxr-xr-x 3 root root 4096 Jul 27 09:46 share
drwxr-xr-x 3 litespee litespee 4096 Jul 27 09:46 tmp
total 28
ls -la /var/lib/litespeed/admin
drwxr-xr-x 7 root root 4096 Jul 27 09:46 .
drwxr-xr-x 13 root root 4096 Jul 27 09:46 ..
drwx--x--- 3 root root 4096 Jul 27 09:46 cgid
lrwxrwxrwx 1 root root 20 Jul 27 09:46 conf -> /etc/litespeed/admin
drwxr-xr-x 2 root root 4096 Jul 27 09:46 fcgi-bin
lrwxrwxrwx 1 root root 11 Jul 27 09:46 html -> ./html.open
drwxr-xr-x 5 root root 4096 Jul 27 09:46 html.open
lrwxrwxrwx 1 root root 24 Jul 27 09:46 logs -> /var/log/litespeed/admin
drwxr-xr-x 2 root root 4096 Jul 27 09:46 misc
drwx--x--- 2 litespee litespee 4096 Jul 27 09:46 tmp
total 8
ls -la /var/lib/litespeed/admin/cgi-bin
drwxr-xr-x 2 root root 4096 Jul 27 09:46 .
drwxr-xr-x 7 root root 4096 Jul 27 09:46 ..
lrwxrwxrwx 1 root root 15 Jul 27 09:46 admin_php -> /usr/bin/lsphp7
Instead of executing lswsctrl via CMD ["/var/lib/litespeed/bin/lswsctrl", "start"]
, it would be better and more resilient to use something like runit
or a bit more resources intense supervisord
. These images use runit.
Yeah it would be nice, can I set that up with a non-root user?
Yes, can be done...
Okay, because there is one piece which is not mentioned here is that I need to make it work in a kubertenes environment where we using namespace users. But one issue at a time ;)
I've wanted to use the litespeed but looks like it's not quite working with the current package. The problem seems to that while the
php7.*-litespeed
contains thelsphp
it doesn't have the/var/lib/litespeed/admin/fcgi-bin/admin_php
Dockerfile:
Log: