Local error with Laravel 5.1 on Ubuntu 14.04

Looked at previous articles here, but no luck. I just installed Laravel 5.1 through composer. I follow the official installation documentation located here . I do not use the estate, and I do not use the virtual environment. While everything is working fine, I had a problem placing the project on my web server. Although regular PHP files are hosted easily and accessible through my local host, accessing the Laravel shared folder through my local host gives me 500 internal server errors. Following the guide, my public / .htaccess file has the following contents.

Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] 

The most recent error log entry is as follows.

[Thu Nov 19 22:25:10.012710 2015] [core:alert] [pid 6461] [client 127.0.0.1:43086] /var/www/html/blog/public/.htaccess: Options not allowed here

Regarding permissions, I have granted permissions for all files and folders in my Laravel application folder. I am running Apache / 2.4.7 (Ubuntu) and PHP 5.5.9-1ubuntu4.14 on my machine.

Please let me know if you need any other information. Any help would be greatly appreciated!

EDIT:

The issue is fixed by adding the following to apache2.conf:

 <Directory /> AllowOverride All </Directory> 

Thanks to everyone.

+6
source share
1 answer

You must have missed the configuration in your configuration file. The best way to verify this is to remove this line from the htaccess file.

 Options +FollowSymLinks 

Then try it.

Make sure apache2.conf provides all options. Sometimes you will have something like this

 AllowOverride FileInfo AuthConfig Limit Indexes 

If so, change it to

AllowOverride All

Edit:

So in your .htaccess file you can have.

 DirectoryIndex index.php RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] 
+4
source

All Articles