rodber / chevereto-free

👉 Go to chevereto/chevereto for newer Chevereto releases. Self-hosted image sharing software, your own Flickr/Imgur with your very own rules.
https://github.com/chevereto/chevereto
GNU Affero General Public License v3.0
2.77k stars 500 forks source link

404 install not found #20

Closed h4knet closed 7 years ago

h4knet commented 7 years ago

Hello, Can't install Chevereto.. Tried with web installer and unziping lastest release but "install" dir or file is missing...

Am I missing something ?

rodber commented 7 years ago

You are missing something like a url rewrite module / rules. Not script issue.

h4knet commented 7 years ago

Ok fixed; missed AllowOverride All in vhost config..

Maybe you could add this check in the web_installer to prevent other people get the same issue ?

Thanks for help!

rodber commented 7 years ago

You can't check that from PHP.

h4knet commented 7 years ago

Hum; I'm not a PHP dev but I do believe you can. Owncloud/Nextcloud does it when you run their installer (and it's an appreciated feature); therefore a quick check on Google seems to show it's possible too : https://stackoverflow.com/questions/9021425/how-to-check-if-mod-rewrite-is-enabled-in-php

Thanks anyway for your help :) Have a good day !

bykidi commented 7 years ago

as a nextcloud owner - can confirm. nextcloud installation checks for overrides when installing it

rodber commented 7 years ago

In case you didn't notice, Chevereto already checks if the module is there in app/lib/integrity-check.php

Thing is that check if a module is "on" doesn't tell you if the virtual host is configured properly.

I don't know how Nextcloud checks that stuff, I wasn't able to find any of that in the code. The thing is that, in most cases, PHP can't read the virtual host file (and read/parse that file on every load is not feasible).

I assume that Nextcloud does some validation using something else, maybe a HTTP head request to a /virtual-path or a shell script. It won't surprise me since that system needs lots of plugs in the webserver to work with.