Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

You don't have permission to browse the server?

I am using kcfinder with ckeditor. While changing disabled to false in config file of kcfinder there is no problem but on overriding it with

$_SESSION['KCFINDER'] = array(
    'disabled' => false
);

i am unable to browse & upload files there.Message pop up's showing you don't have permission to browse the server. (framework used CI 3.x.)

like image 356
salin kunwar Avatar asked Nov 17 '16 10:11

salin kunwar


People also ask

What does it mean I dont have permission on this server?

It implies the file is there, but the site owner has disabled access to public users. If you're a site admin instead, you need to make sure files intended for public access have proper read permissions. Else, if you're facing this error on a public site, inform the site administrator to solve this issue.

How do I fix access denied in Safari?

Desktop. Click Safari in the top menu and select Preferences. Under Website tracking, uncheck Prevent cross-site tracking. Refresh the page and try again.


1 Answers

Try this. Make following changes to main index.php file

//$system_path = 'system';
$system_path = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'system';
//$application_folder = 'application';
$application_folder = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'application';

And put this code in browse.php of kcfinder

ob_start();
require_once('../index.php'); //path to main index file edited above
ob_end_clean();
$CI =& get_instance();
$CI->load->library('session');
like image 84
Niroj Adhikary Avatar answered Sep 21 '22 13:09

Niroj Adhikary