Reputation: 300
I have been looking for information on google, laravel forums and youtube all day but no luck, hopefully someone can help.
I am currently trying to setup a website which was built by a web design company on my local machine but I it doesn't seem to be letting me do so.
At the moment the things I have done to get the website running locally are:
DocumentRoot "C:\wamp\www\ryl\public"
ServerName rateyourlecturer.dev
127.0.0.1 localhost
127.0.0.1 rateyourlecturer.dev
But when I go and type rateyourlecturer.dev into the address bar the following error message appears "403 Forbidden - You don't have permission to access / on this server."
If anyone can help me solve this problem I will be really grateful.
Upvotes: 0
Views: 2207
Reputation: 21
*Follow its strictly,its 100% work *
1.you have to put laravel in C:\wamp\www folder
2.then u have to go application/config ....open application.php and change url='';
3.change key='K3u4UsHKh7AjSitP9VLTMtbd1mjvdzmQ'
4.then u have to go int C:\wamp\bin\apache\Apache2.2.21\conf\extra folder then open <<=== httpd-vhosts.conf ===>> file and paste below this line into that folder
DocumentRoot C:/wamp/www/laravel/public ServerName xxxxx.dev
5.then go C:\Windows\System32\drivers\etc folder and open <<=== hosts ===>> file then paste 127.0.0.1 xxxxx.dev
6.then go C:\wamp\www\laravel\public folder ...and then open a.htaccess ..then paste Options +FollowSymLinks RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L] 7.Then u have to go >> C:\wamp\bin\apache\apache2.2.22\conf << this directory & open httpd.conf & comment out this line
Include conf/extra/httpd-vhosts.conf
8.then go wamp server .....start it ..and click rewrite mode in apache->apache module..then restart wamp server
9.then go ur browser and write xxxxx.dev/docs ...
Upvotes: 0
Reputation: 6916
I simply added these codes in my httpd.conf, and it worked well:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "C:/wamp/www/project_name/public"
ServerName project_name.dev
</VirtualHost>
<Directory "C:/wamp/www/project_name/public">
Options Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
More information, here (it's for laravel 3, but vhost solution works for l4 etc, too)
Upvotes: 1