DokuWiki

It's better when it's simple

User Tools

Site Tools


install:mongoose

This is an old revision of the document!


Mongoose

Mongoose is easy to use web server for Windows and Mac. It also can be used as embedded web server library to provide web interface to applications.

Mongoose executable does not depend on any external library or configuration.
If it is copied to any directory and launched from there, it starts to serve that directory on port 8080
(so to access files, go to http://localhost:8080).
If some additional config is required - for example, different listening port or IP-based access control,
then a mongoose.conf file with respective options can be created in the same directory where executable lives.
This makes Mongoose perfect for all sorts of demos, quick tests, file sharing, and Web programming.

DokuWiki will run just fine with Mongoose and PHP through CGI.

Telling Mongoose how to work with PHP

This requires the following settings in the “mongoose.conf” file:

     cgi_extensions .cgi,.pl,.php
     cgi_interpreter \YOUR_PHP_INSTALL_DIRECTORY\php-cgi.exe

Telling PHP how to work with Mongoose

If PHP is installed and verified to work when launched from the command-line, there is a possibility that the webbrowser does not show the PHP output when pointed to URLhttp://yourserver/path_to_your_script.php”.

When you see the text “Input file not specified”, it means that PHP must be told to work with Mongoose. The variable 'doc_root' in file 'php.ini' must be set to match the “mongoose.conf” variable 'document_root'.

Security

Because Mongoose does not use .htaccess files (like Apache), the Dokuwiki directories (bin, conf, data, and inc) should be made inaccessible by following the procedure as described in Security

On top of that, it is a good idea to disable the directory listing function in the “mongoose.conf” file.

       enable_directory_listing no
install/mongoose.1580221332.txt.gz · Last modified: 2020-01-28 15:22 by MarkT

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki