bencarter78
bencarter78

Reputation: 3885

Installing Laravel on EC2 Instance

I'm brand new to AWS and this has got me stumped. I'm trying to install Laravel 4 on an instance I have on EC2 running the AMI Linux package. I don't have a domain for this, just using the free tier and trying it out.

Laravel needs to have the laravel/public folder as the document root but I can't work out how to do this. I've read loads of things about the conf.d folder vhosts file httpd.conf file and I don't really understand how it all fits together.

Can someone help me and tell me how I can set my documnent root so that when i visit my Elastic IP address it loads up correctly?

Thanks

Upvotes: 3

Views: 2270

Answers (1)

Manuel
Manuel

Reputation: 846

If you want to access your laravel app by server ip you need to edit your httpd.conf file (usually in /etc/apache2 or /etc/httpd) and set the DocumentRoot option to the right directory.

DocumentRoot /var/www/laravel/public

and then restart apache

Upvotes: 5

Related Questions