Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Nov 2008
    Posts
    9

    Default Create ftp account for main domain?

    How can I create an ftp account to use the home directory of /usr/local/apache/htdocs/?

    the normal methods using useradd and pure-pw don't seem to work?


    Here is what I've tried (to no avail)

    useradd USERNAMETOUSE -d /usr/local/apache/htdocs/ -s /sbin/nologin

    pure-pw useradd USERNAMETOUSE -u LOCALUSERNAMETOUSE -d /usr/local/apache/htdocs

    Is there a way from the main cpanel administrator to do this? Or does anybody else have a solution?

  2. #2
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    You did not specify what your trying to do, so I assume, this server i syours and you have root access and your trying to find a way to upload you content to the default server directory? If I am right read on, if I am wrong ignore me.

    Just use an ftp program like CoreFtp, add a new entry in your site manager, change the connection to SSH/SFTP change your port if it is non-stansard (which is highl recommended) then you can use an ftp program to access your server via SSH. Hope this helps.
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

  3. #3
    Member
    Join Date
    Nov 2008
    Posts
    9

    Default

    I appreciate the response. That's not exactly what I was trying to explain.

    Instead of "Create ftp account for main domain?" let me try to state it a different way.

    How do I create an ftp account within the webhost manager that will have access to /usr/local/apache/htdocs/?

    Here are the technical details of the box/software.

    WHM 11.23.2 cPanel 11.23.6-R27698
    CENTOS Enterprise 5.2 i686 on virtuozzo - WHM X v3.1.0


    I'm wanting to create an ftp account, on my server, but cpanel has things configured differently than I would expect.

    I own a domain (say domainiown.com). So I would log into my my webhost manager at

    http://www.domainiown.com:2086/

    Now, I want to also have a website hosted off the regular port 80 of this domain, so if you were to access http://www.domainiown.com/.
    (this is done by placing the content at /usr/local/apache/htdocs and configuring apache to use domainiown as the default virtual host.

    Now, if I wanted to create an ftp account, to access /usr/local/apache/htdocs, how would I do that (preferrably specifying his as the home directory for that ftp account)? I don't see a way of managing ftp users within the webhost manager, only at the cpanel account level.

    I'm thinking the next thing I will try is to just create an ftp account through one of the ftp accounts and then trying to manipulate things with a linked directory or something?

  4. #4
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    Ah, just realized you are the same person from post http://forums.cpanel.net/showthread.php?t=99833

    /usr/local/apache/htdocs is for the hostname, not domain name.

    I assume you have a hostname.domainiwon.com just create an account domainiwon.com, then go back to the stuff you talked about in the above post and change the document root to /home/domainiwon/public_html then you have an ftp account to your "main domain"
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

  5. #5
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,892
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    I think he answered you correctly above. And you are correct in how to add a default site as you want. You won't access WHM at that URL though, it would be something like fred.yourserver.com:2087 If you're not going to be using SFTP to get to root files often, you might want to take this route.
    http://www.configserver.com/cp/cse.html
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  6. #6
    Member
    Join Date
    Nov 2008
    Posts
    9

    Default

    Thanks! You guys are awesome! I've been repeatidly trying to overcomplicate this thing.. I'm used to building everything out from scratch.. Actually using a framework is forcing me to think... Well.. intuitively.. That's a new concept.. LOL

  7. #7
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    You're welcome. It can be a steep learning curve at first but once you start to understand the flow it makes sense.
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

Similar Threads & Tags
Similar threads

  1. Can't create main domain account.
    By Skyslayer in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-03-2008, 02:07 PM
  2. How to create an user account for the main domain?
    By el-eles in forum New User Questions
    Replies: 1
    Last Post: 03-18-2006, 10:42 AM
  3. Cpanel for main Domain? WHM Can't create account!
    By kioussis in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 03-29-2005, 10:49 AM
  4. Create Addon Domain without creating separate ftp account?
    By Jeff-C in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-06-2004, 03:27 AM
  5. How do I create an account for the main domain name?
    By Shawn-commercepackage in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 07-07-2002, 10:48 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube