-
Notifications
You must be signed in to change notification settings - Fork 24
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
Missing setup doc: PHP rewrite, cron & data dir #92
Comments
I did not tested with nginx. Apache does not require any special configuration.
Could you please test? Should be documented in README afterwards. README is a little bit outdated...
Added some instructions to README by b7d7953. Basically it's not such important how often or even if cron.php is executed since api checks if poll has expired on every request. |
Okay, actually it also nearly works with the default nginx config. At least one Debian the config files already have this included... |
You are really missing some setup steps.
E.g. you do a request
/api/index.php/polls
, which usually returns a 404 error as such a file (dir:/api/index.php
, file:polls
) does not exist.This means some kind of server rewrite is needed. Can you say me which one for nginx?
In what format should this requests be passed to index.php.
/api/index.php?polls
e.g.?Furthermore you say the cron.php should be called by cron, but there is no explanation 1) how to protect that file (server config or permissions set...) and 2) how to setup a croon job for this (most user won't even know they have to do this, because it is only said in the PHP file itself).
You also don't say what interval you would recommend for this cron task...
Finally there should also be an explanation how to protect the
data
directory. This is mostly quite easy.The text was updated successfully, but these errors were encountered: