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.

Redirection stopped working

Discussion in 'General Discussion' started by Erjen, Apr 26, 2016.

  1. Erjen

    Erjen Member

    Joined:
    Jul 14, 2014
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I had some trouble with my /var directory and I had to restore many directories. :( Happily the cPanel backup gave me back very important files.
    But there is one thing I cannot solve. All the redirections stopped working like domain.tld/webmail /cpanel etc. Only for the very main domain it's still working.

    I compared the httpd.conf file with earlier backups but no problem with that one.
    - I did a /scripts/rebuildhttpdconf
    - /scripts/upcp
    - /scripts/updateuserdomains
    - service httpd graceful
    - completely restored the backupped /var dirs from the backup (without overwrite)
    - checked DNS
    - Tried to add some rewrite rules in the httpd.conf but that didn't work and doesn't seem like the way it should either.

    So probably there is some /var/* file/directory that needs to be replaced. If anyone can help me out would be very great.

    Thanks in advance!
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello :),

    Have you checked your WHM tweak setting ? Please check and enable " Proxy subdomains " through WHM >> Service Configuration >> Tweak Settings
     
  3. webhostuk

    webhostuk Well-Known Member

    Joined:
    Sep 11, 2013
    Messages:
    55
    Likes Received:
    6
    Trophy Points:
    8
    cPanel Access Level:
    Website Owner
    Also check the files /Var/Cpanel/users if I think that those files are missing.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Did you restore the "/var/cpanel/userdata" directory from the backup archive? If so, have you tried rebuilding Apache via EasyApache?

    Thank you.
     
  5. Erjen

    Erjen Member

    Joined:
    Jul 14, 2014
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    Proxy subdomains = enabled
    /Var/Cpanel/users is there. Compared it with a backup, but it's exactly the same.
    I did not rebuild Apache via EasyApache, I will do that tonight and will let you know the outcome.
    So far it's still not working.

    Thanks for the help so far.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you verify if /var/cpanel/userdata was copied over? This is separate from the "/var/cpanel/users" directory.

    Thank you.
     
  7. Erjen

    Erjen Member

    Joined:
    Jul 14, 2014
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi, yes that one is also restored..
    I didn't recompile yet, I need to do it overnight so trying to do it tonight.
    Thanks
     
  8. Erjen

    Erjen Member

    Joined:
    Jul 14, 2014
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I recompiled with easyapache, but no results :( Does anyone have an idea? Or should I create a ticket?
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  10. Erjen

    Erjen Member

    Joined:
    Jul 14, 2014
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I did that already and it was CloudLinux related.
    cagefsctl -r did the trick.
    Thanks for the reply and help
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page