PDA

View Full Version : Ftp document root


doncro
7th March 2008, 17:15
Hello!
My ftp document root logs in to web/. I am sure at one time it was web_30/
I need to access cgi-bin. Is this a ispconfig setting or Apache.
I must have changed something.
Thanks
Don

falko
8th March 2008, 21:22
Did you specify a subfolder to go to after login in your FTP client?

doncro
8th March 2008, 23:25
Hi Falco
I have it set to / in wsftp it also logs into web/ on the webftp
it is the same for all the webs on the server. I am sure I have changed something to cause this I did check the document root in httpd.config it is set to ispconfig/
and directory to www/
is there a php file in ispconfig I may have changed?
Thanks
Don;)

doncro
8th March 2008, 23:45
Hi again Falco
I have more info. I also looked at the ispconfigvhost file
and all the web sites have the docroot with example web30/web/ as document root .
Thanks again
Don

falko
9th March 2008, 16:27
Please set the "Initial Remote Host Directory" to nothing in WS_FTP and try again.

doncro
11th March 2008, 02:23
Thank you Falco
I changed the WS_FTP remote host settings to empty.
It still logs into web/
I have two servers here with ISPconfi, the other one logs into web30
with the same WS_FTP.
I have been looking through files but found nothing yet!
Thanks
Don

till
11th March 2008, 11:54
Please post your proftpd.conf file and make sure that you enabled the "administrator" checkbox for the user.

doncro
11th March 2008, 16:08
Hi Till
I made sure the admin box was checked.
I have tried to log in as user and admin both.
Same result web/
Here is the proftpd.conf and ISPproftpd.conf


# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on
DefaultRoot ~/web
IdentLookups off
ServerIdent on "FTP Server ready."

# Port 21 is the standard FTP port.
Port 21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022

# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30

# Set the user and group under which the server will run.
User nobody
Group nogroup

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~

# Normally, we want files to be overwriteable.
AllowOverwrite on

# Bar use of SITE CHMOD by default
#<Limit SITE_CHMOD>
# DenyAll
#</Limit>

# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
#<Anonymous ~ftp>
# User ftp
# Group ftp

# We want clients to be able to login with "anonymous" as well as "ftp"
# UserAlias anonymous ftp

# Limit the maximum number of anonymous logins
# MaxClients 10

# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message

# Limit WRITE everywhere in the anonymous chroot
# <Limit WRITE>
# DenyAll
# </Limit>
#</Anonymous>


Include /etc/proftpd_ispconfig.conf


###################################
#
# ISPConfig proftpd Configuration File
# Version 1.0
#
###################################
<VirtualHost 00.10.22.33>
DefaultRoot ~
AllowOverwrite on
Umask 002
</VirtualHost>
<VirtualHost 00.10.22.33>
DefaultRoot ~
AllowOverwrite on
Umask 002
</VirtualHost>


Thanks for the help!
Don

falko
11th March 2008, 22:06
Please change
DefaultRoot ~/web
to
DefaultRoot ~
and restart ProFTPd.

doncro
12th March 2008, 00:12
Thanks a lot Falko
I had an idea I had changed something at one time but did not know what!
That did the trick!
Thanks again
Don