php_build-in_webserver
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| php_build-in_webserver [2022-04-05 05:10] – [Experiences] add link to original user in his personal commend schplurtz | php_build-in_webserver [2023-09-19 13:48] (current) – moved to install:php-webserver andi | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== PHP build-in webserver ====== | ||
| - | |||
| - | When installing DokuWiki as a desktop wiki on a personal computer, only PHP is needed. You can use the build-in PHP webserver. It avoids the hassle of installing and configuring a web server. See [[http:// | ||
| - | |||
| - | Installing PHP on windows is really easy thanks to [[https:// | ||
| - | |||
| - | Once PHP is installed, [[http:// | ||
| - | |||
| - | php -S localhost: | ||
| - | |||
| - | This will start the PHP webserver. For the first time, go to http:// | ||
| - | |||
| - | ===== Further settings ===== | ||
| - | |||
| - | The index.php script even handles URL rewriting. So you can set [[config: | ||
| - | |||
| - | ===== Running DW without the terminal ===== | ||
| - | |||
| - | |||
| - | On macos and Linux, you can close the terminal if you use this command : | ||
| - | |||
| - | nohup php -S localhost: | ||
| - | |||
| - | If you want to stop the PHP webserver, open a terminal and run | ||
| - | pkill php | ||
| - | |||
| - | |||
| - | -------------- | ||
| - | |||
| - | |||
| - | On a mac you can use Automator to create an APP file. Choose to create an application and choose to run a terminal command. Use the command mentioned above. When you save Automator asks you where to store the .app file. You can save it in your Applications folder. | ||
| - | |||
| - | Add ''&>/ | ||
| - | |||
| - | When you start it the server will be started without a terminal window. To close the webserver you need to kill the php process in the ActivityMonitor. | ||
| - | |||
| - | ===== Experiences ===== | ||
| - | |||
| - | I am running a vanilla DokuWiki without any additional plugins with this install method for a couple of days now without any trouble. As mentioned on the PHP build-in webserver page this install is not usable for any production environment. But seems to me it is ok for a local desktop wiki. -- [[user> | ||
php_build-in_webserver.1649128233.txt.gz · Last modified: by schplurtz
