A simple Windows Webserver
for PHP and CGI Scripts

News

Sep 28, 2008

WWebserver V0.9 released

Buildin PHP support (PHP 5.2.6)
Virtual Directories (Aliases)
CGI Programs like Perl, Ruby
Simple Console an Taskbar Icon

Links

What is this?

The Windows Webserver was developed for testing PHP and CGI programs under Windows, without installing an Apache or IIS environment. The Webserver is easy to install and comes with buildin PHP 5.2.6 support. It's freeware and was tested with common OpenSource applications like Wordpress, Joomla, Drupal, Typo3, Magento, phpMyAdmin, AWstats. It's like XAMPP - but much more smarter.

What is this not?

It's not a Webserver for productive systems. It does not support HTTPS, User authentication and URL rewriting. This features are planned for next versions.

Installation and Configuration

1. Install setup program with buildin PHP 5.2.6 files: wwebserver_09_setup.exe

2. Type in your Host, Port, Document Path and start it.

Windows Webserver for PHP and CGI Scripts
The default HTTP Port is 80, but you can choose any other Port if there is just running another Webserver on your system.

You can close the window and
control the Webserver with the Taskbar Icon.
Windows Webserver for PHP and CGI Scripts

3. Open your Webbrowser and start your PHP application like:

http://localhost/index.php

Virtual Directories

You can define virtual directories to handle multiple document paths.
Therefore edit the following configuration file:

C:\WWebserver\cfg\vdir.txt

# Definitions of virtual directories
# <Path>;<Directory>
#
# Note: There must be an '/' on end of <Path>

pma/;C:\phpMyAdmin
typo3/;C:\typo3
drupal/;C:\drupal
wordpress/;C:\wordpress

# AWstats configuration

awstats/;C:\awstats\wwwroot\cgi-bin
awstatsclasses/;C:\awstats\wwwroot\classes
awstatscss/;C:\awstats\wwwroot\css
awstatsicons/;C:\awstats\wwwroot\icon

You can start the applications now verry simple like: http://localhost/wordpress

Note: After changing vdir.txt please STOP and START Webserver again.

CGI Programs

You can define own CGI Programs for example Perl or Ruby.
Therefore edit the following configuration file:

C:\WWebserver\cfg\cgi.txt

# Definitions of CGI programs
# <Alias 1> <Alias 2> ...;<Full path to CGI program> | [PHPBuildIn]

.rb;C:\ruby\bin\ruby.exe
.pl;C:\perl\bin\perl.exe
.php .php3 .php4;PHPBuildIn

In this example we associate file extensions .rb with Ruby scripts and .pl with Perl scripts.
.php .php3 .php4 files are associated with buildin PHP support.

Note: After changing cgi.txt please STOP and START Webserver again.

PHP Configuration

WWebserver comes with buildin PHP support (5.2.6) and all extensions.
You can control the PHP environment with the php.ini file:

C:\WWebserver\cfg\php.ini

You can enable/disable the PHP extension DLL's located in directory:

C:\WWebserver\ext

Note: After changing php.ini you have to EXIT and RESTART the Webserver.


WWebserver is a project from Matthias Wiede - mwiede Software - © 2008-2009