Installing GoAhead WebServerWebServer 2.1 contains everything needed to compile and run the GoAhead WebServer under WindRiver VxWorks, Windows 95, 98, 2000, NT, CE, LynxOS, LINUX and eCos. Before trying to build the GoAhead WebServer, ensure that you have the latest version from GoAhead by checking http://www.goahead.com/webserver. Each supported platform has an operating system subdirectory, which includes a Makefile for building, and a main program for invoking and initializing the GoAhead WebServer. To build and run WebServer, change to the relevant operating system directory and use "make" to initiate the build. Some of the make or batch files may need to be modified for the configuration of your system or the target system. See Configuring the GoAhead WebServer for more information. VxWorks cd VXWORKS
setpath
makeThe above commands build for an x86 platform. If you are building for a Power PC 604 platform, use "ppcpath" and "make -f Makefile.ppc" instead. For other platforms, modify setpath.bat to set the PATH environment variable for your development environment and target device. Modify the compiler flags and options in Makefile to build for your specific target device. Load webs.o onto the target system and use standard VxWorks procedures to load the program into memory and execute it (load module and task spawn). To terminate WebServer on VxWorks so that it can be restarted without being reloaded, send a SIGTERM or SIGKILL signal to the WebServer task by using the "kill" API with signal numbers 15 or 9 respectively. Never use the taskDelete or td APIs when you plan on restarting WebServer. Windows NT cd WIN
nmake /f webs.mak
websTo stop the web server, right click on the taskbar icon for the GoAhead WebServer and select "Close". Windows 95, 98, and 2000 cd WIN
setpath ( NOTE: Users of Visual Studio 6.0 may not
need to use this command to set
their environment path. )
nmake /f webs.mak
webs
For users of Microsoft Visual Studio:
Note for users of Microsoft Visual C++:
Windows CEEither of two different methods may be used to build the Windows CE WebServer:
UNIX (SCO OpenServer V) CD SCOV5
make
su ;# As super user
websLINUX CD LINUX
make
su ;# As super user
./websLYNX CD LYNX
make
su ;# As super user
./webseCos CD ECOS
make
su ;# As super user
websQNX CD QNX4
make
su ;# As super user
webs
SSL InstallationFor SSL installation information, refer to Incorporation RSA Security into WebServer 2.1 in the Getting Started Guide. User ManagementThe user management and access limit configuration is stored in a file called umconfig.txt. This file is created when the user management configuration is saved by exercising the "SaveUserManagement" GoForm through the savecfg.asp web page. The umconfig.txt file is not provided in this distribution. In order to provide the out-of the-box user management forms in a web-site, the following files may be included:
The GoForms described above can be found in the source file, "umui.c". This source file is compiled into the webs executable by default. Standard CGI ImplementationThe cgitest.c file is a sample CGI program that creates and HTML page that displays the CGI environment variables. This source-code module is stand-alone, meaning that no other source files are required to generate an executable (with the exception of "stdio.h").
| |||||||||||||||||||||||||||