Question

Laravel 4 installation oc Centos 6 show only first page

  • Posted February 1, 2014

Hello guys, i got a problem after i finish to set up LAMP and installed my laravel 4 application. Everything seem went well, when i go on my ip address url, it show me the first page of my application correctly, but all the rest of the page throw me an 404 error The requested URL was not found on this server.

So I added to my httpd.conf (under the virtual host of my project) -

AllowOverride All Order allow,deny

like so: <VirtualHost *:80> ServerName MY-IP-SERVER DocumentRoot /var/www/html/nextmatch/public_html/public/

   <Directory /var/www/html/nextmatch/public_html/public/>
     AllowOverride all
     Order allow,deny
      <IfModule mod_rewrite.c>
      Options -MultiViews
      RewriteEngine On
      RewriteCond %{REQUEST_FILENAME} !-f
     RewriteRule ^ index.php [L]
   </IfModule>

And now when i try to navigate instead the 404 error i got Forbidden

You don’t have permission to access this server.

I set up with chmod 775 -R path/laravel/ and the folder storage with 777 but still i got the same error any suggest please? I cannot figure out to this problem i’m getting crazy! Thank you for any help.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

(Since the tags were stripped out, I posted your virtualhost <a href=“https://p.kk7.me/rimagavido.apache”>here</a> for future reference.) <br> <br>Is the rewrite module enabled? See <a href=“https://www.digitalocean.com/community/questions/how-to-active-sudo-a2enmod-rewrite-for-centos”>https://www.digitalocean.com/community/questions/how-to-active-sudo-a2enmod-rewrite-for-centos</a>.