Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section Modification & Patches
  • Search

Adding web based file manager Topic is solved

Section with modification and patches for Vesta
Locked
  • Print view
Advanced search
7 posts • Page 1 of 1
thegillion
Posts: 1
Joined: Thu Aug 21, 2014 5:31 am

Adding web based file manager

Post by thegillion » Thu Aug 21, 2014 6:00 am

I have been wanting a file manager on Vesta for sometime now. So I have taken matters into my own hands.

Here is a how to setup navphp4.44 to manage files on your admin login.
**NOTE I was using CentOS 6.5 your file paths may need to be changed**

Tools used.
Filezilla
Notepad++

1.Patch your nav bar in your panel. Go to /usr/local/vesta/web/templates/admin and edit panel.html Add this on line 12

Code: Select all

<a class="top-<?php if($TAB == 'NAVPHP' ) echo 'selected-' ?>link" href="/navphp/"> <?php print __('Nav PHP') ?> </a>
Save (you should now see "Nav PHP" on the top nav bar.)

2.Make a folder in /usr/local/vesta/web called navphp

3.Download and unzip navphp4.44 http://sourceforge.net/projects/navphp/ ... or%204.44/

4.Open config.php edit the following

Code: Select all

//$homedir = $_SERVER['DOCUMENT_ROOT'];
$homedir = "/home";
		# Default directory for single user. Use absolute path.
$enable_login = false;
Save

5.Delete index.php and rename windows.php to index.php

6.**DO NOT FORGET THIS STEP** this is for SSO of the panel if you do not do this step your manager will be open to the world.
Add the following at line 22 in index.php

Code: Select all

// Init
error_reporting(NULL);
ob_start();
session_start();
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");

if ($_SESSION['user'] == 'admin') {
Add the following at line 212

Code: Select all

}

header("Location: /navphp/");
exit;
7.Upload your navphp4.44 to /usr/local/vesta/web/navphp

You should now have navphp installed on your server with a navbar link.
Top

head
Posts: 168
Joined: Mon Aug 25, 2014 11:22 am

Re: Adding web based file manager

Post by head » Tue Aug 26, 2014 6:57 am

Some issues.
1. header("Location: /navphp/"); in the end of your post - for what? it makes infinite loop.
2. Better to open navphp in new tab - there's no "back to Vesta" link
3. Nav unable to review other users folders - no sufficient rights
Overall good idea but only if you use single account "admin" on Vesta.
Top

mishra.amitkr
Posts: 24
Joined: Sat Jul 05, 2014 11:27 pm

Re: Adding web based file manager

Post by mishra.amitkr » Sun Aug 31, 2014 12:03 am

or you could try out pydio or net2ftp

i did try but could not get luck to get it working...
Top

inerd
Posts: 21
Joined: Sun Dec 29, 2013 3:14 am
Contact:
Contact inerd
Website

Re: Adding web based file manager

Post by inerd » Sun Aug 31, 2014 9:58 pm

All modifications made to the Vesta web code will be reset after each update they will release :L
Top

Avalon
Posts: 1
Joined: Sat Feb 14, 2015 12:21 am

Re: Adding web based file manager

Post by Avalon » Sat Feb 14, 2015 4:40 am

This solution doesn't works...
After all steps I have "Internal vesta error" on adress https://xxx.xxx.xxx.xxx:8083/navphp/
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Adding web based file manager

Post by skurudo » Sat Feb 14, 2015 5:17 pm

May be need to search in error log the reason, why script don't work?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Adding web based file manager

Post by skurudo » Wed Feb 14, 2018 9:00 am

Closed due inactivity.
Top


Locked
  • Print view

7 posts • Page 1 of 1

Return to “Modification & Patches”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password