Hi, I had the same issue on my local machine. I'm running Linux Mint 17 Cinnamon and this issue is apparently a PHP issue. Mine was that the php5-xcache module was causing this error. I found it out by removing PHP completely from my system and then by installing each php module one at a time I got this error finally when I ran php artisan serve after I installed the php5-xcache module. So I removed it and it all worked splendidly after that, then continued to install each module I wanted to have and didn't experience any problem with any of the other modules.
It might be something else with your machine, but bear ini mind that many believe this to be an Apache/Nginx issue which it is not. This is a bug with php and you don't need to google around the internet long before you find out that it's php.
Try removing php by purging it and then one by one, install each php module. First install php5-cli, php5-mcrypt, and php5-json alltogether and try running php artisan serve, then install one module at a time and run php artisan serve after each install. Worked for me and I bet that it should work for you.
villimagg, you are a life saver. I was really frustated until I saw your post here. Reinstalled Ubuntu, apache, php5, mysql couple of time with no success. Thanks for this clue. php5-xcache it is. Here's what I did on my ubuntu terminal:
sudo php5dismod xcache
sudo service apache2 restart
Issued this composer command ( from /var/www/html/ directory ): composer create-project laravel/laravel mylaravel --prefer-dist
cd mylaravel/
php artisan serve
Browsed mylaravel app at: http://localhost:8000
Thanks
Yamin
villimagg said:
Hi, I had the same issue on my local machine. I'm running Linux Mint 17 Cinnamon and this issue is apparently a PHP issue. Mine was that the php5-xcache module was causing this error. I found it out by removing PHP completely from my system and then by installing each php module one at a time I got this error finally when I ran php artisan serve after I installed the php5-xcache module. So I removed it and it all worked splendidly after that, then continued to install each module I wanted to have and didn't experience any problem with any of the other modules.
It might be something else with your machine, but bear ini mind that many believe this to be an Apache/Nginx issue which it is not. This is a bug with php and you don't need to google around the internet long before you find out that it's php.
Try removing php by purging it and then one by one, install each php module. First install php5-cli, php5-mcrypt, and php5-json alltogether and try running php artisan serve, then install one module at a time and run php artisan serve after each install. Worked for me and I bet that it should work for you.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community