I have trouble with Symfony od my new server - if I want to run Demo application, have error message in log:
request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /var/www/test/app/cache/prod/classes.php line 1881 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException: No route found for \"GET /\" at /var/www/test/app/cache/prod/classes.php:1881, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException: at /var/www/test/app/cache/prod/appProdUrlMatcher.php:30)"} []
But when I try run local server, application on 127.0.0.1:8000 functions normally.
My config file for Apache VirtualHost is:
<VirtualHost *:80>
ServerName www.domain.cz
ServerAlias domain.cz
DocumentRoot /var/www/test/web
<Directory /var/www/test/web>
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Can you help me with this issue?
/path. If you're trying to run the AcmeDemoBundle, make sure you've followed all the steps for installation (such as runningcomposer installandphp app/console cache:clear --env=prod. Try accessing the demo bundle fromapp_dev.phpinsteadDirectoryIndex app.phpfor the routing component to work. I didn't see that instruction on your vhost.