Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Artisan returns blank

Whenever I run any php artisan command like php artisan list, I get nothing back. No commands work at all.

I have been searching a little around, and have tried the following:

  • changing permissions for /root/.composer to 777
  • remove bootstrap/compiled.php file

There is nothing in app/storage/logs/log-cli-.txt.
I can view the site in the browser.

I'm running on CentOS 6.3 64bit with PHP v. 5.5.11 - Laravel 4.1

like image 406
Mark Topper Avatar asked May 13 '14 21:05

Mark Topper


1 Answers

This problem is pretty common and is usually related to some errors that are not seen in the CLI like custom classes that failed to load, are you sure you have error reporting on?

Edit the file artisan and add the following lines just after the PHP opening tag <?php:

ini_set('display_errors',1);
error_reporting(-1);

Try running artisan again and see if there is any output.

If that doesn't work try reverting app/start/global.php to it's default state.

like image 189
Sergey Telshevsky Avatar answered Sep 27 '22 20:09

Sergey Telshevsky