jeudi 4 février 2016

Laravel 5 installation on Centos 7 issue

I successfully installed the latest Laravel framework on my Centos 7 VHost. After the composer command was done installing it, I created a new Laravel project. For that I went o /var/www/ and created a folder there called "great" , then I changed directory to enter it, so pwd showed me

/var/www/great/

Then I ran this command:

composer create-project laravel/laravel myproject

The last one, created (as expected) a new folder inside the "great" folder called "myproject"

According to the Laravel installation instructions, I changed my directory to be inside the myproject folder and when I run

php artisan -V

I get:

Laravel Framework version 5.0.16

then I ran the command

php artisan serve --host 192.168.1.60 --port 80

with 192.168.1.60 being my vhost's IP address. So i expect to be able to see the Laravel page from my other computer (windows) when I access the ip in my browser, but it's not happening. All I get in my browser is:

ERR_CONNECTION_TIMED_OUT

At first I tried it without specifying the host or the port... same result. Then I discovered that I need to specify the host in order to be able to access the project from locations other than localhost. So I tried accessing it by going for http://ift.tt/1UN6soM (because that is it's default port). Same result.

I can ping the IP, on Centos side I do not get any error when I run the artisan serve.... What am I doing wrong?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1K00QY5
via IFTTT

Aucun commentaire:

Enregistrer un commentaire