VirtualHost + FTP

Discussion in 'Installation/Configuration' started by zepx, Feb 22, 2010.

  1. zepx

    zepx New Member


    I'm running on Ubuntu 9.10 server.

    One thing I noticed about installing ISPConfig is that the FTP doesn't point to /var/www. I know this must be configured manually. How can this be done?

    Also, I noticed that each time I create a new domain, it is automatically placed in /var/www. How can I configure it in such a way that each time I create a new domain, it would automatically be pointed to /home/username/public_html?

    Thank you in advanced,

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    This makes no sense as you would not be able to access the data of the websites then. A FTP user always points to the website directory of the website he belongst to.

    You cant. ISPConfig is a hosting control panel and uses its own directory structure to manage websites. It is not made to create website for existing linux system users.
  3. zepx

    zepx New Member

    Thank you for your reply.

    Then may I know how do you upload/manage your website? Since ISPConfig 3 does not come with a file manager, I have to use a FTP Client. By default installation, I noticed that when I login using the client's account (FTP connection), the directory retrieved is /home/myclientname/ whilst the files are all locataed at /var/www/ How can I link them?

    Each time I create a new client, the Pure-FTPD accounts always points to /home/somenewuser and my the files are located at /var/www/

    Actually I want to replicate Directadmin's structure.
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Then you dont use ISPConfig 3 on this server.

    All websites are located in /var/www/ and all FTP users that you create in ispconfig for a website have a home directory of /var/www/

    This is ISPConfig and not direct admin. ISPConfig has its own layout for websites which is different from directadmins layout. You better use directadmin if you want to use their layout.
  5. zepx

    zepx New Member

    Then say, if I want to change everything created to /home/ or somewhere else, is this possible? Not manually but for every new domain added.

    I'm just trying to replicate it, but that does not mean only directadmin uses this method. I believe even cpanel does it, and some people who believe strongly believe that the folders should not be located in /var as it might soon get too filled up with error logs.
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    You can set the website base folder from /var/www to /home in the server settings in ispconfig. You have to set this before you create the first website. But you should be aware that the apache packages of the linux distributions will not allow you to use suexec then anymore. There are good reasons why ISPConfig uses /var/www and not /home.

    1) If its not located in /var/www, you cant use suexec with the apache packages coming with the linux distributions.
    2) If you are afraid that /var fills up with logs, simply create a own partition for /var/log ;)
  7. zepx

    zepx New Member

    Thank you! That is very helpful of you :).

Share This Page