What is this?
The Windows Webserver was developed for testing PHP and CGI/FCGI programs under Windows, without installing an Apache or IIS environment. The Webserver is easy to install and comes with buildin PHP 7.4.10, FastCGI support, mod_rewrite and SSL/TLS 1.2. Also FTP(S) and WebDAV is integrated. WWebserver is not Apache and was developed from the scratch. It was tested with common OpenSource applications like Wordpress, Joomla, Drupal, Typo3, Magento, phpMyAdmin, PIWIK, AWstats. It's like XAMPP - but much more smarter.
Installation and Configuration
1. Install complete program with PHP 7.4.10 (Win7+, Win10)
wwebserver_php_7410_setup.exe (35.5 MB) - $ 10 or PHP 7.3.11 wwebserver_php_7311_setup.exe (35.5 MB) - $ 10 or older versions ...
Or with PHP 5.4.45 (WinXP+)
wwebserver_php_5445_setup.exe (16.6 MB) - Free
Or use only command line, the smallest version without buildin PHP, SSL, FTP, WebDAV, WWadmin.
You have to download your preffered PHP version manually and configurate it with FastCGI.
wwebserver_18_cmd.zip (200 KB) - Free
2. Type in your Host, Port, Document Path and start it.
The default HTTP Port is 80, but you can choose
any other Port if there is just running another Webserver on your system.
If you dont need SSL you can mark checkbox No HTTPS.
After starting you can close the window and control the Webserver with the Taskbar Icon.
3. Open your Webbrowser and start your PHP application like:
You can define virtual directories to handle multiple document paths.
Therefore edit the following configuration file:
# Definitions of virtual directories
# Note: There must be an '/' on end of <Path>
You can start the applications now verry simple like: http://localhost/wordpress
Note: After changing vdir.txt please STOP and START Webserver again.
You can define own CGI Programs for example Perl or Ruby.
Therefore edit the following configuration file:
# <Alias 1> <Alias 2> ...;<Full path to CGI program>
# <Alias 1> <Alias 2> ...;PHPBuildIn
# <Alias 1> <Alias 2> ...;PHPFCGI [<Full path to php-cgi.exe>]
# <Alias 1> <Alias 2> ...;FCGI <Full path to FastCGI program> | <IP>:<Port> or <Pipename>
# <Alias 1> <Alias 2> ...;FCGI <IP>:<Port> or <Pipename>
.php .php4 .php3;PHPFCGI
In this example we associate file extensions .rb with Ruby scripts and .pl
with Perl scripts.
.php .php3 .php4 files are associated with PHP FastCGI support.
Note: After changing cgi.txt please STOP and START Webserver again.
You can control the PHP environment with the php.ini file:
You can enable/disable the PHP extension DLL's located in directory:
Note: After changing php.ini you have to EXIT and RESTART the Webserver.
You can define virtual hosts. Therefore edit the following configuration file:
# [<unique name>=]<hostname1>[,<hostname2> ...];<Directory>
# You can create for every virtual host a own configuration directory: cfg/vhost/<hostname>
# Following configuration files can be overwritten: mime.txt, vdir.txt, cgi.txt, php.ini (only for FastCGI)
Read more about mod_rewrite, Redirect and .htaccess.
WWebserver understand the HTTP Basic Authorization.
Read more about directory protection.
WWebserver support TLS 1.2 per default (based on OpenSSL v1.1.0b). Self signed X.509 certificates (RSA 2048 Bits) are generated automatically for every hostname. You can install your own certificates in the following directory:
C:\WWebserver\cfg\ssl for public certificates
C:\WWebserver\cfg\ssl\key for private key files
Certificates and key files must have the following filename convention: <hostname>.crt, <hostname>.key
Note: Old Webbrowsers does not support TLS 1.2. You need modern Browser for HTTPS connections.
Self signed certificates are marked as insecure by most Webbrowsers.
FTP-Server with explicit TLS
Read manual: Configuration of internal FTP-Server
If you want to get WebDAV access to the document path you have to create a WWAdmin password with reset_pwd.bat
After that you can login with your WebDAV client and wwadmin user. FTP users in cfg\ftpuser.txt are allowed to access they're resources with following URL:
The path /webdav-users/... will always prompt a user login and link to the home directory of the specified user.
Note! You dont have to enable FTP to get WebDAV access with wwadmin user or FTP users.
You can execute cronjobs with WWebserver. Crontab is organized like Linux crontab. Please edit following file:
# Weekday: 1 = Mon, 0 = Sun
# In this example we call every 10 minutes a URL and save the result in cron_result.html
*/10 * * * * https://www.mydomain.com/program.php?param1=1¶m2=2 cron_result.html
# In this example we execute a local program (wget.exe) on Saturday 23:00
0 23 * * 6 exec c:\wget.exe http://www.mydomain.com/program.php?param1=1¶m2=2 -O cron_result_wget.html
Note: You dont need to restart Webserver after changing crontab.txt.
Number of parallel requests, timeouts, enabling/disabling .htaccess and directory index can be configurated with following configuration file:
You can lock access to specific directory and all sub directories simply by creating the following empty file:
Command Line Options
You can see all command line options with --help:
Server Administration Panel
Experimental Laboratory for Scripts
Read manual: Install WWLabor
Bug reporting and discussion: Take a look at the Windows Webserver Forum.
Old versions (also for Windows 2000) you can find here.