Neos Installation Lighttpd

As I am new to this forum: Hello to all.

I fail to install Neos locally on my Laptop. As webserver I use Lighttpd.

Lighttpd doesn’t speak .htacces so I have to provide the rewrite rules on my own.

This is how my vhost entry looks like:

$HTTP["host"] =~ "xxx\.dev" {
    server.document-root = "/var/www/html/xxx.dev/Web"
    url.rewrite-if-not-file = (
         "^/$" => "index.php",
         "^/(?!.+\.php)[^\?]+(\?.*)?" => "index.php/$1$2",
         "^(/[^\?]*)(\?.*)?" => "/index.php$1$2",
    )
}

After I call the setup script and provide the password from: /var/www/html/xxx.dev/Data/SetupPassword.txt I get the following error message:

Database Error

Sorry, we detected an error with your database. Check your log files in Data/Logs/ for more information.*
#0: An error occurred in the Database Abstraction Layer.
You might want to configure or check your database configuration in the setup.
Go to setup

Obviously this is ridiculous cause the setup didn’t bring me to the point where I can provide my database credentials. The script seems to call http://xxx.dev/index.php/setup/login/authenticate and the webserver gives me an error 500. So it seems the rewrite rules are incorrect.

Following question:

  • Can someone provide a working set of rewrite rules for combination lighttpd /neos
  • Are some Neos developers here? Can they provide these rules in the official documentation?

Thanks in advance.

I don’t use Lighttpd since ages (and I don’t know any other core dev that use Lighttpd, but maybe i’m wrong), now only nginx from my side.

Maybe this can help

And based on the URL for the setup you are missing ENV variables too. in apache:

SetEnv FLOW_REWRITEURLS 1
SetEnv FLOW_CONTEXT "Development"  (or Production, ...)

If you find a valid configuration, we can add it to the official documentation.

If lighttpd is returning a 500 error, then you probably want to check lighttpd error logs. It’s likely that some PHP module is missing and startup of the program fails. This should show up in the error log.

Also, you don’t include your whole lighttpd config in your post, so make sure that you have CGI or FastCGI enabled and configured properly to run index.php.