From MineOS Wiki
Jump to navigation Jump to 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):

<syntaxhighlight lang="bash"> Directory {

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

} </syntaxhighlight>

Restart hiawatha

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