404 page
blink2004 opened this issue · comments
Hi,
Creating first Symfony app by tutorial https://symfony.com/doc/current/page_creation.html.
-
Done all from the page above.
-
Installed apache-pack by command:
composer require symfony/apache-pack
-
Check routes by command
$ php bin/console debug:router
:
Name Method Scheme Host Path ... app_lucky_number ANY ANY ANY /lucky/number -
Opened in browser
http://<server_ip>/symfony/lucky/number
and get 404 Apache error.
Opened in browserhttp://<server_ip>/symfony/public/
and OK.
Opened in browserhttp://<server_ip>/symfony/public/index.php/lucky/number
and OK. -
Server:
Q A OS 5.8.0-50-generic #56~20.04.1-Ubuntu SMPx86_64 Web Server 2.4.41 PHP 7.4.3
It can be a handful of things. Is .htaccess
enabled in subdirectries? Will it be the same if you set up a virtual host?
I suggest checking on slack's #support or some other support channels: https://symfony.com/support