Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Redirection stopped working

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

  1. Erjen

    Erjen Active Member

    Joined:
    Jul 14, 2014
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    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,888
    Likes Received:
    90
    Trophy Points:
    78
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. webhostuk

    webhostuk Well-Known Member

    Joined:
    Sep 11, 2013
    Messages:
    145
    Likes Received:
    15
    Trophy Points:
    18
    Location:
    UK
    cPanel Access Level:
    Website Owner
    Twitter:
    Also check the files /Var/Cpanel/users if I think that those files are missing.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,423
    Likes Received:
    1,959
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

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

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Erjen

    Erjen Active Member

    Joined:
    Jul 14, 2014
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,423
    Likes Received:
    1,959
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Could you verify if /var/cpanel/userdata was copied over? This is separate from the "/var/cpanel/users" directory.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Erjen

    Erjen Active Member

    Joined:
    Jul 14, 2014
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    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 Active Member

    Joined:
    Jul 14, 2014
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,423
    Likes Received:
    1,959
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Erjen

    Erjen Active Member

    Joined:
    Jul 14, 2014
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    3
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,423
    Likes Received:
    1,959
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'm happy to see the issue was addressed. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice