Installation instruction with Lighttpd? #402

Closed
opened 2026-02-20 11:01:56 -05:00 by deekerman · 1 comment
Owner

Originally created by @mvondemhagen on GitHub (Mar 5, 2021).

Can anyone give a hint how to get this running under lighttpd?
Lighttpd doesn't support .htaccess, and that seems to be important.
I get a 404 for http://$url/items/create and from googling, that seems to be .htaccess related.

Originally created by @mvondemhagen on GitHub (Mar 5, 2021). Can anyone give a hint how to get this running under lighttpd? Lighttpd doesn't support .htaccess, and that seems to be important. I get a 404 for http://$url/items/create and from googling, that seems to be .htaccess related.
deekerman 2026-02-20 11:01:56 -05:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@gstrauss commented on GitHub (Mar 9, 2021):

There is a single file: public/.htaccess which contains some Apache directives. To use lighttpd, those directives would need to be translated to lighttpd syntax and put into lighttpd.conf. I am not familiar with Heimdall, but in the public/.htaccess, I see a small number of items, and most are probably options. The primary functionality of directing requests to index.php can be achieved in lighttpd with lighttpd mod_rewrite

server.modules += ("mod_rewrite")
url.rewrite-if-not-file = ("" => "/index.php${url.path}${qsa}")

and you'll have to configure lighttpd mod_cgi to run PHP as CGI, or lighttpd mod_fastcgi to run PHP via FastCGI. Running PHP via FastCGI and using PHP-FPM is the recommended option.

@gstrauss commented on GitHub (Mar 9, 2021): There is a single file: `public/.htaccess` which contains some Apache directives. To use lighttpd, those directives would need to be translated to lighttpd syntax and put into lighttpd.conf. I am not familiar with Heimdall, but in the `public/.htaccess`, I see a small number of items, and most are probably options. The primary functionality of directing requests to index.php can be achieved in lighttpd with [lighttpd mod_rewrite](https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModRewrite) ``` server.modules += ("mod_rewrite") url.rewrite-if-not-file = ("" => "/index.php${url.path}${qsa}") ``` and you'll have to configure [lighttpd mod_cgi](https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModCGI) to run PHP as CGI, or [lighttpd mod_fastcgi](https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModFastCGI) to run PHP via FastCGI. Running PHP via FastCGI and using PHP-FPM is the recommended option.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Heimdall#402
No description provided.