A simple Windows Webserver for PHP and CGI Scripts

A simple Windows Webserver for PHP and CGI Scripts

Configuration of the internal FTP-Server

The newest versions of WWebserver comes with a buildin FTP-Server and explicit TLS (FTPS) support.

Configuration of FTP-Server

1. Open C:\WWebserver\cfg\ftp.txt

and enable the FTP-Server.

# FTP-Server is enabled or disabled
enableFTPServer=true

# Let ftpHost empty to use default host of WWebserver in init.txt
ftpHost=

2. You can simply add FTP users with /wwadmin Panel

Insert FTP users

or open C:\WWebserver\cfg\ftpuser.txt

and insert a new user manually.

# Definitions of FTP users
# <User>;<Password>;<Directory>
#
# Note!
# If directory is empty then the default document path of WWebserver will be used (see init.txt).
# The password must be SHA512 encrypted with PHP crypt() function.
# Use the following command line to encrypt a password:
# php.exe -B "echo crypt('mypassword','$6$rounds=5000$'.rand().'$');exit;"
# Then copy the complete output to password.
# After changing FTP users and password you dont need to restart the WWebserver.

myfirstuser;[encrypted password, paste here];C:\

3. Then open a command prompt and encrypt the password with the marked PHP crypt() function.

Encrypt password of FTP-Server

Remove all line feeds and insert password.

myfirstuser;$6$rounds=5000$1881$JKQ.VRVx0xUOx/llbIEvjCUg3mNbdkXTmR.s470ZgGv/ABMTPgPUi8ZqXXzfUS7IQ6WDPoYMY9cQ76oMgB2z6.;C:\

Save configuration files, restart WWebserver and login with your favourite FTP-Client.
You can enable Explicit TLS for encrypted connection. Self signed SSL certificates will be created automatically in cfg\ssl\ftp_server.crt and cfg\ssl\key\ftp_server.key. You can replace with your own certificates there.

Troubleshooting

Passive port range and maximal parallel requests can be configurated in cfg\ftp.txt. Read comments there.

WebDAV access to FTP directories

FTP users are allowed to access they're resources with following WebDAV URL:
http(s)://<hostname>/webdav-users/<user>/
The path /webdav-users/... will always prompt a user login and link to the home directory of the specified user.

...back