M
M
Matvey Mamonov2015-07-28 17:20:53
Nginx
Matvey Mamonov, 2015-07-28 17:20:53

Why is Laravel not taking off?

In general, there is a server, NginX is installed on it. I decided to play with Laravel, threw it with a composer in the right folder (~/workspace/laravel).
There is this NginX config:

server {
    set $root "/home/matt/workspace/laravel/public";

    listen 80;
    server_name laravel;
    root $root;

    access_log  /home/matt/workspace/log/laravel.access.log;
    error_log  /home/matt/workspace/log/laravel.error.log;
    
    index index.php;

    location / {
  try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        fastcgi_pass   127.0.0.1:9000;
  fastcgi_index  index.php;
  fastcgi_param  SCRIPT_FILENAME  $root$fastcgi_script_name;
  include        fastcgi_params;
    }
}

But Laravel doesn't work for some reason. It doesn't give any errors, just a blank white page. Either way it's the same. What could be the matter?
error log
#0 /home/matt/workspace/laravel/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\Handler\StreamHandler->write(Array)
#1 /home/matt/workspace/laravel/vendor/monolog/monolog/src/Monolog/Logger.php(269): Monolog\Handler\AbstractProcessingHandler->handle(Array)
#2 /home/matt/workspace/laravel/vendor/monolog/monolog/src/Monolog/Logger.php(545): Monolog\Logger->addRecord(400, Object(Symfony\Component\Debug\Exception\FatalErrorException), Array)
#3 /home/matt/workspace/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(49): Monolog\Log

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
Bohdan Stadnyk, 2015-07-28
@Humble_Beck

It might be a file permissions issue.

E
Extor, 2015-07-28
@Extor

If you're using an RH-like system, SELinux may be doing the trick.
Try to set it to Permissive with the command:
setenforce 0

E
Evgeny Elchev, 2015-08-06
@rsi

Which laravel? What PHP? in laravel there are configs /config/app.php set there Debag to true, it will start displaying errors if these are its errors. The stack trace you threw in looks incomplete.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question