Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Lighttpd + squirrelmail = no go? [solved]

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
OneInchMen
n00b
n00b
User avatar
Posts: 70
Joined: Thu Sep 30, 2004 2:24 pm
Location: Tilburg, the Netherlands
Contact:
Contact OneInchMen
Website

Lighttpd + squirrelmail = no go? [solved]

  • Quote

Post by OneInchMen » Mon May 01, 2006 9:23 am

Hi there,

This weekend I decided to switch from Apache2 to Lighttpd. I run a little P3/256MB server at home, so Lighty seems the better choice when it comes to memory and speed... I also like the the 'simple vhosts' option...

Compiling the latest keyword-masked version went fine. Configuration was really simple and I got it running perfectly. All my own sites (mysql backed php) work perfectly (and faster?) except for squirrelmail... I also tried the stable version, to no avail...

I can log in to Squirrelmail, but when showing the folder list & contents, only the frames page is loaded an nothing happens after that. (I only get the frame border and 2 empty panes)

Does anybody have squirrelmail running under Lighty?

-thx!-

Simple vhost config:

Code: Select all

$HTTP["host"] !~ "^(mail\.domain\.ext)$" {
  simple-vhost.server-root   = "/var/www/domain.ext"
  simple-vhost.default-host  = "default"
  simple-vhost.document-root = "public"
}

$HTTP["host"] == "mail.domain.ext" {
  server.document-root = "/var/www/localhost/htdocs/squirrelmail/"
}
PS: src/configtest.php outputs: Congratulations, your SquirrelMail setup looks fine to me!
Last edited by OneInchMen on Mon May 01, 2006 3:20 pm, edited 1 time in total.
--> http://www.oneinchmen.com <--
Top
hegga
Apprentice
Apprentice
Posts: 210
Joined: Wed Jun 04, 2003 10:30 am
Location: Norway
Contact:
Contact hegga
Website

  • Quote

Post by hegga » Mon May 01, 2006 12:32 pm

i can't imagine that there should be any problems to setup squirrelmail with lighttpd.
i will try this on my server with lighttpd, when i get the time. does lighttpd say anything
in the logs? or is it possible to run squirrelmail with debug?
hegga
Top
OneInchMen
n00b
n00b
User avatar
Posts: 70
Joined: Thu Sep 30, 2004 2:24 pm
Location: Tilburg, the Netherlands
Contact:
Contact OneInchMen
Website

  • Quote

Post by OneInchMen » Mon May 01, 2006 12:42 pm

Aha! Found something in error.log:

Code: Select all

2006-05-01 14:37:08: (log.c.75) server started
2006-05-01 14:39:53: (mod_fastcgi.c.2723) establishing connection failed: Connection refused socket: tcp:127.0.0.1:1029
2006-05-01 14:39:53: (mod_fastcgi.c.2723) establishing connection failed: Connection refused socket: tcp:127.0.0.1:1028
2006-05-01 14:39:53: (mod_fastcgi.c.2723) establishing connection failed: Connection refused socket: tcp:127.0.0.1:1027
2006-05-01 14:39:53: (mod_fastcgi.c.2723) establishing connection failed: Connection refused socket: tcp:127.0.0.1:1026
2006-05-01 14:39:55: (mod_fastcgi.c.3457) all handlers for  /src/webmail.php on .php are down.
2006-05-01 14:39:59: (mod_fastcgi.c.2669) fcgi-server re-enabled: tcp:127.0.0.1:1029
2006-05-01 14:39:59: (mod_fastcgi.c.2669) fcgi-server re-enabled: tcp:127.0.0.1:1028
2006-05-01 14:39:59: (mod_fastcgi.c.2669) fcgi-server re-enabled: tcp:127.0.0.1:1027
2006-05-01 14:39:59: (mod_fastcgi.c.2669) fcgi-server re-enabled: tcp:127.0.0.1:1026
fastcgi use-flag is disabled:

Code: Select all

www-servers/lighttpd-1.4.11-r1  +bzip2 -doc -fam -fastcgi -gdbm -ipv6 -ldap -lfs -lua +memcache -minimal +mysql +pcre +php -rrdtool +ssl -test -webdav +xattr 0 kB [1]
--> http://www.oneinchmen.com <--
Top
hegga
Apprentice
Apprentice
Posts: 210
Joined: Wed Jun 04, 2003 10:30 am
Location: Norway
Contact:
Contact hegga
Website

  • Quote

Post by hegga » Mon May 01, 2006 1:32 pm

do you have fastcgi enabled in lighttpd.conf?
hegga
Top
OneInchMen
n00b
n00b
User avatar
Posts: 70
Joined: Thu Sep 30, 2004 2:24 pm
Location: Tilburg, the Netherlands
Contact:
Contact OneInchMen
Website

  • Quote

Post by OneInchMen » Mon May 01, 2006 1:49 pm

lighttpd.conf:

Code: Select all

 cat /etc/lighttpd/lighttpd.conf |grep -i fast
# uncomment for php/fastcgi support
include "mod_fastcgi.conf"
mod_fastcgi.conf:

Code: Select all

server.modules += ("mod_fastcgi")
fastcgi.server = ( ".php" =>
                            ( "localhost" =>
                                    ( "host" => "127.0.0.1",
                                            "port" => 1026,
                                            "bin-path" => "/usr/bin/php-cgi"
                                    )
                            )
                    )
/usr/bin/php-cgi

Code: Select all

la /usr/bin/php-cgi
lrwxrwxrwx 1 root root 25 Feb 16 12:55 /usr/bin/php-cgi -> /usr/lib/php5/bin/php-cgi
emerge -pv dev-lang/php

Code: Select all

[ebuild   R   ] dev-lang/php-5.1.2-r1  -adabas -apache -apache2 -bcmath -berkdb -birdstep +bzip2 -calendar -cdb +cgi -cjk -cli +crypt -ctype -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -exif -fastbuild -fdftk -filepro -firebird -flatfile +force-cgi-redirect -frontbase +ftp +gd -gd-external -gdbm -gmp -hardenedphp -hash -hyperwave-api -iconv +imap -informix -inifile -interbase -iodbc -ipv6 -java-external -kerberos -ldap -libedit -mcve -memlimit -mhash -ming -msql -mssql +mysql -mysqli -ncurses -nls -oci8 -oci8-instant-client -odbc -pcntl +pcre -pdo -pdo-external -pic -posix -postgres -qdbm +readline -recode -reflection -sapdb -sasl +session -sharedext -sharedmem -simplexml -snmp -soap -sockets -solid -spell -spl -sqlite +ssl -sybase -sybase-ct -sysvipc -threads -tidy -tokenizer +truetype +unicode -vm-goto -vm-switch -wddx -xml -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz +zip +zlib 0 kB
ps ax|grep php

Code: Select all

13671 ?        Ss     0:00 /usr/bin/php-cgi
13673 ?        Ss     0:00 /usr/bin/php-cgi
13674 ?        Ss     0:00 /usr/bin/php-cgi
13675 ?        S      0:00 /usr/bin/php-cgi
13676 ?        S      0:00 /usr/bin/php-cgi
13677 ?        S      0:00 /usr/bin/php-cgi
13678 ?        Ss     0:00 /usr/bin/php-cgi
13679 ?        S      0:00 /usr/bin/php-cgi
13701 pts/0    S+     0:00 grep php
--> http://www.oneinchmen.com <--
Top
hegga
Apprentice
Apprentice
Posts: 210
Joined: Wed Jun 04, 2003 10:30 am
Location: Norway
Contact:
Contact hegga
Website

  • Quote

Post by hegga » Mon May 01, 2006 2:10 pm

i see, but should not lighttpd be compiled with the fastcgi use flag then?
hegga
Top
OneInchMen
n00b
n00b
User avatar
Posts: 70
Joined: Thu Sep 30, 2004 2:24 pm
Location: Tilburg, the Netherlands
Contact:
Contact OneInchMen
Website

  • Quote

Post by OneInchMen » Mon May 01, 2006 2:17 pm

Been there, done that... I didn't see the errors posted above again, but nothing changed in squirrelmail though...

So: no errors anymore, just squirrelmail dying after login...
--> http://www.oneinchmen.com <--
Top
hegga
Apprentice
Apprentice
Posts: 210
Joined: Wed Jun 04, 2003 10:30 am
Location: Norway
Contact:
Contact hegga
Website

  • Quote

Post by hegga » Mon May 01, 2006 2:59 pm

can this help?

http://lists.debian.org/debian-isp/2003 ... 00309.html
hegga
Top
OneInchMen
n00b
n00b
User avatar
Posts: 70
Joined: Thu Sep 30, 2004 2:24 pm
Location: Tilburg, the Netherlands
Contact:
Contact OneInchMen
Website

  • Quote

Post by OneInchMen » Mon May 01, 2006 3:20 pm

Thanx! That did help! Although the proposed solution is completely different. I did have a corrupt config.php which worked on apache2, but failed on Lighttpd (lighty).

When re-emerging squirrelmail, I noticed 7 of these lines flashing by:

Code: Select all

CONFIG_PROTECT="/var/www/localhost/htdocs/squirrelmail//plugins/secure_login" etc-update
After doing so, squirrelmail started working again!!!

Why didn't this show up at etc-update? It seems that etc/config file management is somewhat crappy on gentoo (loving the rest though)

I'm going to strip all the use-flags and packages I've added in the process one-by-one and see if anything changes...

Thank you all!!!
--> http://www.oneinchmen.com <--
Top
Post Reply

9 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic