Search code examples
phpsymfonyubuntulamp

Install Symfony on distant server


I try to instal symfony on a distant ubuntu server (I'm connecting to it by ssh) so I install PHP7.2, LAMP, composer and symfony.

Next I launch symfony server using: php bin/console server:run and it says

[OK] Server listening on http://127.0.0.1:8000

Where http://xx.xxx.xxx.xx/ is the adress of the server : When I go to the adress : http://xx.xxx.xxx.xx/phpmyadmin/index.php I get the phpmyadmin page When i go to the adress : http://xx.xxx.xxx.xx : I get my apache page.

But how do I go to my symfony page? I try http://xx.xxx.xxx.xx:8000 but it's not working

I try to follow the information on this page: https://symfony.com/doc/current/setup/built_in_web_server.html

but when I do it I get the error :

php bin/console server:start 34.254.242.93:8080

And I still get the same error.


Solution

  • There are some resources available to deploy correctly your application: