Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th January 2010, 09:47
vsevolod vsevolod is offline
Junior Member
 
Join Date: Sep 2007
Posts: 1
Thanks: 0
Thanked 9 Times in 1 Post
Default Net2ftp integration.

Hello!
In attachment you can read instruction how to integrate Net2ftp in ISPConfig3 on Centos 5.4.
Attached Images
File Type: pdf ispc_webftp.pdf (26.8 KB, 2896 views)
Reply With Quote
The Following 9 Users Say Thank You to vsevolod For This Useful Post:
BorderAmigos (17th February 2010), falko (12th January 2010), fducloux (14th March 2010), Germanius (16th January 2010), hcliff (14th August 2010), mveplus (14th February 2011), onastvar (26th April 2010), till (11th January 2010), trx82 (12th January 2010)
Sponsored Links
  #2  
Old 12th January 2010, 11:28
trx82 trx82 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 1
Thanks: 1
Thanked 1 Time in 1 Post
Thumbs up Thanks

Works with debian lenny too.

At step 26. insert .icons16.icoWebFTP { background-image: url("../../icons/x16/folder_open.png"); }
replace the background-image: with background: to have a proper display of folder icon.

Last edited by trx82; 12th January 2010 at 11:32.
Reply With Quote
The Following User Says Thank You to trx82 For This Useful Post:
mveplus (14th February 2011)
  #3  
Old 27th January 2010, 07:46
por por is offline
Junior Member
 
Join Date: Jan 2010
Posts: 12
Thanks: 1
Thanked 8 Times in 2 Posts
Default Heres how to get it to work with Ubuntu 9.10

For Ubuntu Karmic Koala 9.10 do the following to add net2ftp/WebFTP:

1. cd /tmp
2. wget http://www.net2ftp.com/download/net2ftp_v0.98.zip
3. unzip net2ftp_v0.98.zip
4. cd net2ftp_v0.98
5. mv files_to_upload /var/www/webftp
6. cd ..
7. /bin/rm -R net2ftp_v0.98
8. cd /etc/apache2/conf.d
9. nano webftp.conf or vi webftp.conf

Add This:
<Directory /var/www/webftp>
Order deny,allow
Allow from all
</Directory>
Alias /net2ftp /var/www/webftp
Alias /webftp /var/www/webftp

11. If using nano save with this (CTRL+O,Press Enter,CTRL+X) is vi use this (Shift+ZZ)
12. /etc/init.d/apache2 restart
13. cd /var/www/ispconfig/sites
14. nano site_webftp.php or vi site_webftp.php

Add This:
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
$app->auth->check_module_permissions('sites');
if (!isset($_GET['id'])){
die ("No site selected!");
}
$domainId = intval($_GET['id']);
$dbData = $app->db->queryOneRecord("SELECT server_id FROM web_domain WHERE
domain_id = " . $domainId);
$serverId = intval($dbData['server_id']);
if ($serverId == 0){
die ("No Server found!");
}
$serverData = $app->db->queryOneRecord(
"SELECT server_name FROM server WHERE server_id = " .
$serverId);
header('location:/webftp?servername="'.$serverData['server_name'].'"');
exit;
?>


16. If using nano save with this (CTRL+O,Press Enter,CTRL+X) is vi use this (Shift+ZZ)
17. chown ispconfig:ispconfig site_webftp.php
18. cd /var/www/ispconfig/sites/templates
19. nano web_domain_list.htm or vi web_domain_list.htm
20. /*Go to line 44*/ (if using VI type 44G) | (if using nano just scroll down with arrow, find position typing CTRL+C)
21. Add This:
<a class="icons16 icoWebFTP" href="sites/site_webftp.php?id={tmpl_var name='id'}" target="webftp"><span>{tmpl_var name='admin_txt'}</span></a>

22. If using nano save with this (CTRL+O,Press Enter,CTRL+X) is vi use this (Shift+ZZ)
23. cd /var/www/ispconfig/themes/default/css/screen
24. nano content_ispc.css or vi content_ispc.css
25. /*Go to line 291*/ (if using VI type 291G) | (if using nano just scroll down with arrow, find position typing CTRL+C)
26. Add This:
.icons16.icoWebFTP { background-image: url("../../icons/x16/folder_open.png"); }

27. cd /var/www/webftp
28. nano settings_authorizations.inc.php or vi settings_authorizations.inc.php
29. /*Go to line 35*/ (if using VI type 35G) | (if using nano just scroll down with arrow, find position typing CTRL+C)
30. Find:
$net2ftp_settings["allowed_ftpservers"][1] = "ALL";
Change to this:
//$net2ftp_settings["allowed_ftpservers"][1] = "ALL";//commented out to add webftp/net2ftp

31. Right above the text you commented out add this:
$ftp_server=null;
$ftp_server=trim($_GET['servername'], '"');
if(!strlen($ftp_server)){
$ftp_server=$_COOKIE['ftp_server'];
}
else{
setcookie("ftp_server", $ftp_server);
}
if(strlen($ftp_server)){
$net2ftp_settings["allowed_ftpservers"][1] = $ftp_server;
}
else{
$net2ftp_settings["allowed_ftpservers"][1] = "ALL";
}


Now you can access webftp from domain list you will see a smal Open folder icon.

Reply With Quote
The Following 7 Users Say Thank You to por For This Useful Post:
BorderAmigos (17th February 2010), falko (28th January 2010), fducloux (14th March 2010), Hans (19th February 2010), hcliff (14th August 2010), mveplus (14th February 2011), till (7th February 2010)
  #4  
Old 7th February 2010, 13:32
HiresAli HiresAli is offline
HowtoForge Supporter
 
Join Date: Feb 2010
Location: Hungary
Posts: 3
Thanks: 5
Thanked 0 Times in 0 Posts
Default

I did everything, but i got an error message:


Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/webftp/includes/filesystem.inc.php on line 53
An error has occured

Unable to connect to FTP server on port 21.

What did i wrong?

Debian 5
Ispconfig 3.0.1.1

Last edited by HiresAli; 9th February 2010 at 10:17.
Reply With Quote
  #5  
Old 9th February 2010, 17:03
Nicke Nicke is offline
Member
 
Join Date: Jun 2009
Posts: 44
Thanks: 8
Thanked 14 Times in 9 Posts
Default

Quote:
Originally Posted by HiresAli View Post
I did everything, but i got an error message:


Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/webftp/includes/filesystem.inc.php on line 53
An error has occured

Unable to connect to FTP server on port 21.

What did i wrong?

Debian 5
Ispconfig 3.0.1.1
Point 31

Code:
$ftp_server=trim($_GET['servername'], '"');
should be

Code:
$ftp_server=trim($_GET['servername'], '\"');

Last edited by Nicke; 9th February 2010 at 17:05.
Reply With Quote
The Following 2 Users Say Thank You to Nicke For This Useful Post:
fducloux (14th March 2010), mveplus (14th February 2011)
  #6  
Old 9th February 2010, 20:45
HiresAli HiresAli is offline
HowtoForge Supporter
 
Join Date: Feb 2010
Location: Hungary
Posts: 3
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Nicke View Post
Point 31

Code:
$ftp_server=trim($_GET['servername'], '"');
should be

Code:
$ftp_server=trim($_GET['servername'], '\"');

Very THX!!!!
Reply With Quote
  #7  
Old 30th June 2013, 15:57
craig baker craig baker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 131
Thanks: 0
Thanked 5 Times in 5 Posts
Default net2ftp integration broken!

alas, the current version of ISPCONFIG breaks the instructions given here - among other things the content_ispxxxx file no longer exists.

has anyone got net2ftp integrated with ISPCONFIG 3.05?
Reply With Quote
  #8  
Old 10th July 2013, 15:22
IKShadow IKShadow is offline
Member
 
Join Date: Jan 2006
Location: Slovenia
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to IKShadow
Default

Quote:
Originally Posted by craig baker View Post
alas, the current version of ISPCONFIG breaks the instructions given here - among other things the content_ispxxxx file no longer exists.

has anyone got net2ftp integrated with ISPCONFIG 3.05?
I would like to know that as well
__________________
SUSE 11.3 (perfect install)
ISPConfig 3.0.3.2
Reply With Quote
  #9  
Old 16th September 2013, 23:06
flooster flooster is offline
Junior Member
 
Join Date: Sep 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi I installed Net2ftp with the script. The webftp works well but 2 problems i have, I could not unzip and upload files.

1) If try to upload, but there is an error:

"Could not generate a temporary file."

Technical info:
The error occured in file /var/www/webftp/includes/filesystem.inc.php on line 1773.
function acceptFiles (/var/www/webftp/modules/upload/upload.inc.php on line 248)
argument 0: Array
function net2ftp_module_printBody (/var/www/webftp/main.inc.php on line 313)
function net2ftp (/var/www/webftp/index.php on line 61)
argument 0: printBody


2) and another, if I want to unzip the zip file, there is another problem:

Unable to get the archive reinstal serveru.zip from the FTP server

Is here someone who can help me please. I dont know what to do with that.

THX a loooooot

I Have ISPConfig 3.0 and Debian 6.0
Reply With Quote
  #10  
Old 9th October 2013, 18:46
ferra ferra is offline
Junior Member
 
Join Date: Mar 2010
Posts: 17
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Hi, I'm running ISPConfig 3.0.5.3, and still cannot integrate net2ftp into it. I have net2ftp running on the same server.
Anu news about this, or any other solution?

Thanks
Reply With Quote
Reply

Bookmarks

Tags
net2ftp, webftp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drupal + Postfix Integration handheld HOWTO-Related Questions 9 11th January 2010 23:16
net2ftp please Server Operation 1 14th October 2009 14:09
Two Physical Servers for "Zimbra Integration With Samba - Ubuntu Based"? chris.zeman HOWTO-Related Questions 0 13th July 2009 02:29
FileManger, UnZip, installer for CMS mike_phi General 4 4th January 2009 12:39
Installing net2ftp inside ispconfig timaaarrreee General 2 3rd December 2008 10:41


All times are GMT +2. The time now is 10:32.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.