Lighttpd install

Ask questions about Arch Linux ARM. Please search before making a new topic.

Lighttpd install

Postby grizzlebee » Thu Feb 16, 2012 2:40 pm

I'm trying to install Lighttpd on my Pogo Pro (and eventually mySQL and PHP to get Ampache running). I've been following the wiki (https://wiki.archlinux.org/index.php/Lighttpd) and things have gone OK, except that I'm having trouble accessing localhost. I can point my browser to the Pogo's IP at http://192.168.1.XXX and get the Lighttpd test page, but not by going to either http://127.0.0.1 or http://localhost. I've changed the hostname in /etc/rc.conf from
$this->bbcode_second_pass_code('', 'HOSTNAME="alarm" ')
to
$this->bbcode_second_pass_code('', 'HOSTNAME="localhost" ')
and added the following to /etc/hosts
$this->bbcode_second_pass_code('', '127.0.0.1 localhost.localdomain localhost')
but still, nothing. Any ideas what I'm doing wrong?
grizzlebee
 
Posts: 15
Joined: Sun Jan 01, 2012 4:59 am

Re: Lighttpd install

Postby WarheadsSE » Thu Feb 16, 2012 3:14 pm

Are you doing the below on the plug itself?
$this->bbcode_second_pass_code('', 'wget http://localhost ')
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Lighttpd install

Postby grizzlebee » Thu Feb 16, 2012 4:23 pm

I haven't tried
$this->bbcode_second_pass_code('', 'wget http://localhost')
but I'll give it a shot later today.
grizzlebee
 
Posts: 15
Joined: Sun Jan 01, 2012 4:59 am

Re: Lighttpd install

Postby grizzlebee » Fri Feb 17, 2012 12:02 am

Here's what I get:

$this->bbcode_second_pass_code('', '[root@localhost ~]# wget localhost
--2012-02-16 18:01:59-- http://localhost/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8 [text/html]
Saving to: `index.html.1'

100%[======================================>] 8 --.-K/s in 0s

2012-02-16 18:01:59 (153 KB/s) - `index.html.1' saved [8/8]
')
grizzlebee
 
Posts: 15
Joined: Sun Jan 01, 2012 4:59 am

Re: Lighttpd install

Postby kwave » Fri Feb 17, 2012 12:09 am

Post your /etc/lighttpd/lighttpd.conf. Perhaps there is some kind of condition which prevents lighty to bind to localhost.
kwave
 
Posts: 13
Joined: Fri Jul 01, 2011 10:13 pm

Re: Lighttpd install

Postby WarheadsSE » Fri Feb 17, 2012 1:55 am

It is bound to 127.0.0.1 aka localhost. That's why it worked. The problem is that is it not bound to anything except localhost.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Lighttpd install

Postby grizzlebee » Fri Feb 17, 2012 3:41 am

lighttpd.conf

$this->bbcode_second_pass_code('', '
This is a minimal example config
# See /usr/share/doc/lighttpd
# and http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOpti$

server.port = 80
server.username = "http"
server.groupname = "http"
server.document-root = "/srv/http"
server.errorlog = "/var/log/lighttpd/error.log"
dir-listing.activate = "enable"
index-file.names = ( "index.html" )
mimetype.assign = ( ".html" => "text/html", ".txt" => "text/plain", ".j$
include "conf.d/fastcgi.conf"
')
grizzlebee
 
Posts: 15
Joined: Sun Jan 01, 2012 4:59 am

Re: Lighttpd install

Postby WarheadsSE » Fri Feb 17, 2012 2:18 pm

Basing this on the manual for lighttpd, try adding
$this->bbcode_second_pass_code('', 'server.bind = "0.0.0.0"')

This is supposed to be default behavior, but who knows.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Lighttpd install

Postby grizzlebee » Mon Feb 20, 2012 4:25 am

Sorry for my slow reply...
$this->bbcode_second_pass_code('', 'server.bind = "0.0.0.0"')
didn't help, but I was still able to get Ampache to work on the PogoPro nonetheless, although the web interface didn't look right in any of the browsers I tested (Firefox, IE or Chrome). I going to test nginx and see if that looks better (and maybe works with localhost.
grizzlebee
 
Posts: 15
Joined: Sun Jan 01, 2012 4:59 am

Re: Lighttpd install

Postby WarheadsSE » Mon Feb 20, 2012 1:45 pm

Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 7 guests