Laravel-filemanager: Forbidden You don't have permission to access /filemanager/ on this server.

Created on 25 Apr 2020  路  4Comments  路  Source: UniSharp/laravel-filemanager

Please check the following instructions before submitting a bug :

And provide the followings :

  • Operating system : CentOS
  • Laravel version : 7.7.1
  • Package version : dev-master
  • Steps to reproduce your issue :
  1. composer require unisharp/laravel-filemanager:dev-master
  2. php artisan vendor:publish --tag=lfm_config
  3. php artisan vendor:publish --tag=lfm_public
  4. php artisan storage:link

  5. Copied the demo.blade.php to resources/views/test.blade.php

  6. Added Lfm Routes in web.php
Route::group(['prefix' => 'filemanager', 'middleware' => ['web', 'auth']], function () {
    \UniSharp\LaravelFilemanager\Lfm::routes();
});
  1. Added a testing route
Route::get('test', function () {
    return view('test');
});

  1. Visited the url /test

  2. Error displayed in embedded file manager and http://photo.local/filemanager/?type=image

    • Screenshots of browser console :

Embeded Error
Embed File Manager

Most helpful comment

For what did you create public > filemanager folder?
Try to rename it or delete and it should help you!

I guess when you're trying to get access to the http://photo.local/filemanager/ your webserver thought you want to get access to the folder instead, but it's not allowed and throws you an error.
I've got the same issue if I want to create public > admin folder and have the same time admin routes :(

You can check it on laracasts.com the same issue

馃憤

All 4 comments

If you declare the routes by yourselves you must set use_package_routes to false in lfm.php config.
And check if you have folder with name filemanager in your project, sometimes it can cause the problems like this.
Last opinion is your server was configured incorrectly

@mafftor
Removing the route also redirects the same issue. There is a folder inside the public directory.
public > filemanager > config > .htaccess, config.php
I also gave permission to the filemanager folder.
I am working on locally, is there might be any other issue?

For what did you create public > filemanager folder?
Try to rename it or delete and it should help you!

I guess when you're trying to get access to the http://photo.local/filemanager/ your webserver thought you want to get access to the folder instead, but it's not allowed and throws you an error.
I've got the same issue if I want to create public > admin folder and have the same time admin routes :(

You can check it on laracasts.com the same issue

馃憤

Thank you so much. Removing the folder public > filemanager helped me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lunadiotic picture lunadiotic  路  3Comments

lukaszevo picture lukaszevo  路  4Comments

rlrlaa123 picture rlrlaa123  路  3Comments

Dzhangar1980 picture Dzhangar1980  路  4Comments

t67132 picture t67132  路  3Comments