1

I installed laravel 5 on Ubuntu ( last version ) with Plesk 11; I chmod the storage folder to 777, and till now I get a blank page.

I have installed mcrypt, but nothing happen, still a blank page display, also there is no source code inside it, strange...

Any help ?

bbparis
  • 127
  • 5
  • Check your php, apache and mysql logs. If even you can't seem to find out what's going how can we find out? – Fabio Antunes Apr 24 '15 at 13:00
  • Be sure to check the mounting point of your Apache's virtual host to Laravel `public` folder, so, `public_html/public` Also, depending on which modules you enabled in Plesk, permission 777 would be rejected for security reasons. – Paulo Coghi Apr 24 '15 at 13:03

1 Answers1

0

You can get more ideas from error_log of your apache which tells you exactly what goes wrong.

Most often it is related to permissions even though you say you changed it to 777. Other common issue is some of the Laravel dependencies missing from PHP.

Thirdly everything can be OK and your controller just does not return anything :)

Make sure that DocumentRoot goes to the public folder in the Laravel installation

Margus Pala
  • 8,433
  • 8
  • 42
  • 52
  • Thanks Margus, this is my homeController : – bbparis Apr 24 '15 at 13:35
  • I am glad that my comments helped. If all is good then you can accept the answer to close the question. – Margus Pala Apr 24 '15 at 13:36
  • Sorry I cant' past here myController, but I think it is not from it, as it is working fine on local server. I think something missing on the server, on UBUNTU, but I don't know what exactly – bbparis Apr 24 '15 at 13:47
  • Yes, this must be related to your environment. Server error_log must tell you what is the cause of Laravel not able to boot up. Make sure your DocumentRoot is public folder – Margus Pala Apr 24 '15 at 13:50
  • How to do that Margus ? and how to check error_log ? – bbparis Apr 24 '15 at 13:59
  • Check your server host, you must find error_log there. Use https://forge.laravel.com/ if there is trouble configuring your environment – Margus Pala Apr 24 '15 at 14:03
  • 1
    I found that the website works fin with index.php, but not without it – bbparis Apr 27 '15 at 11:44
  • In this case it is related to Apache config. Please add `DirectoryIndex index.php` into the public/.htaccess as described here http://stackoverflow.com/questions/2384423/index-php-not-loading-by-default – Margus Pala Apr 27 '15 at 11:49
  • It is not work, this is my .htaccess Options -MultiViews RewriteEngine On # Redirect Trailing Slashes... RewriteRule ^(.*)/$ /$1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] DirectoryIndex index.php – bbparis Apr 27 '15 at 12:04