DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

install:mongoose

Mongoose

Mongoose is easy to use web server. 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.txt · Last modified: 2017-09-21 17:27 by 217.58.8.110