Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jul 2008
    Posts
    254

    Question Change path

    Hello

    I was create a account in whm and i have this path:

    /home/newaccou/public_html

    Then i change the domain and all is working great but i can't change the path to:

    /home/newdomai/public_html


    How can i change this as i have all my files there and i don't want to lost them?

    Thnak you

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    The simplest and quickest way would probably be to create a symlink:

    ln -s /home/newdomai /home/newaccou
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Lightbulb

    Quote Originally Posted by ASTRAPI View Post
    Hello

    I was create a account in whm and i have this path:

    /home/newaccou/public_html

    Then i change the domain and all is working great but i can't change the path to:

    /home/newdomai/public_html


    How can i change this as i have all my files there and i don't want to lost them?

    Thnak you
    Your English is very poor and I cannot quite make out what you are asking.

    If you change the domain in WHM, your path won't change at all and will remain exactly the same using the same username and path as you originally began with before changing domains so I am guessing that you didn't really change the domain but rather instead setup a new account with the new domain which is not what you should have done. However, now that you have done things that way instead of changing names, you'll need to sort things out with what you have done.

    What I cannot figure out is exactly what you are asking?

    You could be trying to figure out how to move your files to the new account and perhaps trying to tell us that you don't know how to move the files?

    Or maybe you already moved the files to the new account and you want to know how to update the paths in the files so that your files work in the new account as they did before in the old account?

    In either of these cases, what Chirpy told you won't be of any use to you as I know what he thinks you are saying but I am not so sure you are saying what he thinks you are saying. Closer examination of your statement suggests two other possibilities in what you are asking which I think might be more the case.

    For the former possibility above, the easiest way to move the files would probably be to make an archive containing your "public_html" and "mail" folders and extract that in the new account using the --owner option
    with tar to update the owner on all files to the new account login in the process which saves you a few steps.

    For the later possibility mentioned above if you are asking about how to update the path in your files, you can do this with a replace command.

    Go to /home/(new login)/public_html and do this:
    Code:
    replace "(original login)"  "(new login)" -- *.html *.htm *.php
    Replace '(original login)' and '(new login)' with their respective login names

    Anyway though, you'll need to tell us more about what you are trying to do or what you are asking so that I can better understand you and then I might be able to give you more detailed instructions what you need to do.
    Last edited by Spiral; 07-19-2009 at 12:41 PM.

Similar Threads & Tags
Similar threads

  1. Change Mailman Return Path
    By NDworman in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-10-2011, 01:27 PM
  2. Exim remove and change return-path
    By webstyler in forum E-mail Discussions
    Replies: 4
    Last Post: 11-13-2009, 09:18 PM
  3. Change the sites path
    By komar07 in forum New User Questions
    Replies: 3
    Last Post: 09-11-2005, 02:52 PM
  4. Change path for new users
    By bihweb in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 06-26-2004, 10:03 PM
  5. how to change the MySQL DB's path?
    By Jedia in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-31-2004, 09:56 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube