From MineOS
Jump to: navigation, search

Hiawatha can handle all the CGI and FASTCGI capabilities of a modern webserver, but it is disabled by default for security. To enable PHP, make the following changes:


Configuring PHP to work with hiawatha webserver

Enable PHP for all directories/subdirectories under /var/www/hiawatha

Find and replace: ExecuteCGI = no with ExecuteCGI = yes

Enable PHP for only one directory and its subdirectories

Append to the bottom (adjusting phpbb with the directory of your files):

Directory {
        Path = /var/www/hiawatha/phpbb
        ExecuteCGI = yes
        TimeForCGI = 60
        StartFile = index.php

Restart hiawatha

Any and all changes to the Hiawatha configuration require to restart the server as root: