| 1 | = How to enable SWAT as a Apache CGI = |
| 2 | |
| 3 | This page provides a quick cookbook to setup SWAT as a CGI for Apache on eComstation & OS/2. |
| 4 | |
| 5 | == Prerequsites: == |
| 6 | |
| 7 | 1. Make sure you have downloaded Apache2 and unziped. Lets assume it was unziped to x:\apache2. |
| 8 | |
| 9 | 2. Copy x:\apache2\conf\httpd.conf.sample to x:\apache2\conf\httpd.conf |
| 10 | |
| 11 | 3. Edit x:\apache2\conf\httpd.conf |
| 12 | |
| 13 | ServerRoot "x:/apache2" [[BR]] |
| 14 | DocumentRoot "x:/apache2/htdocs" |
| 15 | |
| 16 | # This should be changed to whatever you set DocumentRoot to.[[BR]] |
| 17 | <Directory "x:/apache2/htdocs"> |
| 18 | |
| 19 | ScriptAlias /cgi-bin/ "x:/apache2/cgi-bin/" |
| 20 | |
| 21 | <Directory "d:/programs/apache/cgi-bin/samba">[[BR]] |
| 22 | AllowOverride All[[BR]] |
| 23 | Options None[[BR]] |
| 24 | Order allow,deny[[BR]] |
| 25 | Allow from all[[BR]] |
| 26 | </Directory> |
| 27 | |
| 28 | 4. Adjust startup.cmd in x:\apache2 with set beginlibpath=x:\apache2\bin;x:\apache2\modules |
| 29 | |
| 30 | 5. Start startup.cmd (if all went well Apache starts) |
| 31 | |
| 32 | == Using SWAT: == |
| 33 | |
| 34 | 1. Copy SWAT.exe from your samba installation to x:\apache2\cgi-bin\samba. |
| 35 | |
| 36 | 2. Open the Browser and point it to 127.0.0.1/cgi-bin/samba/swat.exe |
| 37 | |
| 38 | 3. Now you should see the SWAT interface to configure Samba server |