Therian's avatar

Laravel noob and Freebsd

Hello, I am attempting to get my first Laravel app up and running, at this point I am just attempting to even get to the point where I can see the welcome screen. I am using Freebsd 10.2, apache24, mysql 5.7, and php 5.6. I have followed the documentation to the best of my knowledge and am at the point where I am able to type: laravel new testProject and it will create the project. However when I configure an apache24 vhost to point at the testProject and restart apache, I would expect that i would see the welcome screen when navigating to that domain, However, instead I just see the list of directories and files of the laravel project.

I have been googling around for a few days, I am sure I am just missing something simple and stupid. Any help would be greatly appreciated.

0 likes
10 replies
bashy's avatar

What does your Apache vhost look like?! Can't just say it's not working and expect anyone to go through 100 things that it could be.

Therian's avatar
<VirtualHost *:80>
    DocumentRoot "/usr/local/www/apache24/data/laravelTest"
    ServerName theriannet.zapto.org
    ServerAlias *.theriannet.zapto.org
</VirtualHost>

Therian's avatar

Its a pretty simple vhost, I am just trying to work with Laravel for the first time, since this is my first time, I don't know particularly where to look to debug this. Is there any other information I should provide?

Therian's avatar

Also, I am pretty sure its nothing to do with the Vhost, since its pointing at the correct document root just fine. Its just not showing me the expected route of / which if i understand correctly on a new unaltered project should be the welcome.blade.php template

willvincent's avatar

I know this is an old post but..

I am pretty sure its nothing to do with the Vhost, since its pointing at the correct document root just fine

False. It's not pointing to the correct docroot. Update thusly:

<VirtualHost *:80>
    DocumentRoot "/usr/local/www/apache24/data/laravelTest/public"
    ServerName theriannet.zapto.org
    ServerAlias *.theriannet.zapto.org
</VirtualHost>
ohffs's avatar

Possibly freebsd's apache doesn't have AllowOverride set either so will ignore the htaccess as well. On that note, it's ages since I installed a *bsd - might do that on Friday afternoon to fill in the lunch -> beer o'clock time :-)

willvincent's avatar

@ohffs I think default apache config enables allow override. But likewise, I've not used free/open/net BSD in ... 15+ years. You know, other than the apple flavor, since darwin is BSD after all.

ohffs's avatar

@willvincent yeah - I think it's allowed by default too - but the bsd folk can be a bit more uptight about things ;-) The first *nix-a-like I ever used at home was FreeBSD so I've always had a soft spot for it. I used to use OpenBSD quite a bit at work for bastion-type hosts too - but it's installer was a bit of a pig (c2003) so I kind of fell out of using it as we were 90% Solaris at the time (with a bit of AIX and IRIX thrown in). Happy days... :-)

willvincent's avatar

ahh solaris, that reminds me of self-hosting a website on an ultrasparc from my house for a while back in the day. :D

Please or to participate in this conversation.