php_build-in_webserver
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
php_build-in_webserver [2018-01-08 14:06] – jroeterd | php_build-in_webserver [2022-12-14 17:21] – Changed build-in to built-in in title 2a10:3781:2b13:1:e105:4e0b:539b:45a4 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== PHP build-in webserver ====== | + | ====== PHP built-in webserver ====== |
- | When installing DokuWiki as a desktop wiki on a Mac (and possible also other OS) only PHP is needed. You can use the build-in PHP webserver. See [[http:// | + | When installing DokuWiki as a desktop wiki on a personal computer, |
- | Your Mac comes with PHP included. As I am on OS X El Capitan my included PHP version | + | Installing |
- | Download | + | Once PHP is installed, [[http:// |
- | //php -S localhost: | + | |
- | This will start the PHP webserver. | + | This will start the PHP webserver. |
- | ==== DokuWiki.app | + | ===== Further settings ===== |
- | 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 safe Automator askes you where to store the .app file. You can safe it in you Applications folder. | + | |
- | When you start it the server will be started without a terminal window. To close the webserver | + | The index.php script even handles URL rewriting. So you can set [[config: |
- | ==== Experiences ==== | + | ===== Running DW without the terminal ===== |
- | 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. | + | |
+ | |||
+ | 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> | ||