Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-25-2011, 11:53 PM
|
#1
|
Member
Registered: Mar 2011
Location: /usa/pa/manheim
Distribution: Debian 5 + Xfce
Posts: 64
Rep:
|
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. ???
Last edited by DJRcomputing; 05-26-2011 at 05:10 AM.
|
|
|
05-26-2011, 03:23 AM
|
#2
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
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 03:26 AM.
|
|
|
05-26-2011, 05:37 AM
|
#3
|
Member
Registered: Mar 2011
Location: /usa/pa/manheim
Distribution: Debian 5 + Xfce
Posts: 64
Original Poster
Rep:
|
Quote:
Originally Posted by bathory
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
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 05:59 AM.
|
|
|
05-26-2011, 05:58 AM
|
#4
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
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.
|
05-26-2011, 10:39 AM
|
#5
|
Member
Registered: Mar 2011
Location: /usa/pa/manheim
Distribution: Debian 5 + Xfce
Posts: 64
Original Poster
Rep:
|
Quote:
Originally Posted by bathory
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*
Last edited by DJRcomputing; 05-26-2011 at 10:51 AM.
|
|
|
05-26-2011, 12:40 PM
|
#6
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,217
|
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
|
|
2 members found this post helpful.
|
05-26-2011, 07:26 PM
|
#7
|
Member
Registered: Mar 2011
Location: /usa/pa/manheim
Distribution: Debian 5 + Xfce
Posts: 64
Original Poster
Rep:
|
Quote:
Originally Posted by bathory
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 07:47 PM.
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 10:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|