Configure the Boa Server in Ubuntu 10.04

Source: Internet
Author: User
Configure the Boa Server in Ubuntu 10.04

Download Boa Source Code

: Http://www.boa.org/

Release: 0.94.13

Download boa-0.94.13.tar.gz

Unzip: # tar xzf boa-0.94.13.tar.gz

Second, install the tools bison and flex.

Sudo apt-Get install bison flex

Generate MAKEFILE file Wave

Run:

Cd boa-0.94.13/src

./Configure

4. You must modify some files (that is, configuration) to ensure that make does not have errors)

1. Set the BoA. conf path in the BOA configuration file.

The Boa configuration file boa. conf path should be consistent with the server_root "/etc/boa" value in src/defines. h.

Method: Under the root user permission, copy BOA-0.94.13/boa. conf to/etc/boa.

2. An error will be reported during make:

Util. C: 100: 1: Error: pasting "T" and "->" does not give a valid preprocessing token

 

Modify

# Define timezone_offset (FOO) Foo #-> tm_gmtoff

Is:

# Define timezone_offset (FOO) foo-> tm_gmtoff

Make

5. Configure boa. conf under server_root (/etc/BOA) before running src/boa.

BOA. conf configuration

1. Modify the BoA. conf file: Remove comments from servername (#)

ModifyGroupIs0Because the system does notNogroupGroup. If you do not haveNobodyUser, thenUser
Nobody
You must also modify the settings.(You can also change it to your username.).

2. DefineWebThe root directory of the server file is the set value.
DocumentRoot

Default Value:"/Var/www"

In this case
Create "/var/www" under/var"

To enable normal users to use Boa
Change www/permission

Chmod
-R 777/var/WWW

3. Configure the log file directory and Log File

(1)
Error Report errorlog default location/var/log/BOA/error_log

(2)
Access Report default accesslog location/var/log/BOA/access_log

/Var/log/BOA/must be created with the root permission/

# Mkdir/var/log/Boa

#Chmod
-R 777/var/log/Boa

Create error_log
Access_log File

 

4,
CGI program storage

ScriptAlias/cgi-bin/
Default Value:/usr/lib/cgi-bin/

Generally
Create cgi-bin/store under/var/WWW
. Cgi File

Change
ScriptAlias/cgi-bin // var/www/cgi-bin/

 

 

 

Run
Src/Boa

#./Boa

View Processes
PS-e?
BOA

If not, View
Error Report
/Var/log/BOA/error_log

Configure your boa. conf as prompted

If the prompt is [23/APR/2012: 23: 58: 59 + 0000] boa. C: 194-unable to bind: address already in use

I should use port 8080. In server_root "/etc/boa", change port 80 in Boa. conf to port 8080.

View Processes
PS-e if BOA exists

Successful!

If BOA runs successfully, change boa. conf as needed.
Kill boa and run it again
For example, you can change the directory folder and save the CGI folder, and then perform a web test. Otherwise, the Web Test still reports an error.

 

Test:Http: // 127.0.0.1: 8080

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.