ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Website showing php code, and control panel not accessible

August 16, 2012 3:03pm

Subscribe [2]
  • #1 / Aug 16, 2012 3:03pm

    alijrob

    2 posts

    Out of nowhere, a client was suddenly unable to log into their control panel. They get this code:

    <?php

    error_reporting(0);

    $pathinfo = pathinfo(__FILE__);
    $ext = ‘.’.$pathinfo[‘extension’];

    require ‘./core/core.system’.$ext;

    ?>

    And the website was no longer working. The home page shows the php code instead of the site.

    They were running 1.6.7, so I took the opportunity to update the site to the current 2.5.2 version (hoping it was a corrupt file which would be replaced), but when I navigate to the admin.php page to start the upgrade (after all of the appropriate files have been uploaded), I get the same php on the home page instead of the upgrade page.

    I would very much appreciate some insight as I am at a complete loss. Thank you!

  • #2 / Aug 16, 2012 6:46pm

    tidy

    196 posts

    The files you uploaded are not being seen as PHP files. You need to contact your host about this to find out how you can ensure that files ending in a php extension are parsed as such.

  • #3 / Aug 17, 2012 3:49pm

    Kevin Smith

    4784 posts

    Yep, you’ll want to make sure your host has your account set up to properly support PHP. Let us know what you hear back from your host!

  • #4 / Sep 05, 2012 10:32am

    alijrob

    2 posts

    Thanks for your help. It was, in fact the host’s fault. They upgraded the php and it caused all sorts of problems. But everything is back up and running again. Thanks again!

  • #5 / Sep 06, 2012 12:09pm

    Lisa Wess

    20502 posts

    Thanks for letting us know, alijrob! I’m glad your host was able to sort this one out for you.

    if anything else comes up, please start a new thread where we can assist. Thanks!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases