LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   help on boa webserver (https://www.linuxquestions.org/questions/linux-networking-3/help-on-boa-webserver-247972/)

blackzone 10-27-2004 11:38 AM

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?

TigerOC 10-27-2004 03:06 PM

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.

blackzone 10-27-2004 08:43 PM

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.

blackzone 10-27-2004 09:25 PM

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.

michaelk 10-27-2004 09:35 PM

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.

blackzone 10-27-2004 10:32 PM

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


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