Custom File manager

I created a custom file manager for hestia to use instead of Filegator but after adding it to /usr/local/hestia/web/filemanager and setting the root dir via session:

if($_SESSION['user'] === "admin"){
    $username = $_SESSION['look'];
} else {
    $username = $_SESSION['user'];
}

$root_path = "/home/$username";

It shows no Files found.

Even when I try to set it up as root filemanager for admin using /home as path, it shows all the accounts but clicking on any of them still shows empty.

I think it’s a permissions issue, does any one know how I can fix the problem?

What problems have you encountered while using Filegator? Please provide a detailed description! Self built file management requires a high level of familiarity to take effect!

Probally a permission issue…

But that is for you to figure out…

For me personally, I have no issue with Filegator but I use my VPS for commerfcial purposes and a number of my customers have complained of filegator regarding editing files. I made a filemanager that looks similar to cPanels’ and also a Code Editor using Ace Editor library:

Code Editor:

what permission should be given to /usr/local/hestia/web/**?

I don’t know … default should be fine …

Check your logs / errors. I don’t know how it connects or anything else … So figure it out your self …

Please note we run under the hestiaweb user and probally don’t have read access it other users files…

Alright, I’ll figure it out. Thanks

@bruce Your file manager looks nice!

will be great if you can share it with the community.

3 Likes

I run a commercial server and customers find Filegator difficult especially it’s code editor. Most customers have cancelled their services cos of that. I tell them to use offline code editors via FTP but turns out they’re not that tech savvy and used to cPanel.

I’ll do that

1 Like

Don’t compare customers and professionals.

1 Like

But as you said your file manager is similar to cPanel. Which you will be sharing here as well. So, I guess your FM helps in retaining your clients?

Yes it does. I’m using it on CWPpro. But I like HestiaCP better.

True. HCP is awesome.

Also, can you please share the source code for your FM? It would be great for the community.

Hi guys, this is the source code of my file manager and it comes with a nice code editor too.

https://github.com/JosephChuks/php-file-manager-with-code-editor

3 Likes

Some very interesting repositories you have.
One q. Looking at the repos, and I maybe wrong here, are the source code complete, or you have not uploader all? I mean for all of the repos you have.

But really, some good work there. :ok_hand:

1 Like

Thanks @nu01. Source codes of all my repos are complete except some that may require environment variables. They’re all open to modifications.

2 Likes

@bruce Thank you for nice file manager. Really appreciate it.

@eris is it not possible to include this file manager as an optional alternative with hestacp?

1 Like

No… We are considering replacing it in the future by one made by our self but it will be done after symphony changes

4 Likes

Is it possible to add this fm to say my current setup?