LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-27-2004, 11:38 AM   #1
blackzone
Member
 
Registered: Jun 2004
Posts: 256

Rep: Reputation: 30
help on boa webserver


anyone get boa webserver working on thier linux box?

===============================================
#!/bin/bash
wget http://www.boa.org/boa-0.94.13.tar.gz
tar -zxvf boa-0.94.13.tar.gz
cd boa-0.94.13/src
./configure; make
cd /etc
mkdir boa
cd -
cd ..
cp boa.conf /etc/boa

echo "<html><head><body>sometext</body></head></html>" > /etc/boa/index.html

cd /var/log
mkdir boa
==================================================
I use the following script to install

edit the /etc/boa.conf file by changing "User nobody" and "Group nogroup" to "User root" and "Group root"

went into boa-0.94.13/src directory and run "./boa"

try to test it by using mozilla and accessing
"http://127.0.0.1/index.html" and
"http://192.168.0.12/index.html" ( my eth0 IP)

both failed.
================================================
can help?
 
Old 10-27-2004, 03:06 PM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
The first comment I have to make is that changing the user to root and group to root is very dangerous. If it gets penetrated then the attacker is into root. Re the actual access it sounds like the server has not been configured to listen on port 80 which is the normal http port or you have a firewall blocking access to port 80 on that box. I am not sure of your reasons for choosing it as a server but because it is some what obscure you may have problems. I personally would opt for apache.

Last edited by TigerOC; 10-27-2004 at 03:11 PM.
 
Old 10-27-2004, 08:43 PM   #3
blackzone
Member
 
Registered: Jun 2004
Posts: 256

Original Poster
Rep: Reputation: 30
I just use it for testing.

The embedded system I'm working on have BOA preinstalled. Which we will use because it's small and lite weight.

I'm sure it's not port 80 problem it's predefined in boa.conf as the default port.
 
Old 10-27-2004, 09:25 PM   #4
blackzone
Member
 
Registered: Jun 2004
Posts: 256

Original Poster
Rep: Reputation: 30
It's working now. I didn't change to root priveage as TigerOC suggested as it is risky.

make sure you have a user: nobody group: nogroup. and store your web pages to /var/www.
 
Old 10-27-2004, 09:35 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,691

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
What are the browser errors? connection refused or page not found. Are you sure boa is running. Have you checked the log file for errors?

The default document root in the default boa.conf file is /var/www not /etc/boa i.e where the server is looking for the index.html file. In this case you should get a page not found error. I would only use /etc/boa for the configuration file.
 
Old 10-27-2004, 10:32 PM   #6
blackzone
Member
 
Registered: Jun 2004
Posts: 256

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by michaelk
What are the browser errors? connection refused or page not found. Are you sure boa is running. Have you checked the log file for errors?
I checked the errorlog and it says "icky Linux kernel bug!". Think something to do with UID.
I used nobody/nogroup(UID/GID) to run. It is working fine now.

I'm trying to get it run with php. But can't seemed to do it.

Finally got it to work. If anyone is interested check the thread below.

https://sourceforge.net/forum/forum....7&forum_id=180

Last edited by blackzone; 10-28-2004 at 10:11 PM.
 
  


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
Boa startup error arpanet1969 Linux - Software 0 09-11-2005 05:27 PM
Boa fails while starting with error.Any idea gaddargarson Linux - Software 1 08-28-2005 04:09 AM
BOA users or developers can help me? gaddargarson Programming 1 08-28-2005 04:08 AM
Followed tut in Python Boa Constructor, = error, help ! Dark Carnival Programming 4 09-20-2003 06:07 AM
Can't see WebServer from outside... Can see WebServer locally as http://localhost friddick Linux - Networking 13 08-19-2003 06:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:33 AM.

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