The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to transfer custom cpanel theme to other server

Discussion in 'General Discussion' started by Def, Mar 28, 2005.

  1. Def

    Def Well-Known Member

    Joined:
    Feb 21, 2003
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Anyone know how to copy a custom cpanel theme from old server to new server?

    Thanks.
     
  2. jethost

    jethost Member

    Joined:
    Mar 13, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Download it from SSH and upload it.

    I think
     
  3. Def

    Def Well-Known Member

    Joined:
    Feb 21, 2003
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    I'm trying to use SCP but getting an error that the file is "not a regular file".

    The file looks like so: theme_name@
     
  4. Def

    Def Well-Known Member

    Joined:
    Feb 21, 2003
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Anyone know?
     
  5. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Could just compress the theme folder to a single .tar.gz file, copy that over, and uncompress it.
     
  6. Def

    Def Well-Known Member

    Joined:
    Feb 21, 2003
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    I wish it were that simple. Problem is is that there's a symlink 'themename@' but no files I can find. This is the correct directory right ( /usr/local/cpanel/base/frontend ) ?

    TIA
     
  7. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    That explains it. Symlinks aren't normally followed for things like compressing. The symlink allows the actual content to be elsewhere, like maybe in your /home/username directory. You need to transfer the actual content, wherever that is. If you're not sure, do
    ls -l /usr/local/cpanel/base/frontend
    in shell and see where the symlink points to.
     
  8. Def

    Def Well-Known Member

    Joined:
    Feb 21, 2003
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Thanks Mike. That info also clears up another problem I was having.

    On the old server I found that the symlink (found in /usr/local/cpanel/base/frontend) points to /usr/local/cpanel/base/frontend/x

    on the new server the symlink is not there in /usr/local/cpanel/base/frontend (probably because it wasn't pkg'ed since it was a symlink).

    So my question now is do I just create a symlink with the same name as the one on the old server and point it to the /usr/local/cpanel/base/frontend/x directory? And if so what is the code? I've tried ln -s /usr/local/cpanel/base/frontend/x | nameofsymlink but I get "can't overwrite directory" message.

    I really do appreciate the help.
     
  9. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    If the name exists as a directory, you would have to delete it first.
     
Loading...

Share This Page