|
|||
|
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 |
|
||||
|
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 |
|
||||
|
Quote:
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 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.
__________________
My Server Expert: Server support, security, and management! Last edited by Spiral; 07-19-2009 at 12:41 PM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |