mduplouy / silex-cops

A port of COPS (Calibre OPDS PHP Server) under Silex micro framework
24 stars 9 forks source link

Error after installing #18

Closed sammyizimmy closed 10 years ago

sammyizimmy commented 10 years ago

I followed the instructions to install and I pointed my browser to https://192.168.0.217/silex-cops/web I got redirected to https://192.168.0.217/silex-cops/web/index.php/silex-cops/web/en/ this is what I got.

Sorry, the page you are looking for could not be found. 2/2 NotFoundHttpException: No route found for "GET /silex-cops/web/en/" (from "https://192.168.0.217/silex-cops/")

in /var/www/silex-cops/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 145
at RouterListener->onKernelRequest(object(GetResponseEvent), 'kernel.request', object(EventDispatcher))
at call_user_func(array(object(RouterListener), 'onKernelRequest'), object(GetResponseEvent), 'kernel.request', object(EventDispatcher)) in /var/www/silex-cops/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 164
at EventDispatcher->doDispatch(array(array(object(SessionServiceProvider), 'onEarlyKernelRequest'), array(object(RouterListener), 'onKernelRequest'), array(object(LocaleListener), 'onKernelRequest'), array(object(Firewall), 'onKernelRequest'), array(object(MiddlewareListener), 'onKernelRequest')), 'kernel.request', object(GetResponseEvent)) in /var/www/silex-cops/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 53
at EventDispatcher->dispatch('kernel.request', object(GetResponseEvent)) in /var/www/silex-cops/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php line 126
at HttpKernel->handleRaw(object(Request), '1') in /var/www/silex-cops/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php line 66
at HttpKernel->handle(object(Request), '1', true) in /var/www/silex-cops/vendor/silex/silex/src/Silex/Application.php line 538
at Application->handle(object(Request)) in /var/www/silex-cops/vendor/silex/silex/src/Silex/Application.php line 515
at Application->run() in /var/www/silex-cops/web/index.php line 15

1/2 ResourceNotFoundException:

in /var/www/silex-cops/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php line 96
at UrlMatcher->match('/silex-cops/web/en/') in /var/www/silex-cops/vendor/symfony/routing/Symfony/Component/Routing/Matcher/RedirectableUrlMatcher.php line 30
at RedirectableUrlMatcher->match('/silex-cops/web/en/') in /var/www/silex-cops/vendor/silex/silex/src/Silex/LazyUrlMatcher.php line 51
at LazyUrlMatcher->match('/silex-cops/web/en/') in /var/www/silex-cops/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 127
at RouterListener->onKernelRequest(object(GetResponseEvent), 'kernel.request', object(EventDispatcher))
at call_user_func(array(object(RouterListener), 'onKernelRequest'), object(GetResponseEvent), 'kernel.request', object(EventDispatcher)) in /var/www/silex-cops/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 164
at EventDispatcher->doDispatch(array(array(object(SessionServiceProvider), 'onEarlyKernelRequest'), array(object(RouterListener), 'onKernelRequest'), array(object(LocaleListener), 'onKernelRequest'), array(object(Firewall), 'onKernelRequest'), array(object(MiddlewareListener), 'onKernelRequest')), 'kernel.request', object(GetResponseEvent)) in /var/www/silex-cops/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 53
at EventDispatcher->dispatch('kernel.request', object(GetResponseEvent)) in /var/www/silex-cops/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php line 126
at HttpKernel->handleRaw(object(Request), '1') in /var/www/silex-cops/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php line 66
at HttpKernel->handle(object(Request), '1', true) in /var/www/silex-cops/vendor/silex/silex/src/Silex/Application.php line 538
at Application->handle(object(Request)) in /var/www/silex-cops/vendor/silex/silex/src/Silex/Application.php line 515
at Application->run() in /var/www/silex-cops/web/index.php line 15
mduplouy commented 10 years ago

Hi, and thank you for contributing ;)

I guess it is a directory / apache misconfiguration.

Your DocumentRoot configuration, should point to the web/ directory in the silex cops structure, is it the case ?

If you want more assistance, can you provide me with your host configuration ?

mduplouy commented 10 years ago

I just realized I did not provide any http server configuration info.. shame on me !

sammyizimmy commented 10 years ago

"Your DocumentRoot configuration, should point to the web/ directory in the silex cops structure, is it the case ?" That's what was wrong! I guess I missed that. Fixed it and it works great now. Thank!

mduplouy commented 10 years ago

My mistake, i just forgot to mention it as it was so obvious to me

Hope the app will make you happy with :)