Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Apr 2011
    Posts
    14

    Default New WHM/CPanel account, PHP not working

    Hi guys,

    I have a fresh server with WHM and cPanel X. Everything is working fine as far as the server and DNS, but it's not parsing php files in my web root - I get the Default Website Page.

    Default PHP Version (.php files): 5
    PHP 5 Handler: suphp
    PHP 4 Handler: none
    Apache suEXEC on

    Any insight as to how to begin troubleshooting would really be appreciated.

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: New WHM/CPanel account, PHP not working

    Are html pages working fine? If they are also showing the default website page, then it isn't a PHP issue but one with the domain resolving properly via Apache. Normally, the two reasons I've seen that happen would be the following:

    1) The system is using NAT where it has a backend IP (typically starting with 192.) that reroutes to a frontend IP off the system. Under NAT, the DNS zone must have the frontend IP, while Apache's configuraiton (/usr/local/apache/conf/httpd.conf) must have the backend IP

    2) Caching is showing the domain when it was checked before it resolved to the machine. In this situation, using a proxy such as proxify.net or kproxy.com will help to see if caching is the issue.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member
    Join Date
    Apr 2011
    Posts
    14

    Default Re: New WHM/CPanel account, PHP not working

    Thanks for the quick reply! As you can imagine, this is a tad frustrating. I have another domain pointed at the same host and it works just fine - it's just one that I'm just setting up that's being a pain in the rear.

    If I use the IP address, I get the index.php page. If I use the domain, I get the default cPanel webpage.

    What's odd is that a different account works perfectly, so I assume it's not a global PHP problem - just an issue with this one site. I don't think it's caching, because it's a cPanel page (not a page on a previous host).

    Edit: Will check an .html file, and re-edit this post in a sec.

    Re-edit, Nope, HTML files aren't working either, actually. No matter what's there, I get the cPanel default page.

  4. #4
    Member
    Join Date
    Apr 2011
    Posts
    14

    Default Re: New WHM/CPanel account, PHP not working

    Update:

    My WHM install is on IP .114. The account I'm setting up is on .115. My DNS (GoDaddy) points to .115, and everything in CPanel points to .115. However if I ping the www of the domain, it's resolving to .114. I assume this is a WHM setting somewhere?

  5. #5
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: New WHM/CPanel account, PHP not working

    It is an issue with the DNS zone files and httpd.conf files not matching the necessary IP. You should change the IP in WHM > Change Site's IP Address area to the .114 shared IP, then change it back to the .115 IP again. This should update all the records. After that, check the domain in a proxy to see if it is working because you will be cached to the old IP for a period of time.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  6. #6
    Member
    Join Date
    Apr 2011
    Posts
    14

    Default Re: New WHM/CPanel account, PHP not working

    Just to update this, I'm not sure what the root cause of the issue was, but I deleted the account, pointed my DNS at the IP of WHM and everything is working fine. Cheers Tristan, thank you.

Similar Threads & Tags
Similar threads

  1. php script to create email account is not working
    By ctello in forum cPanel Developers
    Replies: 1
    Last Post: 08-02-2011, 02:03 PM
  2. Php is not working on whm
    By niravmehta2009 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-23-2011, 08:40 AM
  3. php function mail () not working within my account
    By chike in forum New User Questions
    Replies: 7
    Last Post: 06-07-2010, 02:03 PM
  4. WHM php not working
    By whitewlf in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-01-2007, 05:29 AM
  5. Fantastico not working: PHP not working in cPanel/WHM
    By softwareguy in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 05-25-2006, 02:38 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube