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 preview website

Discussion in 'General Discussion' started by jamiro911, Jul 8, 2010.

  1. jamiro911

    jamiro911 Member

    Joined:
    May 28, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Hello, I have a new dedicated server and now I want to preview a website, or better there is an account with joomla installed, and work on that joomla website without a hostname allready connected to the site.
    With my older server it did worked with http://ipserver/~username but with the new server it doesn't work that way.
     
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    Looks like mod_userdir is enabled on the server which restricts the ip/~username access. Goto

    and see if "Enable mod_userdir" checkbox is selected. If it is, deselect it and save. You can also disable the protection on per user basis.
     
  3. jamiro911

    jamiro911 Member

    Joined:
    May 28, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    That I've allready tried but that doesn't work.
    What does work is this http://www.previewasite.com/
     
  4. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    What error message do you receive while accessing the domain via

    check the error logs at the time you browse the above URL

     
  5. jamiro911

    jamiro911 Member

    Joined:
    May 28, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1

    Where can I found -f /usr/local/apache/logs/error_log ?

    is dat in WHM or cpanel? cause previewasite doesn't work anymore neither.
     
  6. jamiro911

    jamiro911 Member

    Joined:
    May 28, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    now when I disable Apache mod_userdir Tweak it works with http://serverip/~user but when I enable it Apache mod_userdir Tweak and exclude one user it doesn't work.
     
  7. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    View logs using the shell

    You must log into the shell to view the Apache logs. Log into the shell as root via SSH, and use the less or tail command to view the log. If you use the tail -f command, you can follow what is written to the file while you try to view the site.

    What happens if you disable mod_userdir protection for DefaultHost (nobody)? The preview should work. If you disable protection for yourdomain.com (youracct), then it will allow mod_userdir to work for http://yourdomain.com/~someacct. This is probably not what you want, so protection needs to be disabled for DefaultHost (nobody).
     
Loading...

Share This Page