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.

Dedicated IP to Shared Breaks Site

Discussion in 'General Discussion' started by paneluser280, Feb 23, 2009.

  1. paneluser280

    paneluser280 Member

    Joined:
    Mar 17, 2007
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    I established a site on a dedicated IP, now I want to move it to the shared IP on the same server. Everytime I change the ip of the site it goes down, I receive the "Great Success ! Apache is working on your cPanel® and WHM™ Server" message. When I view the site I receive a "404 not found"

    When I move the site it shows the correct IP in "Show Ip Usage", DNS looks correct, I cleaned the DNS Pool, restarted DNS Server, but the site does not appear unless I return back to the dedicated IP it was originally assigned.

    Also, after moving the site from shared to dedicated I did notice that the "ftp.site.com" remains at the old "dedicated' ip address.

    Any thoughts.

    Thank you

    JR
     
  2. JPC-Martin

    JPC-Martin Active Member
    PartnerNOC

    Joined:
    May 31, 2008
    Messages:
    37
    Likes Received:
    1
    Trophy Points:
    8
    It seems that you have IP conflict , Please make sure the IP addresses against problematic domain.

    1: Check IP in /var/cpanel/userdata/user's name
    i: Check domain.com file
    ii: Check subdomain.domain file

    2: Check virtual host entry for problimatic domain in httpd.conf located at /usr/local/apache/conf/httpd.conf

    3: I will also ask you to check DNS entries of domain.
     
  3. JPC-Stefan

    JPC-Stefan Member

    Joined:
    Oct 29, 2008
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Please check if anonymous FTP is enabled for your account, if so then disable the anonymous FTP and then try to change the IP address.

    After changing IP check httpd.conf file to make sure that IP is changed in apache configuration file as well.
     
  4. paneluser280

    paneluser280 Member

    Joined:
    Mar 17, 2007
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Thank you. Let me check these setting and I wil get back to you.

    Thanks for the support.

    JR
     
  5. Ipstenu

    Ipstenu Registered

    Joined:
    Apr 6, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I'm having this exact same problem.

    If I move back to my old, dedicated IP, it's fine, but if I go to the shared one, the site borks.

    /var/cpanel/userdata/user points to the right IP, the domain.com file is correct.
    What's My DNS? Global DNS Propagation Checker points to the right IP
    /var/cpanel/users/user is fine.

    /usr/local/apache/conf/httpd.conf has the only 'oddity.'

    It has THIS for the domain I moved, but the other domain doesn't have the NameVirtualHost line:

    NameVirtualHost xx.xxx.xx.xx:80
    <VirtualHost xx.xxx.xx.xx:80>
    ...

    Any suggestions?
     
  6. 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
    There should be only one NameVirtualHost directive per IP address. This simply enables name-based virtual hosting for that IP address. The <VirtualHost></VirtualHost> containers hold the directives specific to each domain.

    The cause of the "Great Success!" page is normally caused by a request coming to an Apache on an IP address on which the domain is not configured. Usually, this is caused by a mismatch between the DNS A record for the domain and the Apache configuration.

    One thing to check that has not been mentioned so far in this thread is that this often happens in NAT environments. If the account is assigned an external, public IP address in cPanel, but the request comes to the server on an internal, private IP address, the Great Success! page will be displayed. The IP address assigned to the site must exactly match the IP address over which the HTTP request comes.
     
Loading...

Share This Page