Cannot load plugin mod_fastcgi more than once, please fix your config
Added by lormdonkey about 13 years ago
I am trying to get php5 running on my lighttpd server but I keep getting this error message :
Reloading web server configuration: lighttpd2012-02-11 01:20:46: (plugin.c.131) Cannot load plugin mod_fastcgi more than once, please fix your config (we may not accept such configs in future releases
My /etc/lighttpd/lighttpd.conf
looks like that :
server.modules = ( "mod_access", "mod_alias", "mod_compress", "mod_redirect", "mod_fastcgi", # "mod_rewrite", ) server.document-root = "/var/www" 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" index-file.names = ( "index.php", "index.html", "index.htm", "default.htm", " index.lighttpd.html" ) url.access-deny = ( "~", ".inc" ) static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) server.port = 81 server.use-ipv6 = "disable" dir-listing.encoding = "utf-8" server.dir-listing = "enable" compress.cache-dir = "/var/cache/lighttpd/compress/" compress.filetype = ( "application/x-javascript", "text/css", "text/html", "text/plain" ) include_shell "/usr/share/lighttpd/create-mime.assign.pl" include_shell "/usr/share/lighttpd/include-conf-enabled.pl" fatscgi.server = ( ".php" => (( "bin-path" => "/usr/bin/php5-cgi", "socket" => "/tmp/php.socket" )) )
And also when I change (or remove) server.port = 80
then I get the error that the port is already in use.
Replies (4)
RE: Cannot load plugin mod_fastcgi more than once, please fix your config - Added by nitrox about 13 years ago
Does include_shell "/usr/share/lighttpd/include-conf-enabled.pl" try to load the mod_fastcgi in any file too?
RE: Cannot load plugin mod_fastcgi more than once, please fix your config - Added by lormdonkey about 13 years ago
This is /usr/share/lighttpd/include-conf-enabled.pl
#!/usr/bin/perl -wl use strict; use File::Glob ':glob'; my $confdir = shift || "/etc/lighttpd/"; my $enabled = "conf-enabled/*.conf"; chdir($confdir); my @files = bsd_glob($enabled); for my $file (@files) { print "include \"$file\""; }
RE: Cannot load plugin mod_fastcgi more than once, please fix your config - Added by nitrox about 13 years ago
Yes, this loads files from "/etc/lighttpd/conf-enabled/", and there´s probably a file that holds mod_fastcgi. Just comment mod_fastcgi like you did already with mod_rewrite if thats the case.
RE: Cannot load plugin mod_fastcgi more than once, please fix your config - Added by lormdonkey about 13 years ago
Ok, thanks. That helped.