Ftp document root

Discussion in 'General' started by doncro, Mar 7, 2008.

  1. doncro

    doncro New Member

    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
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Did you specify a subfolder to go to after login in your FTP client?
     
  3. doncro

    doncro New Member

    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;)
     
  4. doncro

    doncro New Member

    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
     
  5. falko

    falko Super Moderator Howtoforge Staff

    Please set the "Initial Remote Host Directory" to nothing in WS_FTP and try again.
     
  6. doncro

    doncro New Member

    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
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post your proftpd.conf file and make sure that you enabled the "administrator" checkbox for the user.
     
  8. doncro

    doncro New Member

    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
     
  9. falko

    falko Super Moderator Howtoforge Staff

    Please change
    Code:
    DefaultRoot ~/web
    to
    Code:
    DefaultRoot ~
    and restart ProFTPd.
     
  10. doncro

    doncro New Member

    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
     

Share This Page