-
Notifications
You must be signed in to change notification settings - Fork 58
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
Mind sharing your nginx conf ? #1
Comments
Well it looks like i'm dumb I forgot to add this |
Hi - that is correct, you need a PHP backend for this to work. The example you included will work fine for that purpose. Note that you also need to install |
I successfully installed memcached.so and added it in php.ini by following this post and I get |
This looks like a server misconfiguration. Can you try with the demo server? Connect the app to https://apps.varden.info/demo/hauk/ with password If you run a Debian flavor (Debian, Ubuntu, etc.) on your server, you can install memcached with:
... then adding
|
Oh yeah your server works well I only have GPS issue on my phone so I can't see me on the maps but the app didn't crash. |
It's pretty strange that the app crashes; I can see where in the app source code it happens, but the error itself doesn't make much sense. Since it works on the demo server, though, it's definitely on your server. A few things you can try:
Are you running Debian/Ubuntu or something else? If you can't solve it, I'll set up a VM tomorrow and try setting up nginx + php-fpm from scratch and see if I can reproduce the issue on a fresh install. |
I forgot to add that no, there shouldn't be anything between the quotes when generating the password hash. The exact command to generate the hash is the one you used; it will prompt you for a password in the terminal and then produce a hash $2y..., so you are doing it correctly. You can see how the default hash is set in the default config file here; just replace the hash between the quotes with what the terminal outputs to set the correct password hash for your server instance. |
Well I followed this post and modified just
by |
I haven't been able to set up a VM yet, but I just thought I'd ask - is Docker an alternative for you? I've set up a Docker image that lets you run Hauk without having to install memcached and all that manually. A lot of things are going on so I don't think I can test with a VM tonight. In the meantime, can you try to put the info.php file in your nginx root instead, and not running it via |
Hi sorry for the delay I forgot to remove
Do you have any idea ? And for a Docker image I think it will be the last resort for now if I can't setup a simple php server...lol |
Can you double-check that you use the right unix socket path for php-fpm? Run |
I have now the info.php ! |
That's great, that means PHP is working :-) Double check that info.php says that memcached is active. Does Hauk work now? |
Great to hear that it works now - happy to help :-) By the way, I've completed work on an update to Hauk, v1.0.1. It's not live on the F-Droid store yet, though. Normally you'd get a notification through F-Droid when updates are released, but that won't happen if you don't have the store app. It has some improvements and bugfixes that you might like. So make sure to check back in a couple of days, hopefully it'll be live then. Have a good evening! |
Hi I can't make it work nginx return a 405 error and if I add this
error_page 405 =200 $uri;
I took it from here
It simply send as a static file obviously and the hauk app show me the content of the create.php file
The text was updated successfully, but these errors were encountered: