You can run the following command in console:
php app/console server:run
For versions 2.8 and below
php bin/console server:run
For versions 3 onwards.
This will use the BUILT-IN php server, enabling (usually) the url localhost: 8000 with the development environment.
Another option is to configure an apache vhost (I see that it is your server)
You can see how to do it in link , but in broad strokes, you need this:
<VirtualHost *:80>
ServerName domain.tld
ServerAlias www.domain.tld
DocumentRoot /var/www/project/web
<Directory /var/www/project/web>
AllowOverride All
Order Allow,Deny
Allow from All
</Directory>
# uncomment the following lines if you install assets as symlinks
# or run into problems when compiling LESS/Sass/CoffeeScript assets
# <Directory /var/www/project>
# Options FollowSymlinks
# </Directory>
ErrorLog /var/log/apache2/project_error.log
CustomLog /var/log/apache2/project_access.log combined
</VirtualHost>
Where domain.tld
is the domain that you will use to access (can be localhost or a domain redirected to your host) www.domain.tld
is an alias of that domain (a secondary one, if you use it) and /var/www/project/web
is the path to the web
folder of your project in symfony.