Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th November 2011, 03:53
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default Adding a user under website

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
Reply With Quote
Sponsored Links
  #2  
Old 17th November 2011, 14:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Take a look at chapter 2.2.9 on http://ispconfig.org/downloads/manua...nde_en_src.htm
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 17th November 2011, 15:41
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default

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 Images
 
Reply With Quote
  #4  
Old 17th November 2011, 15:48
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 22nd November 2011, 10:53
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by till View Post
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.

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).
Reply With Quote
  #6  
Old 22nd November 2011, 11:31
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Quote:
You are speaking of the Reseller, the Client, CP, etc?
No, I'am speaking about the underlying system design.

Quote:
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).
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
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 23rd November 2011, 05:36
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by till View Post
No, I'am speaking about the underlying system design.
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.
http://httpd.apache.org/docs/2.0/howto/public_html.html
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?
Reply With Quote
  #8  
Old 26th November 2011, 22:38
kextra1 kextra1 is offline
Senior Member
 
Join Date: Apr 2008
Posts: 116
Thanks: 6
Thanked 6 Times in 4 Posts
Default 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.
Reply With Quote
  #9  
Old 27th November 2011, 01:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Quote:
I'm pretty sure it's the same in ISPConfig 2 & 3 correct me if I'm wrong.
ISPConfig 3 is different, please see my explanation in #6 in this thread.

Quote:
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.
There is a whmcs plugin avilable for ispconfig 3.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 27th November 2011, 07:06
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
 
Default

Kextra, thanks for your attempt to help me

Till, you said:
Quote:
There is a whmcs plugin avilable for ispconfig 3.
Why was this mentioned? Is it easier to do this type of functionality under WHMCS?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dovecot v2 with ISPConfig 3 CSsab Installation/Configuration 13 13th September 2012 19:01
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Mail user space + website status Teddy_2009 General 1 21st April 2009 15:17
Adding vhosts to Apache 2 from a website Leszek Programming/Scripts 2 21st February 2007 15:07
Creating image with Systemimager cuongtim HOWTO-Related Questions 3 18th November 2006 13:55


All times are GMT +2. The time now is 02:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.