Project

General

Profile

[Solved] can't start it on Debian unstable

Added by MoonKid over 7 years ago

I am using this on Debian unstable.

lighttpd:
  Installiert:           1.4.43-1
  Installationskandidat: 1.4.43-1
  Versionstabelle:
 *** 1.4.43-1 500
        500 http://httpredir.debian.org/debian unstable/main i386 Packages
        100 /var/lib/dpkg/status

I used the default config commin with the package. I haven't modified it.

This is what systemctl says about it. I don't know how to interpret that.

sudo systemctl status lighttpd
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2016-12-02 19:32:42 CET; 18min ago
 Main PID: 771 (code=exited, status=255)

Dez 02 19:32:40 MONSTER systemd[1]: Starting Lighttpd Daemon...
Dez 02 19:32:41 MONSTER lighttpd[704]: Syntax OK
Dez 02 19:32:41 MONSTER systemd[1]: Started Lighttpd Daemon.
Dez 02 19:32:42 MONSTER systemd[1]: lighttpd.service: Main process exited, code=exited, status=255/n/a
Dez 02 19:32:42 MONSTER systemd[1]: lighttpd.service: Unit entered failed state.
Dez 02 19:32:42 MONSTER systemd[1]: lighttpd.service: Failed with result 'exit-code'.

And the config file

$ cat /etc/lighttpd/lighttpd.conf
server.modules = (
    "mod_access",
    "mod_alias",
    "mod_compress",
     "mod_redirect",
#       "mod_rewrite",
)

server.document-root        = "/var/www/html" 
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

index-file.names            = ( "index.php", "index.html", "index.lighttpd.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.assign.pl" 
include_shell "/usr/share/lighttpd/include-conf-enabled.pl" 


Replies (4)

RE: can't start it on Debian unstable - Added by gstrauss over 7 years ago

Perhaps you do not have proper permissions set on document root or something else?
Please check /var/log/lighttpd/error.log and let us know what you find.

You can also test by manually running lighttpd: $ lighttpd -tt -f /etc/lighttpd.conf

RE: can't start it on Debian unstable - Added by MoonKid over 7 years ago

"permissions on document root"? Sorry, I don't understand what you mean.

The last lines of the log

2016-12-03 09:05:53: (log.c.217) server started 
2016-12-03 09:05:53: (mod_fastcgi.c.1164) the fastcgi-backend /usr/bin/php-cgi failed to start: 
2016-12-03 09:05:53: (mod_fastcgi.c.1168) child exited with status 2 /usr/bin/php-cgi 
2016-12-03 09:05:53: (mod_fastcgi.c.1171) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 
2016-12-03 09:05:53: (mod_fastcgi.c.1511) [ERROR]: spawning fcgi failed. 
2016-12-03 09:05:53: (server.c.1273) Configuration of plugins failed. Going down. 

I don't understand the FastCGI-thing.

1. You should think about if there is a need to use your own log-file beside of the systemd environment.

2. If you won't change that you minimal should give a hint in the systemd-log messages that there is another log file.

RE: can't start it on Debian unstable - Added by MoonKid over 7 years ago

A shoot into the blue: "php-cgi" was the missing Debian package. Now it is working.

RE: can't start it on Debian unstable - Added by gstrauss over 7 years ago

the fastcgi-backend /usr/bin/php-cgi failed to start

You probably want to try starting your PHP script manually from the command line to find out why it won't start. Your PHP installation is probably missing a package required by your script.

You seem fairly eager to dole out advice, yet you confess that you do not understand basic error messages. Please use your favorite search engine to learn more.

    (1-4/4)