Table of contents
[MISSING]I want to make my apache config files as much like my UNIX config files as possible.
- Install apache_2.0.52-win32-x86-no_ssl.msi.
- * I chose no_ssl because of the smaller memory footprint.
- Custom Install
- Root element installs to C:\usr\local
- Runtime element installs to C:\usr\local\apache
After the install, edit httpd.conf:
- Change all of the "C:/" to "/"
Enable the LoadModule for mod_info and mod_status
ExtendedStatus On
- Enable: Location /server-status
- Also: Allow from all
- Enable: Location /server-info
- Also: Allow from all
Test perl CGI:
Open a browser to http://localhost/cgi-bin/printenv.pl
- If IE wants to know whether to save or run printenv.pl, save it. For some reason, sometimes MIME type text/plain doesn't seem to make it to IE's brain.
Install mod_python:
- First install Python-2.3.4.exe to C:\python
- mod_python3.1.3_py2.3.exe
Add to httpd.conf: LoadModule python_module modules/mod_python.so
- Save the following as /usr/local/apache/cgi-bin/mptest.py
from mod_python import apache
def handler(req):
req.write("Hello World!")
return apache.OK
- In httpd.conf, inside: _Directory "/usr/local/apache/cgi-bin"_, add
AddHandler mod_python .py
PythonHandler mptest
PythonDebug On
- Stop and start apache
"Test mod_python":http://localhost/cgi-bin/mptest.py