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.

blank domain homepage

Discussion in 'General Discussion' started by Zion Ahead, Mar 10, 2008.

  1. Zion Ahead

    Zion Ahead Well-Known Member

    Joined:
    Nov 10, 2006
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    domain shows a blank page on the home page index.php file.

    I renamed htaccess to .bak, still blank page.

    Domlogs shows this

    xxxxx - - [10/Mar/2008:13:58:16 -0500] "GET / HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12"


    Apache error logs do not show anything for this domain

    Code:
    drwxr-x---   8 username nobody   4.0K Mar 10 13:57 ./
    drwx--x--x  10 username username 4.0K Sep  4  2007 ../
    drwxr-xr-x   2 username username 4.0K May 23  2007 cgi-bin/
    -rw-r--r--   1 username username 288K May 24  2007 core
    drwxr-xr-x   2 username username 4.0K May 30  2007 css/
    -rw-r--r--   1 username username 2.9K May 24  2007 css.php
    -rw-r--r--   1 username username 4.2K May 24  2007 favicon.ico
    drwxr-xr-x   2 username username 4.0K May 24  2007 files/
    -rw-r--r--   1 username username  191 May 24  2007 .htaccess
    drwxr-xr-x   2 username username 4.0K May 24  2007 images/
    drwxr-xr-x   2 username username 4.0K May 30  2007 img/
    -rw-r--r--   1 username username 3.2K May 24  2007 index.php
    drwxr-xr-x   4 username username 4.0K Sep  7  2007 js/
    -rw-r--r--   1 username username 6.3K Jun  1  2007 test.php
    Code:
    drwxr-x---    8 username nobody   4.0K Mar 10 13:57 public_html/
    I traced the cause to the index.php file.


    I don't know what part of the file is causing the home page to show up blank, but this is the entire file


    Code:
    <?php
    /* SVN FILE: $Id: index.php 4425 2007-02-03 03:02:14Z phpnut $ */
    /**
     * Short description for file.
     *
     * Long description for file
     *
     * PHP versions 4 and 5
     *
     * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
     * Copyright 2005-2007, Cake Software Foundation, Inc.
     *                                                              1785 E. Sahara Avenue, Suite 490-204
     *                                                              Las Vegas, Nevada 89104
     *
     * Licensed under The MIT License
     * Redistributions of files must retain the above copyright notice.
     *
     * @filesource
     * @copyright           Copyright 2005-2007, Cake Software Foundation, Inc.
     * @link                                http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
     * @package                     cake
     * @subpackage          cake.app.webroot
     * @since                       CakePHP(tm) v 0.2.9
     * @version                     $Revision: 4425 $
     * @modifiedby          $LastChangedBy: phpnut $
     * @lastmodified        $Date: 2007-02-02 21:02:14 -0600 (Fri, 02 Feb 2007) $
     * @license                     http://www.opensource.org/licenses/mit-license.php The MIT License
     */
    /**
     * Do not change
     */
            if (!defined('DS')) {
                     define('DS', DIRECTORY_SEPARATOR);
            }
    /**
     * These defines should only be edited if you have cake installed in
     * a directory layout other than the way it is distributed.
     * Each define has a commented line of code that explains what you would change.
     */
            if (!defined('ROOT')) {
                     //define('ROOT', 'FULL PATH TO DIRECTORY WHERE APP DIRECTORY IS LOCATED. DO NOT ADD A TRAILING DIRECTORY SEPARATOR');
                     //You should also use the DS define to separate your directories
                     //define('ROOT', dirname(dirname(dirname(__FILE__))));
                     define('ROOT', dirname(dirname(__FILE__)) . DS . 'web_common_recoplus');
            }
            }
            if (!defined('APP_DIR')) {
                     //define('APP_DIR', 'DIRECTORY NAME OF APPLICATION');
                     //define('APP_DIR', basename(dirname(dirname(__FILE__))));
                     define('APP_DIR', 'app_recoplus');
            }
    /**
     * This only needs to be changed if the cake installed libs are located
     * outside of the distributed directory structure.
     */
            if (!defined('CAKE_CORE_INCLUDE_PATH')) {
                     //define ('CAKE_CORE_INCLUDE_PATH', 'FULL PATH TO DIRECTORY WHERE CAKE CORE IS INSTALLED. DO NOT ADD A TRAILING DIRECTORY SEPARATOR');
                     //You should also use the DS define to separate your directories
                     define('CAKE_CORE_INCLUDE_PATH', ROOT);
            }
    ///////////////////////////////
    //DO NOT EDIT BELOW THIS LINE//
    ///////////////////////////////
            if (!defined('WEBROOT_DIR')) {
                     define('WEBROOT_DIR', basename(dirname(__FILE__)));
            }
            if (!defined('WWW_ROOT')) {
                     define('WWW_ROOT', dirname(__FILE__) . DS);
            }
            if (!defined('CORE_PATH')) {
                     if (function_exists('ini_set')) {
                              ini_set('include_path', CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS . PATH_SEPARATOR . ini_get('include_path'));
                              define('APP_PATH', null);
                              define('CORE_PATH', null);
                     } else {
                              define('APP_PATH', ROOT . DS . APP_DIR . DS);
                              define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
                     }
            }
            require CORE_PATH . 'cake' . DS . 'bootstrap.php';
            if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') {
            } else {
                     $Dispatcher=new Dispatcher();
                     $Dispatcher->dispatch($url);
            }
            if (Configure::read() > 0) {
                     echo "<!-- " . round(getMicrotime() - $TIME_START, 4) . "s -->";
            }
    ?>
    Serve Specs:

    PHP 4.4.8 w/ Fastcgi and phpsuexec enabled
    Apache 2.2
    Cpanel 11
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    A better question is should this script actually display any content?

    If you go to view source and see a comment, from briefly reviewing the PHP code, I believe that's all this script should output. As you know, comments are not displayed in the actual browser itself.
     
Loading...

Share This Page