Skip to main content
Topic: Laravel setup issue (Read 4376 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Laravel setup issue

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


Re: Laravel setup issue

Reply #1

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.

Re: Laravel setup issue

Reply #2

@Spuds

No luck. When I start XAMPP it shows XAMPP dashboard. :(

Re: Laravel setup issue

Reply #3

Also, when use php artisan serve, it says

Could not open input file: artisan

Re: Laravel setup issue

Reply #4

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

Re: Laravel setup issue

Reply #5

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.
Last Edit: February 14, 2016, 10:16:53 am by ahrasis

Re: Laravel setup issue

Reply #6

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 )

Re: Laravel setup issue

Reply #7

So did your problem arise when you used it locally or from outside of your network?

Re: Laravel setup issue

Reply #8

While using locally.

Re: Laravel setup issue

Reply #9

Can you access it via localhost or 127.0.0.1?

Re: Laravel setup issue

Reply #10

Nope.

Re: Laravel setup issue

Reply #11

Try repeating last part of step 3, check your configuration as in in step 5 and reload apache.

Re: Laravel setup issue

Reply #12

Did, still no luck.

Re: Laravel setup issue

Reply #13

If this helps

Quotephp artisan serve
Could not open input file: artisan

Re: Laravel setup issue

Reply #14

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.