Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th July 2006, 20:26
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default webftp does not show folders below web?

I wanted to create a .htaccess to a directory of one web,
but webftp does only show the folders in the root dir of the web, but nothing below ..../web etc. permissions are all correct, normal ftp upload works, but with webftp not.

Any suggestions where to look at?
Reply With Quote
Sponsored Links
  #2  
Old 28th July 2006, 08:42
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,400
Thanks: 834
Thanked 5,493 Times in 4,324 Posts
Default

If you click on the "web" folder, there appears no folder listing at the right side?
If you login with a normal FTP client, do you see the folders inside web then?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 28th July 2006, 08:49
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default

correct................
Reply With Quote
  #4  
Old 28th July 2006, 09:01
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,400
Thanks: 834
Thanked 5,493 Times in 4,324 Posts
Default

The webftp uses the normal FTP connection to connect to the server like any other client.

Is there a folder in "web" with some uncommon chars in its name that may "confuse" the webftp script?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 28th July 2006, 09:45
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default

No, it even happens with other webs....

took a look at tcpdump but everything looked. I found out the following:
Webftp does a LIST but in the dirlisting packet only "root" is listed not the dirs. So I guess WebFTP starts at the wrong dir and justs expects cgi-bin, phptmp, web, user etc to be there but they are not.

Now what I have to find out is, where webftp fetches its information of ftp's root dir...
But it seems that it does not "really" work like an ftp client... it "guesses" to much and not justs connects...
Reply With Quote
  #6  
Old 28th July 2006, 09:58
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,400
Thanks: 834
Thanked 5,493 Times in 4,324 Posts
Default

Quote:
Originally Posted by Ben
Now what I have to find out is, where webftp fetches its information of ftp's root dir...
But it seems that it does not "really" work like an ftp client... it "guesses" to much and not justs connects...
WebFTP guesses nothing. It just outputs the listing it gets from the FTP server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 28th July 2006, 09:59
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default

Ok after looking at the code I see I was wrong... it reads from the right startdir, so far so good...

but if I var_dump($contents) on line 119 of ispconfig_isp_webftp.lib.php it shows all data displayed for the users root dir, but nothign for web in that...

EDIT 1: If I place var_dump(ftp_nlist($this->conn_id, $start)); before if($contents = @ftp_rawlist($this->conn_id, $start)) { in webftp-read, i shows me a dirlisting array for the root of the web, but FALSE which means any error, on the Listing for the dirs below...

EDIT 2: I got the error. Anything with my ftp config seems not to be correct. It allows the users to access ALL directorys. that is why /web results in an error because web does not exists in /. So $start = ($start) ? substr($start,1) : $start; would fix the problem for a working webftp but not for my security in case of ftp... so I should take a look at my ftpconfig, why it is allowed for users browsing other dirs than their homedirs...

Last edited by Ben; 28th July 2006 at 10:16.
Reply With Quote
  #8  
Old 28th July 2006, 12:41
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
 
Default

Ok the problem I had was, proftpd allowed leaving the users homedir when connection to localhost instead of the servers IP.
So what I did was to take the config from proftpd_ispconfig.conf pasted that to proftpd.conf and changed the IP to 127.0.0.1 now it works fine....
Reply With Quote
Reply

Bookmarks

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
ispconfig webftp browser alexnz Installation/Configuration 7 23rd June 2006 17:32
WebFTP Crashes on Large web folders teleriddler Installation/Configuration 5 12th May 2006 21:19
Uebimiau and courier-imap: cannot create folders ddelbia General 7 5th April 2006 23:46
Unzip in webftp Hellbound General 5 26th March 2006 15:58
ISPConfig on OpenSuSE 10.0 Site doesn't show up Hendrikus Postma Installation/Configuration 5 6th February 2006 18:35


All times are GMT +2. The time now is 14:34.


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