Project

General

Profile

Actions

Bug #3184

closed

UserDir not working under Mint 21.1

Added by Claus over 1 year ago. Updated over 1 year ago.

Status:
Invalid
Priority:
Normal
Category:
mod_userdir
Target version:
-
ASK QUESTIONS IN Forums:
No

Description

Hi
We published a Lighttpd installation instruction for a web programmers community and so didn't have any issue with it for Linux Mint distros up to version 20.3 and Lighty up to V1.4.55. The instructions include the activation of mod_cgi, mod_fastcgi and mod_userdir. Me myself and somebody else are now facing the problem, that the userdir doesn't work any longer under Mint 21 Vanessa. Firefox gets the response "404 Not Found". This applies for static HTML-pages as well as for CGI-scripts.

I found that somebody else announced in this community that he has the same problem under Ubuntu Studio 22.04: https://redmine.lighttpd.net/boards/2/topics/10778
Unfortunately the thread is listed under "Solved", although the user was simply persuaded to use the standard directories which also work well on our platforms.

The installed version of Lighty under Mint 21 is 1.4.63. The daemon status is the following:

 lighttpd.service - Lighttpd Daemon
     Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2023-01-11 17:04:10 CET; 22s ago
    Process: 754 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
   Main PID: 909 (lighttpd)
      Tasks: 6 (limit: 4560)
     Memory: 17.3M
        CPU: 334ms
     CGroup: /system.slice/lighttpd.service
             ├─909 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
             ├─914 /usr/bin/php-cgi
             ├─916 /usr/bin/php-cgi
             ├─917 /usr/bin/php-cgi
             ├─918 /usr/bin/php-cgi
             └─919 /usr/bin/php-cgi

Jan 11 17:04:10 claus-VirtualBox systemd[1]: Starting Lighttpd Daemon...
Jan 11 17:04:10 claus-VirtualBox lighttpd[754]: 2023-01-11 17:04:10: (configfile.c.426) Warning: mod_auth should be listed in server.modules before dynamic backends such as mod_cgi
Jan 11 17:04:10 claus-VirtualBox lighttpd[754]: 2023-01-11 17:04:10: (configfile.c.426) Warning: mod_auth should be listed in server.modules before dynamic backends such as mod_fastcgi
Jan 11 17:04:10 claus-VirtualBox systemd[1]: Started Lighttpd Daemon.
Jan 11 17:04:11 claus-VirtualBox lighttpd[909]: 2023-01-11 17:04:10: (configfile.c.426) Warning: mod_auth should be listed in server.modules before dynamic backends such as mod_cgi
Jan 11 17:04:11 claus-VirtualBox lighttpd[909]: 2023-01-11 17:04:10: (configfile.c.426) Warning: mod_auth should be listed in server.modules before dynamic backends such as mod_fastcgi

The static html-page is called in Firefox with "http://localhost/~claus/test.html". The directory ~/public_html as well as test.html are owned by claus and its octal rights are 755. I noted that sudo apt install lighttpd under Mint 21 now also installs lightpd-mod-deflate and lighttpd-mod-openssl. A deinstallation of the latter didn't solve the problem.

These are the only modifications (from the standard) of all involved config files:
For /etc/lighttpd/lighttpd.conf: static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".py", ".cgi", ".gbs", ".gbw", ".gambas" )
For /etc/php/7.4/cli/php.ini: cgi.fix_pathinfo=1

I report this as a bug and would be happy for any suggestion.

My best wishes for 2023 and
with best regards
Claus

Actions #1

Updated by gstrauss over 1 year ago

  • Description updated (diff)
Actions #2

Updated by gstrauss over 1 year ago

  • Status changed from New to Invalid
  • Target version deleted (1.4.xx)

lighttpd source code test suite runs tests which verify that mod_userdir works.

Additionally, I have just manually verified that lighttpd mod_userdir works on Fedora with a typical config userdir.path = "public_html"

Your issue is very likely some configuration issue on Mint (yours or Mint's)
Sorry, I do not run Mint and this is not a support site for Mint.
That you titled your post "UserDir not working under Mint 21.1" should have been a hint that your post probably belongs on a Mint support forum.

These are the only modifications (from the standard) of all involved config files:

FYI: I do not run Mint. You have made a possibly incorrect assumption that what Mint provides is "standard". It may be the default config on Mint, but I have no visibility into that. Let me repeat: while you provided a lot of details here, you did not include your config. Instead, you incorrectly assumed that I should know what it is.

While you have provided lots of details here, a detail that would be useful to anybody trying to help you would be strace of lighttpd for a userdir request.

As this does not appear to be a bug in lighttpd, I am closing this invalid issue.

If you would like non-Mint-specific troubleshooting help, please post in the lighttpd support forums (Forums tab in menubar at top of page) with additional information including your config and an strace. See How to get help

Actions

Also available in: Atom