LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-25-2011, 10:53 PM   #1
DJRcomputing
Member
 
Registered: Mar 2011
Location: /usa/pa/manheim
Distribution: Debian 5 + Xfce
Posts: 64

Rep: Reputation: 6
Question Lighttpd 1.4.28 won't start?!


Fresh install, followed the directions,

# ./configure --with-mysql --with-openssl --with-openssl-libs=/usr/lib (MySQL 5.5.12 & OpenSSL 1.0.0)

Everything seemed to go well enough. Stock lighttpd.conf. However, it won't start on boot. Not even manually via:

# /etc/init.d/lighttpd start
or
# /etc/init.d/lighttpd -f /etc/lighttpd/lighttpd.conf (came across that while scouring Google).

No messages, no logs, nothing. ???
Attached Files
File Type: txt config.log.txt (136.4 KB, 26 views)
File Type: txt lighttpd.txt (4.5 KB, 23 views)

Last edited by DJRcomputing; 05-26-2011 at 04:10 AM.
 
Old 05-26-2011, 02:23 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Why are you trying to install lighttpd from source. If you're running debian as in your profile, you can run
Code:
apt-get install lighttpd
and you'll be fine

Last edited by bathory; 05-26-2011 at 02:26 AM.
 
Old 05-26-2011, 04:37 AM   #3
DJRcomputing
Member
 
Registered: Mar 2011
Location: /usa/pa/manheim
Distribution: Debian 5 + Xfce
Posts: 64

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by bathory View Post
Why are you trying to install lighttpd from source. If you're running debian as in your profile, you can run
Code:
apt-get install lighttpd
Umm...because I can? Because Lenny (apt-get/synaptic) packages are usually quite dated (v1.4.19), though I see now that 1.4.28 is available on debian.org (which I'll often check).

Quote:
Originally Posted by bathory View Post
and you should be fine
/fxt

...Because there are never any guarantees, and plenty of dependency hell & conflicting program installs/uninstalls. Because packages like to throw $h!t anywhere they want, like Apache2 & MySQL. (Lighttpd is the first source I've come across that did so as well, despite claims that default was /usr/local. *grumbles*) Likewise, because of limited/predetermined ./configure options. That being said, when discernibly suitable, like little progams & libs when compiling source squawks, I do install from packages...

Plus, why make life easier for myself? My goal is to learn.

Now, about why Lighttpd won't start...?? Otherwise, I'll continue setting up Apache 2.2.17 (installed DSO and all in one directory, because mod_perl recommends the latter.)

Last edited by DJRcomputing; 05-26-2011 at 04:59 AM.
 
Old 05-26-2011, 04:58 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
It's not starting, because the init script looks in the wrong locations for executable and config files.
The way you configured the lighttpd sources, it can be started by running:
Code:
/usr/local/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
 
1 members found this post helpful.
Old 05-26-2011, 09:39 AM   #5
DJRcomputing
Member
 
Registered: Mar 2011
Location: /usa/pa/manheim
Distribution: Debian 5 + Xfce
Posts: 64

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by bathory View Post
It's not starting, because the init script looks in the wrong locations for executable and config files.
The way you configured the lighttpd sources, it can be started by running:
Code:
/usr/local/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
There we go, kinda, as things got quite messy thereafter. In order to even get it to run manually (and hopefully at boot) I had to:

Change /etc/init.d/lighttpd (Key = [line #] added, removed, changed)
Code:
35 LIGHTTPD_BIN=/usr/local/sbin/lighttpd
53 . /etc/init.d/rc
Correct runlevel symlinks, because I realized that they WERE f'd afterall
Code:
# update-rc.d lighttpd remove
# update-rc.d lighttpd defaults
then the directories called for in /etc/lighttpd/lighttpd.conf didn't even exist, so I had to (keeping things consolidated)
Code:
# mkdir /var/lighttpd
# cd /var/lighttpd
# mkdir cache
# mkdir htdocs
# mkdir lib
# mkdir lib/sockets
# mkdir log
# mkdir vhosts
and finally edit /etc/lighttpd/lighttpd.conf (lighttpd.conf.old attached)
Code:
16  var.log_root    = "/var/lighttpd/log"   # vs creating default dirs
17  var.server_root = "/var/lighttpd"       # 
19  var.home_dir    = "/var/lighttpd/lib"   #
61  var.cache_dir   = "/var/lighttpd/cache" #
98  #server.bind = "localhost
104 #server.username  = "lighttpd"
105 #server.groupname = "lighttpd"
THEN it ran manually. But still doesn't at boot??!! [expletive] WTF? At least I'm having "fun", despite wanting to

# shoot --computer --brain LOL!

PS - Sorry about my attitude earlier. Despite being a < 3 month Linux newbie, I'm quite proud of how much I've learned from square one since. LOTS of research, reading, and trial & error. *phew*
Attached Files
File Type: txt lighttpd.conf.old.txt (9.7 KB, 24 views)

Last edited by DJRcomputing; 05-26-2011 at 09:51 AM.
 
Old 05-26-2011, 11:40 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
There we go, kinda, as things got quite messy thereafter. In order to even get it to run manually (and hopefully at boot) I had to:
The easiest way to start it on boot, is to put the command in my previous post above in /etc/rc.local

Anyway, attached is the debian lighttpd startup file modified for your installation of lighttpd. Rename it to lighttpd, move it in /etc/init.d and make it executable

Regards
Attached Files
File Type: txt lighttpd.txt (2.1 KB, 69 views)
 
2 members found this post helpful.
Old 05-26-2011, 06:26 PM   #7
DJRcomputing
Member
 
Registered: Mar 2011
Location: /usa/pa/manheim
Distribution: Debian 5 + Xfce
Posts: 64

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by bathory View Post
The easiest way to start it on boot, is to put the command in my previous post above in /etc/rc.local

Anyway, attached is the debian lighttpd startup file modified for your installation of lighttpd. Rename it to lighttpd, move it in /etc/init.d and make it executable
Let's see... "Quick & dirty", keeping my two minor mods, but stuck with
Code:
# Copyright (c) 1995-2002 SuSE Linux AG, Nuernberg, Germany.
# All rights reserved.
#
# Author: Kurt Garloff <feedback@suse.de>
#
# [long string of obscenities I want to email SOMEONE with a note:
# INCLUDE IN SOURCE TARBALL AS: lighttpd-1.4.28/doc/initscripts/rc.lighttpd.debian !!]
Or the more appropriate way. Hmm...I chose the latter.

*reboots*

O.M.F.G. The [expletives] POS finally started!! Thank you. BTW:
Code:
17 DESC="HTTP Daemon - Static"                           # Something I want to learn. ;)
28 # mkdir -p /var/run/lighttpd > /dev/null 2> /dev/null #
29 # chown www-data:www-data /var/run/lighttpd           # Once is enough, no?
30 # chmod 0750 /var/run/lighttpd                        #

Last edited by DJRcomputing; 05-26-2011 at 06:47 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wpa_supplicant won't start automatically so dhcp won't give me an IP tortenteufel Slackware 5 12-25-2013 04:05 PM
[SOLVED] installing lighttpd from svn unable to start script tkmsr Linux - Server 36 08-07-2010 01:48 PM
Heartbeat cluster won't recognize other node, resource won't start. slinx Linux - Enterprise 2 04-08-2010 10:48 PM
Heartbeat cluster won't recognize other node, resource won't start. slinx Linux - Enterprise 1 03-31-2010 11:19 AM
Unable to start lighttpd as sudo on solaris 9 rajaniyer123 Solaris / OpenSolaris 7 05-11-2008 02:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration