#1 (permalink)  
Old 07-19-2009, 06:46 AM
Registered User
 
Join Date: Jul 2008
Posts: 148
ASTRAPI is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-19-2009, 11:04 AM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
The simplest and quickest way would probably be to create a symlink:

ln -s /home/newdomai /home/newaccou
__________________
Jonathan Michaelson
cPanel Forum Moderator

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-19-2009, 12:38 PM
Spiral's Avatar
Registered User
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,501
Spiral is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change the sites path komar07 cPanel Newbies 3 09-11-2005 02:52 PM
How i change either a cpanel users Home dir or there public_html path to /shoutcast ste@kmh-hosting cPanel and WHM Discussions 1 06-13-2005 09:28 AM
Whats the easiest way to change the PATH variable serverwide? AbeFroman cPanel and WHM Discussions 2 09-26-2004 02:48 PM
Change path for new users bihweb cPanel and WHM Discussions 8 06-26-2004 10:03 PM
how to change the MySQL DB's path? Jedia cPanel and WHM Discussions 0 03-31-2004 09:56 PM


All times are GMT -5. The time now is 07:14 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc