I have an EC2 server set up with Ubuntu 16 with a LAMP installation & Symfony3. 

The server is online, so there is no issue there. 

I have uploaded my Symfony files to /var/www/html/project and successfully set up my parameter.yml file, set up database, and have gone through all of the installation requirements. I have run through composer.phar install, doctrine:schema:update, etc - It is all works.

I have changed my 000-default.conf to the following and have restarted apache. 

```
<VirtualHost *:80>
    ServerName site.com
    ServerAlias dev.site.com

        ServerAdmin admin@site.com
        DocumentRoot /var/www/html/project/web
        DirectoryIndex app.php
        <Directory /var/www/html/project/web >
                DirectoryIndex app.php
                AllowOverride All
                Allow from All
        </Directory>

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf

</VirtualHost>

```

> 
> Now, when I go to view my site I get 
> 
> 
> This page isn’t working
> 
> 
> dev.site.com is currently unable to handle this request. HTTP ERROR
>  500
> 
> 
> 

So, to test and see if the 000-default.conf configuration is set up to correctly route to my Symfony installation I edited my web/app.php file and put an echo 1; die; at the header. I can then get "1" to show up on the page, so I know that the server is working and the default site is working and routing all requests to the right place. 

**When I look in my error.log I get the following which I am not sure what to do or how to address this error:** 

> 
> Uncaught TypeError: Return value of
>  Doctrine\Common\Annotations\AnnotationRegistry::registerLoader()
>  must be an instance of Doctrine\Common\Annotations\void, none
>  returned in
>  /var/www/html/project/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php:117\nStack
>  trace:\n#0 /var/www/html/rekonnect/app/autoload.php(9):
>  Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(Array)\n#1
>  /var/www/html/project/web/app.php(6):
>  require('/var/www/html/p...')\n#2 {main}\n thrown in
>  /var/www/html/project/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php
>  on line 117
> 
> 
> 

I have looked in the var/logs/prod.log and can find nothing in there stating why my project is throwing a 500 error. 

I am not sure what to do next to get my Symfony project to show up in the browser. Any help?