ElkArte Community

General => Chit Chat => Topic started by: meetdilip on February 13, 2016, 12:00:00 pm

Title: Laravel setup issue
Post by: meetdilip on February 13, 2016, 12:00:00 pm
I am using Ubuntu 14.04 and tried everything as per this guide : http://tecadmin.net/install-laravel-framework-on-ubuntu/

I now have Laravel installed but cannot preview it when typing http://laravel.example.com in browser

It says, but I have 777 given to laravel folder in home.

QuoteForbidden

You don't have permission to access / on this server.
Apache/2.4.18 (Ubuntu) Server at laravel.example.com Port 80

Title: Re: Laravel setup issue
Post by: Spuds on February 13, 2016, 12:11:57 pm
I'd try changing
Code: [Select]
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
to
Code: [Select]
        <Directory />
                Options FollowSymLinks
                Allow from all
        </Directory>
May help, if not since you have done 777, its something in your httpd.conf file that is blocking ... but I don't really use Apache these days so can't say for sure.
Title: Re: Laravel setup issue
Post by: meetdilip on February 14, 2016, 04:24:06 am
@Spuds

No luck. When I start XAMPP it shows XAMPP dashboard. :(
Title: Re: Laravel setup issue
Post by: meetdilip on February 14, 2016, 04:33:13 am
Also, when use php artisan serve, it says

Could not open input file: artisan
Title: Re: Laravel setup issue
Post by: meetdilip on February 14, 2016, 04:47:25 am
This is my hosts file

Quote127.0.0.1   localhost

127.0.1.1   wiz-Vostro-3550

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.0.1  laravel.example.com
Title: Re: Laravel setup issue
Post by: ahrasis on February 14, 2016, 10:07:49 am
You mean domain name you were using was laravel.example.com? Normally, you must use a working domain name for it to be tested from outside of your network.

QuoteAt this point you have successfully completed Laravel 5 PHP framework on your system. Now make host file entry to access your Laravel application in web browser. Change 127.0.0.1 with your server ip and laravel.example.com with your domain name configured in Apache.

Code: [Select]
$ sudo echo "127.0.0.1  laravel.example.com" >> /etc/hosts

And access http://laravel.example.com in your favorite web browser as below.

Test it with localhost from within the server or its local network ip first from other pc. I never used this, so this is just a thought.
Title: Re: Laravel setup issue
Post by: meetdilip on February 14, 2016, 10:11:48 am
QuoteYou mean domain name you were using was laravel.example.com? Normally, you must use a working domain name for it to be tested from outside of your network.

Yes. It worked fine for me previously. I tested on laptop ( locally )
Title: Re: Laravel setup issue
Post by: ahrasis on February 14, 2016, 10:19:02 am
So did your problem arise when you used it locally or from outside of your network?
Title: Re: Laravel setup issue
Post by: meetdilip on February 14, 2016, 10:23:03 am
While using locally.
Title: Re: Laravel setup issue
Post by: ahrasis on February 14, 2016, 10:29:50 am
Can you access it via localhost or 127.0.0.1?
Title: Re: Laravel setup issue
Post by: meetdilip on February 14, 2016, 10:34:47 am
Nope.
Title: Re: Laravel setup issue
Post by: ahrasis on February 14, 2016, 10:37:57 am
Try repeating last part of step 3, check your configuration as in in step 5 and reload apache.
Title: Re: Laravel setup issue
Post by: meetdilip on February 14, 2016, 10:49:06 am
Did, still no luck.
Title: Re: Laravel setup issue
Post by: meetdilip on February 14, 2016, 10:50:49 am
If this helps

Quotephp artisan serve
Could not open input file: artisan
Title: Re: Laravel setup issue
Post by: ahrasis on February 14, 2016, 10:56:23 am
Your key, as in step 4, have check that? Try to disable that key, and set the config/app.php back to default (without key). You could have inserted a wrong key or set a wrong cipher.
Title: Re: Laravel setup issue
Post by: emanuele on February 14, 2016, 11:02:15 am
https://www.google.com/search?q=Could%20not%20open%20input%20file:%20artisan

Sad but true: search google is usually faster than ask on forums. xD
Title: Re: Laravel setup issue
Post by: meetdilip on February 14, 2016, 11:08:07 am
Ah ! Yes. I cd into the project directory and run php artisan serve. It helps to show the project at http://localhost:8000/

Thanks @ahrasis , @emanuele
Title: Re: Laravel setup issue
Post by: meetdilip on February 14, 2016, 11:50:52 am
Does any of you have good Laravel ebooks ?
Title: Re: Laravel setup issue
Post by: emanuele on February 14, 2016, 02:41:36 pm
I tried to look at it once, but didn't spend too much resources...