Adding a user under website

Discussion in 'General' started by dgmufasa, Nov 17, 2011.

  1. dgmufasa

    dgmufasa New Member

    Hello all,

    Suppose I have a domain like:

    The website is (with a www A record inserted in the domian).

    It looks like I can add ftp and ssh access under a website for a user.

    I want to be able to add users so that if one types

    it will go the index.html file under their directory?

    How can I do this in ISPConfig? I want to duplicate it using the API code.

  2. falko

    falko Super Moderator ISPConfig Developer

  3. dgmufasa

    dgmufasa New Member

    Thanks for the response but this is not working for me.

    Attached is a pic of what I have.

    When I type in, I get:

    You don't have permission to access / on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    - but -

    when I type :

    it works

    when I type:

    I also get the error message.


    The following also gets an error:

    Attached Files:

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    But the screenshot is from ISPConfig 3 and not ISPConfig 2 and you posted here in the ISPConfig 2 forum and userwebsites witnh /~username are a feature of ISPConfig 2 and not available in ISPConfig 3 as ISPConfig 3 uses virtual users and not Linux system users.
  5. dgmufasa

    dgmufasa New Member

    Thanks - will post in correct area in the future ...

    You are speaking of the Reseller, the Client, CP, etc?

    If so, when adding a site and adding a ftp user (or shell user) under the site, how do I fix it so that the areas under the newly added ftp area (or shell user) are accessible by the web?

    For example, if I create a site called :
    and add a ftp user under it: myuser

    How do I set this up so that any html web page created under the user is accessible through (the old way would be
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    No, I'am speaking about the underlying system design.

    There is no such user, thats what I tried to explain you above. ISPConfig 3 uses virtual users, so when yopu create a FTP user, then this is just a record with authentication details inside the mysql database and not linux system user. FTP users also dont have a directory, so there is nothing where you could upload a file for a specific ftp user to.

    Shell users are real Linux system users and not virtual users. You can e.g. use mod_userdir or apache rewrite rules to make them accessible. The directives can be added in the apache directives field of the website. See apache documentation for details:
  7. dgmufasa

    dgmufasa New Member

    OK, thanks for the response as well as the pointer to the other site :)

    It seems that the 2 work in tandem. One cannot have an FTP account alone but also must have a shell account to go with it as well (or else there is no place to ftp files from/to).

    Without a shell account, I am not clear as to the use of an FTP account alone .

    Nor am I certain as to why one would be able to create shell and ftp accounts under a particular website but not be able to automatically access any .html stored in these areas (without first modifying the website itself). When creating a shell account, I see it creates a directory under the website.

    Am I missing something?
  8. kextra1

    kextra1 ISPConfig Developer ISPConfig Developer


    Hi dgmustafa,

    You don't go to:

    Yes the file is located in /var/www/web1/users/username/web/index.html

    but will show up at:

    if you setup your ftp server properly ftp will set the user's sub-webspace account to automatically go the home directly beneath their "/web" directory & will keep them from accessing parent directories underneath their home directory via ftp. example let me see... lets say I have a user on web1 or "" named "kextra1"

    my sub-webspace index.html file would go here:


    However to access that file on the web I'd go to the following URL:

    I'm pretty sure it's the same in ISPConfig 2 & 3 correct me if I'm wrong.

    This issue is of interest to me as a long time ISPConfig 2 guy if I am incorrect on the sentence above. I have been trying out CPanel & Plesk on two of my newer servers not in production yet mainly because of the compatibility with WHMCS for the panels.... but my loyalty lies with ISPConfig and would rather run ISPConfig 3 with an easy to use autosignup/billing records interface.
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig 3 is different, please see my explanation in #6 in this thread.

    There is a whmcs plugin avilable for ispconfig 3.
  10. dgmufasa

    dgmufasa New Member

    Kextra, thanks for your attempt to help me :D

    Till, you said:
    Why was this mentioned? Is it easier to do this type of functionality under WHMCS?
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    No. Thats a completely different topic and a comment on the last sentence from kextra1, so it is not related to your question.

Share This Page