Install laravel 4 from pagodabox breaks on localhost

How do I get laravel to work on the local host from pagodabox? I installed laravel 4 through the pagoda box and then cloned it to localhost. Then I completed the composer installation to get all the dependencies and updates. When I try to navigate the URI to a shared directory, it does not show me the "you came" screen. Instead, I get the following error message:

The connection attempt failed because the connected side did not respond properly after some time or the connection could not be established because the connected host could not respond. [TCP: //tunnel.pagodabox.com: 6379]

Then I looked through β€œdatabase.php” and noticed that the redis array was changed, so I copied the same from a new Laravel installation, but then I got the following error:

No connection can be made because the target machine has actively abandoned it. [TCP: //127.0.0.1: 6379]

+4
source share
2 answers

I had the same problem, just change bootstrap> start.php file , find

'local' => array('your-machine-name')

and change it to your computer name.

This video will help me deal with this: http://www.youtube.com/watch?v=CJoU-LO8Ufo , in the video it changes it to a virtual host, but this did not work for me, I had to put my computer name.

On a Mac, the computer name can be found by typing hostname in the terminal.

+8
source

Joshcid's answer is for some, but not all. I found this in my boot file> start.php:

 'local' => array('homestead') 

... and changing this variable in any way caused my laravel application to not load at all. Not only that, but in the new laravel installation, this local variable had the same value as "homestead".

After spending a little time in WinMerge, I found that you should use Wayne's hint about the change

 'redis' => array( 'cluster' => false, 'default' => array( 'host' => 'tunnel.pagodabox.com', 'port' => 6379, 'database' => 0, ), ), 

to

 'redis' => array( 'cluster' => false, 'default' => array( 'host' => '127.0.0.1', 'port' => 6379, 'database' => 0, ), ), 

at the bottom of the app> config> database.php file, you should also go to the top of the app> config> session.php file and change

 'driver' => 'redis', 

to

 'driver' => 'file', 

... like a fresh install. Now you can view your application!

+1
source

Source: https://habr.com/ru/post/1494840/


All Articles