Apache, PHP, MySQL, ASP.NET, JSP and Perl Solutions for your Web Development and Hosting Needs on Windows.
A Complete Web Development and Hosting Platform for Windows.

httpd.conf -- CGI

Building a Web Server, for Windows and Linux

In this example, replace '/www/cgi-bin' with the location of the cgi-bin directory on your system.

Apache will assume that every file under cgi-bin is a CGI script, and will attempt to execute it, when that particular cgi script is requested by a client.

Note that every file under cgi-bin has to include a "shebang" line. The shebang line is the first line of the script, denoted by '#!' (without ''), and contains the path to the interpreter of that particular script...

Example (perl script):
Note to use quotes around paths that contain spaces.

  • Windows:
    #!C:/www/perl/bin/perl.exe
  • Linux:
    #!/usr/bin/perl

Note that if the path to the specified interpreter is set under the system PATH variable, the "shebang" line can just contain the file name of the interpreter...

Example (perl script, path to perl set under the system PATH variable):

  • Windows:
    #!perl.exe
  • Linux:
    #!perl
LoadModule cgi_module modules/mod_cgi.so
LoadModule alias_module modules/mod_alias.so

<IfModule mod_cgi.c>
	<IfModule mod_alias.c>
	ScriptAlias /cgi-bin/ "/www/cgi-bin/"
</IfModule>

<Directory "/www/cgi-bin">
	Options None
	AllowOverride None
	Order allow,deny
	Allow from all
</Directory>
</IfModule>
In the Spotlight

In the Spotlight

Developing and Hosting PHP+MySQL based websites and applications has never been simpler. The Web.Developer Server Suite provides a Platform & Framework on which to create standards-based CSS, XSLT, and XHTML sites running on PHP and MySQL. Save your time, focusing on core business. Reduce complexity and maximize your productivity.

Developers

Developers++

The Web.Developer Server Suite is more than just a Windows based Apache|PHP|MySQL Platform. Suitable for novices and professionals alike, a complete Hosting Solution is provided that is capable of creating and deploying websites and web applications both locally and on the internet. Create, test, publish and maintain your websites in-house, on your own server, where you are in full control.

Newsletter Signup

Newsletter Signup

Enter your e-mail address: