Dies ist eine alte Version des Dokuments!
Inhaltsverzeichnis
Mongoose
Mongoose ist ein einfach zu bedienender Webserver. Er kann auch als eingebettete Webserver-Bibliothek verwendet werden, um Anwendungen eine Webschnittstelle zur Verfügung zu stellen.
Das ausführbare Programm Mongoose ist nicht von einer externen Bibliothek oder Konfiguration abhängig.
Wenn es in ein beliebiges Verzeichnis kopiert und von dort gestartet wird, beginnt es, dieses Verzeichnis auf Port 8080
zu bedienen. (für den Zugang zu den Dateien gehen Sie bitte auf http://localhost:8080).
Wenn eine zusätzliche Konfiguration erforderlich ist - z.B. ein anderer Listening-Port oder eine IP-basierte Zugriffskontrolle,
dann kann eine Datei mongoose.conf mit entsprechenden Optionen im gleichen Verzeichnis erstellt werden, in dem die ausführbare Datei befindet. Dies macht Mongoose perfekt für alle Arten von Demos, Schnelltests, Dateiaustausch und Web-Programmierung.
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 URL „http://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