2

Everything went well, I've run laravel new, /etc/apache2/sites-available/laravel.example.com.conf:

<VirtualHost *:80>

        ServerName laravel.example.com
        DocumentRoot /var/www/blog/public

        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/blog>
                AllowOverride All
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        LogLevel warn
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Then

a2ensite laravel.example.com

And reloaded apache and add "127.0.0.1 laravel.example.com" >> /etc/hosts

Now when I go to http://laravel.example.com the source code of index.php is printed

Doom5
  • 857
  • 9
  • 18
Ibucalmin
  • 27
  • 1

2 Answers2

0

A white page may be cause by many problems. Try to chmod -R 0777 storage folder, maybe Laravel does not have the permissions to write in that folder and will not even be able to show the error page. Or you may check your apache error logs

Blue Genie
  • 1,897
  • 1
  • 16
  • 19
0

Have you defined the "DirectoryIndex" in your virtualhost file? It seems that it's not defined.

Rav
  • 1,327
  • 3
  • 18
  • 32