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: foofoo.com

    The website is www.foofoo.com (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
    http://www.foofoo.com/~username

    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.

    TIA
     
  2. falko

    falko Super Moderator Howtoforge Staff

  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 a0555m001.faafaa.com, I get:

    Forbidden
    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 : a0555m001.faafaa.com/index.html

    it works

    when I type:

    a0555m001.faafaa.com/~a0555m001

    I also get the error message.

    TIA

    The following also gets an error:

    http://faafaa.com/users/index.html
     

    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 : jonsey.com
    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 jonsey.com (the old way would be jonsey.com/~myuser).
     
  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:

    http://httpd.apache.org/docs/2.0/howto/public_html.html
     
  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 Member

    Sub-users

    Hi dgmustafa,

    You don't go to: domain.com/users/index.html

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

    but will show up at: domain.com/~username

    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.

    Anyhow....an example let me see... lets say I have a user on web1 or "domain.com" named "kextra1"

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

    /var/www/web1/users/kextra1/web/index.html

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

    http://www.domain.com/~kextra1

    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