Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implements a router for the PHP builtin webserver #1383

Merged
merged 2 commits into from Jan 29, 2016
Merged

Conversation

splitbrain
Copy link
Collaborator

PHP comes with a builtin webserver for development purposes. This adds
the needed routing and also enables rewriting compatible to out
userewrite=1 setting. It also implements basic access security (denying
access to the data directory and similar directories)

A PHP based webserver running DokuWiki can now be started with
php -S localhost:8000 index.php

PHP comes with a builtin webserver for development purposes. This adds
the needed routing and also enables rewriting compatible to out
userewrite=1 setting. It also implements basic access security (denying
access to the data directory and similar directories)

A PHP based webserver running DokuWiki can now be started with
php -S localhost:8000 index.php
@michitux
Copy link
Collaborator

I've just tested this, this works very well for me and is a great feature. 👍 I have only one question: why do you deny access to install.php? I'm asking because this means that you cannot install the wiki without using a web server (or copying all configuration files from another wiki). I think especially for use cases like DokuWiki on a stick it would be good to be able to execute install.php.

@splitbrain
Copy link
Collaborator Author

good question. no idea why I excluded it. I updated the script accordingly.

@scrutinizer-notifier
Copy link

The inspection completed: No new issues

splitbrain added a commit that referenced this pull request Jan 29, 2016
implements a router for the PHP builtin webserver
@splitbrain splitbrain merged commit f829245 into master Jan 29, 2016
@splitbrain splitbrain deleted the httprouter branch January 29, 2016 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants