2000-01-22 12:49:49 +00:00
Installation
************
This file documents the installation of GNUstepWeb, `gsweb'. Copyright
(C) 1999-2000 Free Software Foundation, Inc. You may copy, distribute, and
modify it freely as long as you preserve this copyright notice and
permission notice.
2000-03-20 15:50:51 +00:00
This is version 1.1.0 of GNUstepWeb.
2000-01-22 12:49:49 +00:00
This package contains GNUstepWeb library. You need to install
2000-03-20 15:50:51 +00:00
GNUstep core, extensions and db libraries, GSWAdaptor and Apache
2000-01-22 12:49:49 +00:00
Please download last up to date cvs version of GNUstep (some bugs
have been corrected).
2000-03-16 16:16:49 +00:00
Remark: We suppose that the GNUstep folder is on /usr/GNUstep, please check all the paths below with your configuration
2000-01-22 12:49:49 +00:00
Installing `gsweb'
====================
2000-03-16 16:16:49 +00:00
Libraries requiered :
---------------------
gsantlr/ GSANTLR (Parser classes,...)
gsgd/ Objective-C/GD Interface
core/ GNUstep core
db/ GNUstep database
extensions/ Extensions
2000-01-22 12:49:49 +00:00
2000-03-16 16:16:49 +00:00
The GNUStepWeb package:
-----------------------
* GNUstepWeb/ -----> GNUstepWeb Root
* GNUstepWeb/GSWeb.framework -----> GNUstepWeb Main Part
* GNUstepWeb/GSWExtensions.framework -----> GNUstepWeb 'standard' Extensions
* GNUstepWeb/GSWExtensionsGSW.framework -----> GNUstepWeb Extensions
2000-01-22 12:49:49 +00:00
2000-03-16 16:16:49 +00:00
Compilation Order:
------------------
2000-01-22 12:49:49 +00:00
1) core
2000-03-16 16:16:49 +00:00
2000-01-22 12:49:49 +00:00
2) extensions
2000-03-20 15:50:51 +00:00
It adds the Header exceptions folders (both in Foundation and extensions)
2000-03-16 16:16:49 +00:00
2000-01-22 12:49:49 +00:00
3) db
4) gsantlr
2000-03-16 16:16:49 +00:00
5) the 'gd' libraries. You must have a /usr/include/gd.h file. If not take sources on http://www.boutell.com/gd
Extract and compile
6) gsgd
8) GNUstepWeb
2000-03-20 15:50:51 +00:00
Go in the GNUstepWeb folder. make and make install.
2000-01-22 12:49:49 +00:00
2000-03-20 15:50:51 +00:00
9) Apaches modules for GNUstepWeb
Still in the GNUstepWeb folder there is a GSWAdaptors/Apache folder, go in and make. There no make install. Instead you must copy the mod_gsweb.so module in you Apache libexec directory (something like /usr/apache/libexec).
2000-03-16 16:16:49 +00:00
At this point everything is done, still remains the Apache configuration:
2000-01-22 12:49:49 +00:00
You have to export the following env var:
export GNUSTEP_STRING_ENCODING=NSISOLatin1StringEncoding
2000-03-16 16:16:49 +00:00
Configurating Apache:
=====================
2000-01-22 12:49:49 +00:00
2000-03-16 16:16:49 +00:00
In Apache httpd.conf file, add thoses lines:
2000-01-22 12:49:49 +00:00
LoadModule GSWeb_Module libexec/mod_gsweb.so
AddModule mod_gsweb.c
2000-03-20 15:50:51 +00:00
And this one to specify the configuration file (for exemple /etc/httpd/conf/gsweb.conf)
2000-01-22 12:49:49 +00:00
2000-03-20 15:50:51 +00:00
GSWeb_ConfigFilePath /etc/httpd/conf/gsweb.conf
If you use virtual hosts (Apache in localhost does not requiered them), add the following lines:
2000-03-16 16:16:49 +00:00
2000-01-22 12:49:49 +00:00
<Location /GSWeb*>
SetHandler GSWeb
</Location>
2000-03-20 15:50:51 +00:00
Then, create the file configuration file (for exemple /etc/httpd/conf/gsweb.conf) which contains parameters for GNUstepWeb Applications:
2000-01-22 12:49:49 +00:00
2000-03-16 16:16:49 +00:00
The format is(there is an example for values below):
2000-01-22 12:49:49 +00:00
{
2000-03-20 15:50:51 +00:00
canDumpStatus=YES; //YES if server can display status (URL: /GSWeb/status)
GSWExtensionsFrameworkWebServerResources="/GSW/GSWExtensions/WebServerResources"; //URL of GSWExtensions Framework WebServerResources directory
2000-01-22 12:49:49 +00:00
applications= {
ApplicationName = {
2000-03-20 15:50:51 +00:00
//URL of GSWExtensions Framework WebServerResources directory. It overides Global parameter
GSWExtensionsFrameworkWebServerResources="/GSW/GSWExtensions/WebServerResources";
//YES to say that this application can be listed when the adaptor don't find an application
canDump = YES;
instances = {
InstanceNumber = {
2000-01-22 12:49:49 +00:00
host= IPAdressOfTheComputerOnWhichRunTheApplication;
port= ThePortListenByTheApplication;
parameters= {
transport= socket;
};
}
2000-03-20 15:50:51 +00:00
};
2000-01-22 12:49:49 +00:00
};
};
}
2000-03-16 16:16:49 +00:00
exemple values for a localhost use:
2000-01-22 12:49:49 +00:00
{
2000-03-20 15:50:51 +00:00
canDumpStatus=YES;
GSWExtensionsFrameworkWebServerResources="/GSW/GSWExtensions/WebServerResources";
2000-01-22 12:49:49 +00:00
applications= {
MyApp = {
2000-03-20 15:50:51 +00:00
canDump = YES;
instances = {
1 = {
host= 127.0.0.1;
port= 9001;
parameters= {
transport= socket;
};
}
};
2000-01-22 12:49:49 +00:00
};
};
}
Now, develop an application and runnit !
We'll try to put a sample application soon.