Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
Lighttpd + Dokuwiki - Won't start, include file not found
Avatar
PrismaticVoid #1
Member for some days · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: Lighttpd + Dokuwiki - Won't start, include file not found
I'm using DokuWiki on Linux Mint 19. Had a driver issue and had to reinstall my operating system, but after reinstalling, I can't get Dokuwiki to start anymore.

I'm using Lighttpd to run it. My startup command is

sudo lighttpd -f wiki.conf

wiki.conf consists of:

server.modules = (
    "mod_access",
    "mod_alias",
    "mod_compress",
     "mod_redirect",
    "mod_fastcgi",
    "mod_setenv"
)

server.document-root        = "/home/void/wiki/fey/doku"
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
server.errorlog             = "/home/void/wiki/fey/error.log"
server.pid-file             = "/var/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"
server.port                 = 244


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" )

fastcgi.server = (".php" => ((
    "bin-path" => "/usr/bin/php-cgi",
    "socket" => "/tmp/php.socket"
)))
cgi.assign = (".php" => "/usr/bin/php")

setenv.add-response-header = ("Access-Control-Allow-Origin"=> "*")

# default listening port for IPv6 falls back to the IPv4 port
## Use ipv6 if available
#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"

Trying to start the server results in this error message being printed:

2019-11-09 04:07:15: (configfile.c.1232) include file not found:  conf-enabled/10-cgi.conf
2019-11-09 04:07:15: (configfile.c.1154) source: /usr/share/lighttpd/include-conf-enabled.pl line: 2 pos: 8 parser failed somehow near here: (EOL)
2019-11-09 04:07:15: (configfile.c.1154) source: wiki.conf line: 39 pos: 1 parser failed somehow near here: (EOL)

I've verified that the file not being found exists. Looking at the files where the parser fails, I can't find anything strange there either.

Any help is greatly appreciated.
This post was edited on 2019-11-10, 02:28 by PrismaticVoid.
Avatar
schplurtz (Moderator) #2
Member since Nov 2009 · 493 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
I absolutely don't know lighttpd.
2019-11-09 04:07:15: (configfile.c.1232) include file not found:  conf-enabled/10-cgi.conf
The file is not found. I see 2 possibilities :

1) The file conf-enabled/10-cgi.conf is a symlink that points to a non existent file. Where is this conf-enabled directory ? I guess somewhere between /etc/lighttpd , /usr/share/lighttpd/ , and the current directory. Maybe you are missing a module or lighttpd-foobar package. Maybe this is the remnants of a previous installation that you don't remember clearly... Maybe you should just remove this dangling symlink.

2) You have to change directory before you run your start command so that the conf-enabled/10-cgi.conf can be found ; but I doubt that.
Avatar
schplurtz (Moderator) #3
Member since Nov 2009 · 493 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
hum I did not read your post with the attention it needed. Sorry. Is the file readeable by lighttp ?
Avatar
PrismaticVoid #4
Member for some days · 3 posts
Group memberships: Members
Show profile · Link to this post
The full path for the file is /etc/lighttpd/conf-enabled/10-cgi.conf. It's a symlink to /etc/lighttpd/conf-available/10-cgi.conf, and I've verified that file exists.

Both files are owned by root, so lighttpd should be able to read both of them.
Avatar
MartinR #5
Member since Jul 2015 · 159 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
Both files are owned by root, so lighttpd should be able to read both of them.
Eh?  Unless lighttpd is running as root that's a non-sequitur, and if a webserver is running as root be thankful that it doesn't start!  I run Apache, so there's a bit of guesswork here; is there a user called lighttpd or something similar?  If so try # su - lighttpd and look for permission problems.
Avatar
PrismaticVoid #6
Member for some days · 3 posts
Group memberships: Members
Show profile · Link to this post
Sorry, I'm not great with web or anything, so I don't know best practices. That command doesn't bring anything up.
Avatar
MartinR #7
Member since Jul 2015 · 159 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
I've just run up a Mint VM and installed lighttpd.  The user that was created on my machine was www-data, so:
$ su -
Password:
# vipw
###Change /sbin/nologin to /bin/bash for www-data
# su - www-data
You are now logged in as the user that runs lighttpd, so go and look for the missing/unreadable files.

It's 23:44 in the UK, so I'm off to bed now.  I'll check back tomorrow.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-11-12, 05:39:49 (UTC +01:00)