Apache

Hi,

I am trying to install apache on my QNXRTP 6.1.0 platform. I am using the
download from sourcefore.net. The directions to install are straight
forward, but when I try to run the apachectl binary I get the following
error:

httpd: cannot determine local host name.
Use the ServerName directive to set it manually.
…/apachectl start: httpd could not be started

What is this ServerName directive and how can I perform the indicated
actions?

Thanks in advance!
Mike

Mike Toreno wrote:

Hi,
[snip]



What is this ServerName directive and how can I perform the indicated
actions?

From httpd.conf:<— edit this file and set ServerName

ServerName allows you to set a host name which is sent back to clients
foryour server if it’s different than the one the program would get
(i.e., use “www” instead of the host’s real name).

Note: You cannot just invent host names and hope they work. The name you
define here must be a valid DNS name for your host. If you don’t
understand this, ask your network administrator. If your host doesn’t
have a registered DNS name, enter its IP address here. You will have to
access it by its address (e.g., http://123.45.67.89/) anyway, and this
will make redirections work in a sensible way.

Mike Toreno wrote:

Hi,

I am trying to install apache on my QNXRTP 6.1.0 platform. I am using the
download from sourcefore.net. The directions to install are straight
forward, but when I try to run the apachectl binary I get the following
error:

httpd: cannot determine local host name.
Use the ServerName directive to set it manually.
./apachectl start: httpd could not be started

What is this ServerName directive and how can I perform the indicated
actions?

afaik you have to put

ServerName=whateveryouwant

into the http.conf file


MeVis GmbH
Sascha Bohnenkamp
Universitätsallee 29
28359 Bremen
bonito@mevis.de
0421 218 90 68