Building and Running GoAhead WebServer

This release contains everything you need to compile and run the GoAhead WebServer under WindRiver VxWorks, Windows 95, 98, NT, and CE, LynxOS, LINUX and QNX. More supported platforms will be included with each release. Before trying to build GoAhead WebServer make sure you have the most recent version by checking http://www.goahead.com/webserver.

Each supported platform has an operating system sub-directory, which includes a Makefile for building and a main program for invoking and initializing the GoAhead WebServer. To build and run the GoAhead WebServer, change to the relevant operating system directory and use make to initiate the build. Individual instructions for each operating system are provided below.

If you do not want GoAhead WebServer to use the default settings and configuration, you will need to modify the Makefile and main program file (main.c) for your operating system before compiling. See Configuring GoAhead WebServer for more information.

For VxWorks

         cd VXW486
         make

Load webs.o onto the target system and use standard VxWorks procedures to load the program into memory and execute it.

For Windows NT

         cd WIN
         nmake /f webs.mak
         webs

To stop the web server, right click on the taskbar icon for the GoAhead GoAhead WebServer and select "Close".

For Windows 95 or Windows 98

         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

To stop the web server, right click on the taskbar icon for the GoAhead GoAhead WebServer and select "Close".

NOTE FOR USERS OF MICROSOFT VISUAL C++

If you get the following Setup Environment Variables message after installing Visual C++, follow the instructions below BEFORE building and running GoAhead GoAhead WebServer.

"For your convenience, the environment variables required to run build tools from a command prompt are saved in the VCVARS32.BAT file in your BIN directory."

Instructions:

  1. Copy the VCVARS32.BAT file to your root directory (usually C:\).
  2. Add the file's path name to your AUTOEXEC.BAT file.
  3. Reboot your System.

For Windows CE

In Microsoft Visual C++ DeviceStudio open the workspace webs.dsw in the CE sub-directory. Set the include and library paths properly for your device. Be sure the symbolic constants CE, UEMF, and UNICODE are defined. Use the build facilities of DeviceStudio to generate webs.exe. Load webs.exe and your web pages on to your CE device using your normal procedures to transfer file to the device. The default location for the web pages is in the \web directory. This can be modified in main.c. Using pre-compiled and linked pages (see WEBS_PAGE_ROM and WebCompiler below) make it easy to load the application and its pages to the system in one step.

For LINUX

          CD LINUX
          make
          su            ;# As super user
          webs

For LinxOS

          CD LYNX
          make
          su            ;# As super user
          webs

For QNX

          CD QNX4
          make
          su            ;# As super user
          webs

Accessing the GoAhead WebServer Home Page

To access the GoAhead WebServer home page, point your browser to "http://hostname", assuming you are running on port 80, or to "http://localhost", if you are running the browser on the same system as the server. The server's default home page is "home.asp".