Problems accessing TasmoAdmin

still pihole answering :frowning:

//
websrv4.jpg

pls share your config file

cat /etc/lighttpd/lighttpd.conf

There is no need to do screen prints. You can simple copy you SSH output as txt

now everything is dead.


websrv6.jpg

now config file isn’t found

did you removed? Ok let’s create a new one

nano /etc/lighttpd/lighttpd.conf

An empty file shoud open now. copy all of the following. Use the Select all button

server.modules = (
        "mod_indexfile",
        "mod_setenv",
        "mod_access",
        "mod_alias",
        "mod_redirect",
        "mod_accesslog",
)

server.document-root        = "/var/www"
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
server.errorlog             = "/var/log/lighttpd/error.log"
server.pid-file             = "/var/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"
server.port                 = 80
accesslog.filename          = "/var/log/lighttpd/access.log"

# strict parsing and normalization of URL for consistency and security
# https://redmine.lighttpd.net/projects/lighttpd/wiki/Server_http-parseoptsDetails
# (might need to explicitly set "url-path-2f-decode" = "disable"
#  if a specific application is encoding URLs inside url-path)
server.http-parseopts = (
  "header-strict"           => "enable",# default
  "host-strict"             => "enable",# default
  "host-normalize"          => "enable",# default
  "url-normalize-unreserved"=> "enable",# recommended highly
  "url-normalize-required"  => "enable",# recommended
  "url-ctrls-reject"        => "enable",# recommended
  "url-path-2f-decode"      => "enable",# recommended highly (unless breaks app)
 #"url-path-2f-reject"      => "enable",
  "url-path-dotseg-remove"  => "enable",# recommended highly (unless breaks app)
 #"url-path-dotseg-reject"  => "enable",
 #"url-query-20-plus"       => "enable",# consistency in query string
)

index-file.names            = ( "index.php", "index.html" )
url.access-deny             = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

compress.cache-dir          = "/var/cache/lighttpd/compress/"
compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )

# default listening port for IPv6 falls back to the IPv4 port
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.conf.pl"
include "/etc/lighttpd/conf-enabled/*.conf"

#server.compat-module-load   = "disable"
server.modules += (
        "mod_compress",
        "mod_dirlisting",
        "mod_staticfile",
)

created the file.

[?1l>root@DietPi:~# systemctl restart lighttpd.service
Job for lighttpd.service failed because the control process exited with error code.
See “systemctl status lighttpd.service” and “journalctl -xe” for details.
root@DietPi:~# systemctl status lighthh[Kttpd.service
Unit lighthttpd.service could not be found.
root@DietPi:~# systemctl status lighthttpd.service
Unit lighthttpd.service could not be found.

be careful. there are typos on your status command it is systemctl status lighttpd.service

let’s try to verify whats wrong

/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf

sorry, ssh output wasn’t working.

//

[0;1;31m●[0m lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; disabled; vendor preset: enabled)
   Active: [0;1;31mfailed[0m (Result: exit-code) since Wed 2020-12-30 22:47:37 GMT; 9min ago
  Process: 814 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf [0;1;31m(code=exited, status=255/EXCEPTION)[0m

Dez 30 22:47:37 DietPi systemd[1]: lighttpd.service: Service RestartSec=100ms expired, scheduling restart.
Dez 30 22:47:37 DietPi systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 5.
Dez 30 22:47:37 DietPi systemd[1]: Stopped Lighttpd Daemon.
Dez 30 22:47:37 DietPi systemd[1]: [0;1;39m[0;1;31m[0;1;39mlighttpd.service: Start request repeated too quickly.[0m
Dez 30 22:47:37 DietPi systemd[1]: [0;1;39m[0;1;31m[0;1;39mlighttpd.service: Failed with result 'exit-code'.[0m
Dez 30 22:47:37 DietPi systemd[1]: [0;1;31m[0;1;39m[0;1;31mFailed to start Lighttpd Daemon.[0m
root@DietPi:~#

pls test the configuration

/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
root@DietPi:~# /usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
2020-12-30 22:58:50: (configfile.c.1296) source: /etc/lighttpd/lighttpd.conf line: 2 pos: 30 parser failed somehow near here: url-path-dotseg-remove 
root@DietPi:~#

how does the config file looks like now

cat /etc/lighttpd/lighttpd.conf

should i do another pihole -r for restoring an functional webserver?

//

root@DietPi:~# cat /etc/lighttpd/lighttpd.conf

  "url-path-dotseg-remove"  => "enable",# recommended highly (unless breaks app)
 #"url-path-dotseg-reject"  => "enable",
 #"url-query-20-plus"       => "enable",# consistency in query string
)

index-file.names            = ( "index.php", "index.html" )
url.access-deny             = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

compress.cache-dir          = "/var/cache/lighttpd/compress/"
compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )

# default listening port for IPv6 falls back to the IPv4 port
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.conf.pl"
include "/etc/lighttpd/conf-enabled/*.conf"

#server.compat-module-load   = "disable"
server.modules += (
        "mod_compress",
        "mod_dirlisting",
        "mod_staticfile",
)
root@DietPi:~#

no, pls share the information requested

done.

//

ah i see, config hasn’t fully been pasted.

//

how do i edit the existing file?

edited the file, still not starting.

root@DietPi:~# cat /etc/lighttpd/lighttpd.conf
server.modules = (
        "mod_indexfile",
        "mod_setenv",
        "mod_access",
        "mod_alias",
        "mod_redirect",
        "mod_accesslog",
)

server.document-root        = "/var/www"
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
server.errorlog             = "/var/log/lighttpd/error.log"
server.pid-file             = "/var/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"
server.port                 = 80
accesslog.filename          = "/var/log/lighttpd/access.log"

# strict parsing and normalization of URL for consistency and security
# https://redmine.lighttpd.net/projects/lighttpd/wiki/Server_http-parseoptsDetails
# (might need to explicitly set "url-path-2f-decode" = "disable"
#  if a specific application is encoding URLs inside url-path)
server.http-parseopts = (
  "header-strict"           => "enable",# default
  "host-strict"             => "enable",# default
  "host-normalize"          => "enable",# default
  "url-normalize-unreserved"=> "enable",# recommended highly
  "url-normalize-required"  => "enable",# recommended
  "url-ctrls-reject"        => "enable",# recommended
  "url-path-2f-decode"      => "enable",# recommended highly (unless breaks app)
 #"url-path-2f-reject"      => "enable",
  "url-path-dotseg-remove"  => "enable",# recommended highly (unless breaks app)
 #"url-path-dotseg-reject"  => "enable",
 #"url-query-20-plus"       => "enable",# consistency in query string
)

index-file.names            = ( "index.php", "index.html" )
url.access-deny             = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

compress.cache-dir          = "/var/cache/lighttpd/compress/"
compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )

# default listening port for IPv6 falls back to the IPv4 port
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.conf.pl"
include "/etc/lighttpd/conf-enabled/*.conf"

#server.compat-module-load   = "disable"
server.modules += (
        "mod_compress",
        "mod_dirlisting",
        "mod_staticfile",
)
root@DietPi:~#



root@DietPi:~# cat /etc/lighttpd/lighttpd.conf
[C[C[C[C[C[C[C[C[C[C[C[C[C[C[Csystemctl status lighttpd.service
[0;1;31m●[0m lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; disabled; vendor preset: enabled)
   Active: [0;1;31mfailed[0m (Result: exit-code) since Wed 2020-12-30 22:47:37 GMT; 25min ago
  Process: 814 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf [0;1;31m(code=exited, status=255/EXCEPTION)[0m

Dez 30 22:47:37 DietPi systemd[1]: lighttpd.service: Service RestartSec=100ms expired, scheduling restart.
Dez 30 22:47:37 DietPi systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 5.
Dez 30 22:47:37 DietPi systemd[1]: Stopped Lighttpd Daemon.
Dez 30 22:47:37 DietPi systemd[1]: [0;1;39m[0;1;31m[0;1;39mlighttpd.service: Start request repeated too quickly.[0m
Dez 30 22:47:37 DietPi systemd[1]: [0;1;39m[0;1;31m[0;1;39mlighttpd.service: Failed with result 'exit-code'.[0m
Dez 30 22:47:37 DietPi systemd[1]: [0;1;31m[0;1;39m[0;1;31mFailed to start Lighttpd Daemon.[0m
root@DietPi:~#

running again.

even tasmoadmin works now. much appreciate your help with a noobie like me. thank you very much!

root@DietPi:~# systemctl restart lighttpd.service
root@DietPi:~# systemctl restart lighttpd.service[1Pstatus[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C
[0;1;32m●[0m lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; disabled; vendor preset: enabled)
   Active: [0;1;32mactive (running)[0m since Wed 2020-12-30 23:14:14 GMT; 1s ago
  Process: 2333 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
 Main PID: 2339 (lighttpd)
    Tasks: 1 (limit: 2182)
   CGroup: /system.slice/lighttpd.service
           └─2339 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf

Dez 30 23:14:13 DietPi systemd[1]: Starting Lighttpd Daemon...
Dez 30 23:14:14 DietPi systemd[1]: Started Lighttpd Daemon.
root@DietPi:~#

ok I guess some copy / past issues on creating the new file?

i created a new config file. seems like copy & paste issue.

everything started with pihole -r.

again, many thanks for helping out with my problem, appreciate it!

be careful using pihole -r. It hast 2 option. One can damage your entire web server as PiHole assume being alone on the world and try to configure the web server alone for PiHole usage.