You are not logged in.

#1 2008-02-16 16:09:43

metalfan
Member
Registered: 2007-11-22
Posts: 99

[SOLVED]dokuwiki with lighttpd or apache

Hi,

i would like to install dokuwiki with lighttpd and optional fastcgi.
theres a wiki page for fastcgi/lighttpd but i guess its wrong:
http://wiki.archlinux.org/index.php/Fas … d_lighttpd

According to that you need to install fcgi and lighttpd and youre done...

I guess thats plain wrong because mod_fcgi is commented out in the lighttpd.conf.

What i tried:

1. pacman -S lighttpd fcgi
2. create a simple html testpage to see if the server works - it does
3. added:

fastcgi.server = ( ".php" => ((
                     #"bin-path" => "/path/to/php-cgi",    #changed that to the line below   
                     "bin-path" => "/usr/bin/cgi-fcgi",       
                     "socket" => "/tmp/php.socket"
                 )))

to lighttpd.conf, according to: http://trac.lighttpd.net/trac/wiki/Tuto … ttpdAndPHP

lighttpds error.log after server restart:

Missing -connect <connName>
Usage:
    cgi-fcgi -f <cmdPath> , or
    cgi-fcgi -connect <connName> <appPath> [<nServers>] , or
    cgi-fcgi -start -connect <connName> <appPath> [<nServers>] , or
    cgi-fcgi -bind -connect <connName> ,
where <connName> is either the pathname of a UNIX domain socket
or (if -bind is given) a hostName:portNumber specification
or (if -start is given) a :portNumber specification (uses local host).
2008-02-16 17:36:45: (mod_fastcgi.c.1025) the fastcgi-backend /usr/bin/cgi-fcgi failed to start:
2008-02-16 17:36:45: (mod_fastcgi.c.1029) child exited with status 1 /usr/bin/cgi-fcgi
2008-02-16 17:36:45: (mod_fastcgi.c.1032) If you're trying to run PHP as a FastCGI backend, make sure you're using the FastCGI-enabled version.
You can find out if it is the right one by executing 'php -v' and it should display '(cgi-fcgi)' in the output, NOT '(cgi)' NOR '(cli)'.
For more information, check http://trac.lighttpd.net/trac/wiki/Docs … -programIf this is PHP on Gentoo, add 'fastcgi' to the USE flags.
2008-02-16 17:36:45: (mod_fastcgi.c.1336) [ERROR]: spawning fcgi failed.
2008-02-16 17:36:45: (server.c.895) Configuration of plugins failed. Going down.



What the fuck?

Last edited by metalfan (2008-02-17 00:03:28)

Offline

#2 2008-02-16 19:38:28

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: [SOLVED]dokuwiki with lighttpd or apache

I've got Dokuwiki running successfully with lighttpd and remember having some fun and games setting it up.

In lighttpd.conf, the following modules are enabled:

  mod_fastcgi
  mod_cgi

static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) is uncommented

And I added the following (which is different from yours):

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


This thread also helped sort out a php related problem.

Offline

#3 2008-02-17 00:02:57

metalfan
Member
Registered: 2007-11-22
Posts: 99

Re: [SOLVED]dokuwiki with lighttpd or apache

aep from #archlinux mentioned that lighttpd is vulnerable for at least one dos/ddos attack, so i used dokuwiki with apache.

apache: default arch config, uncomment #LoadModule php5_module             modules/libphp5.so
and keep the default html dir for testing, you can of course modify it later if this works.
Restart the server.

Then you extract the dokuwiki....tar.gz package to /home/httpd/html and open http://your-ip/dokuwiki..../install.php
I know dokuwiki is also in the tree, but it gets extracted somewhere else - you can of course copy the files.

That should do it.

greets

Offline

Board footer

Powered by FluxBB