Configure the boa Server in Ubuntu

Source: Internet
Author: User
Tags connection reset
There are already a lot of tutorials for compiling and using the boa Server on Ubuntu, and many people have written them on the blog, so I will not go into details, here we post several issues that may occur when boa is used for the first time. Execute boa to check the content in error_log. the following error occurs: boa. c: 194-unabletobind: Addressalreadyinuse is the default boa. the Port in conf is set to 80, because

There are already a lot of tutorials for compiling and using the boa Server on Ubuntu, and many people have written them on the blog, so I will not go into details, here I will post several problems that may occur to my friends who use boa for the first time.

Run boa

Check the content in error_log with the following error:

Boa. c: 194-unable to bind: Address already in use

Because it is on a PC, the Port in the default boa. conf is set to 80, so the above error occurs when running boa. You can view it in the error_log file.

Solution: Modify the port value in boa. conf to 8080 (you can specify other unused ports) and save the settings.

Try again. After Entering 192.168.1.111: 8080 in the address bar of the browser, access to index.html under the www directory will be normal.

Next, test the cgi program:

Enter 192.168.1.111: 8080/cgi-bin/test. cgi in the address bar of the browser. The error of bad gateway may occur, or the following error occurs in error_log:

Request from 192.168.1.119 "GET/favicon. ico HTTP/1.1" ("/var/www/favicon. ico"): document open: No such file or directory

[01/Aug/2011: 10: 04: 37 + 0000] request from 192.168.1.119 "(null)" ("(null)"): header read: Connection reset by peer

In this case, you need to check the settings of User and Group in boa. conf. For example, the default User is followed by nobody. We need to change the parameter after Group to 0 and save

Kill-9 pid (boa)

Restart boa and access cgi through the browser again. The access is successful!

Note: When porting boa on an Embedded Development Board, the User and Group parameters are modified to 0, as written by many bloggers, however, for the first time using boa in Ubuntu, this may be ignored.

Http://www.linuxidc.com/Linux/2011-08/39780p2.htm & http://www.linuxidc.com/Linux/2011-08/39780p3.htm & http://www.linuxidc.com/Linux/2011-08/39781.htm

Related Article

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.