title: CakePHP shows blank page with no errors at remote server
body: <p>I have a CakePHP 2.5.1 site hosted on a CentOS dedicated server that have installed CPanel(includes apache, exim, php, and etc) and on this site i have a management area, but for some reason, this area only works properly at localhost, if i upload the site into the remote server it just shows up a blank page.</p>
  
  <p>Obs: all the rest of the site works properly, only the management area that does not work.</p>
  
  <p>Obs²: someday i uploaded the site into another server and the area was working, so i think that the problem might be with the server.</p>
  
  <p>I solicited technician support with CPanel but they are not capable to help me as long they does not know how CakePHP works, but they tried to.</p>
  
  <p>I know that a external links are not recommended to use, btw i have sure that i really cannot reproduce the problem on another place, so there is the link to the blank page: <a href="http://www.acheiapartamento.com.br/biz/" rel="nofollow">http://www.acheiapartamento.com.br/biz/</a></p>
  
  <p>Here is the <strong>routes.php</strong> defined (as you can see "/biz/" url pointing to pages controller index):</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  
  /**
   * Routes configuration
   *
   * In this file, you set up routes to your controllers and their actions.
   * Routes are very important mechanism that allows you to freely connect
   * different URLs to chosen controllers and their actions (functions).
   *
   * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
   * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
   *
   * Licensed under The MIT License
   * For full copyright and license information, please see the LICENSE.txt
   * Redistributions of files must retain the above copyright notice.
   *
   * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
   * @link          http://cakephp.org CakePHP(tm) Project
   * @package       app.Config
   * @since         CakePHP(tm) v 0.2.9
   * @license       http://www.opensource.org/licenses/mit-license.php MIT License
   */
  /**
   * Here, we are connecting '/' (base path) to controller called 'Pages',
   * its action called 'display', and we pass a param to select the view file
   * to use (in this case, /app/View/Pages/home.ctp)...
   */
  /* BIZ */
  Router::connect('/biz/', array('controller' =&gt; 'pages', 'action' =&gt; 'index', 'biz' =&gt; 'true'));
  
  
  /* HOME */
  Router::connect('/', array('controller' =&gt; 'home', 'action' =&gt; 'index'));
  Router::connect('/home', array('controller' =&gt; 'home', 'action' =&gt; 'index'));
  
  Router::connect('/classificados-home', array('controller' =&gt; 'home', 'action' =&gt; 'classificados'));
  Router::connect('/destaques-home', array('controller' =&gt; 'home', 'action' =&gt; 'destaques'));
  Router::connect('/lancamentos-home', array('controller' =&gt; 'home', 'action' =&gt; 'lancamentos'));
  
  
  /* EMPRESA */
  Router::connect('/sobre', array('controller' =&gt; 'institucionais', 'action' =&gt; 'index'));
  Router::connect('/dicas', array('controller' =&gt; 'institucionais', 'action' =&gt; 'dicas'));
  
  /* EMPREENDIMENTOS */
  Router::connect('/destaques', array('controller' =&gt; 'empreendimentos', 'action' =&gt; 'index'));
  Router::connect('/empreendimentos/enviar_contato', array('controller' =&gt; 'empreendimentos', 'action' =&gt; 'enviar_contato'));
  Router::connect('/destaques/:slug', array('controller' =&gt; 'empreendimentos', 'action' =&gt; 'interna'));
  Router::connect('/empreendimentos/:slug', array('controller' =&gt; 'empreendimentos', 'action' =&gt; 'interna'));
  Router::connect('/buscador', array('controller' =&gt; 'empreendimentos', 'action' =&gt; 'busca'));
  Router::connect('/resultado', array('controller' =&gt; 'empreendimentos', 'action' =&gt; 'resultado'));
  Router::connect('/classificados', array('controller' =&gt; 'empreendimentos', 'action' =&gt; 'classificados'));
  //Router::connect('/lancamentos', array('controller' =&gt; 'empreendimentos', 'action' =&gt; 'lancamentos'));
  Router::connect('/lancamentos/enviar_contato', array('controller' =&gt; 'lancamentos', 'action' =&gt; 'enviar_contato'));
  Router::connect('/lancamentos', array('controller' =&gt; 'lancamentos', 'action' =&gt; 'index'));
  Router::connect('/lancamentos/:slug', array('controller' =&gt; 'lancamentos', 'action' =&gt; 'interna'));
  
  
  /*EMPREENDIMENTOS BAIRROS*/
  Router::connect('/bairros/busca', array('controller' =&gt; 'empreendimentos_bairros', 'action' =&gt; 'busca'));
  
  /*CLIENTE */ 
  Router::connect('/blog', array('controller' =&gt; 'noticias', 'action' =&gt; 'index'));
  Router::connect('/blog/:slug', array('controller' =&gt; 'noticias', 'action' =&gt; 'interna'));
  Router::connect('/ache-para-mim', array('controller' =&gt; 'interesse', 'action' =&gt; 'index'));
  Router::connect('/ache-para-mim/comercial', array('controller' =&gt; 'interesse', 'action' =&gt; 'comercial'));
  
  Router::connect('/atendimentos', array('controller' =&gt; 'atendimentos', 'action' =&gt; 'index'));
  Router::connect('/clientes', array('controller' =&gt; 'clientes', 'action' =&gt; 'index'));
  
  Router::connect('/meus-favoritos', array('controller' =&gt; 'clientes', 'action' =&gt; 'index'));
  Router::connect('/meus-imoveis', array('controller' =&gt; 'clientes', 'action' =&gt; 'meus_imoveis'));
  
  
  Router::connect('/cadastre-seu-imovel', array('controller' =&gt; 'empreendimentos', 'action' =&gt; 'cliente_imovel'));
  
  Router::connect('/faq', array('controller' =&gt; 'faqs', 'action' =&gt; 'index'));
  
  Router::connect('/pergunte-ao-corretor', array('controller' =&gt; 'perguntas', 'action' =&gt; 'index'));
  
  /* CONTATO */
  Router::connect('/contato', array('controller' =&gt; 'contatos', 'action' =&gt; 'index'));
  
  Router::connect('/aplicativo', array('controller' =&gt; 'aplicativos', 'action' =&gt; 'index'));
  
  
  Router::connect('/cortarimagem', array('controller' =&gt; 'empreendimentos', 'action' =&gt; 'cortarimagem'));
  
  /** EXPORTAÇÃO **/
  
  
  /* IMPORTACAO */
  Router::connect('/importacao/', array('controller' =&gt; 'empreendimentos', 'action' =&gt; 'importacao'));
  Router::connect('/importacao-imagem/', array('controller' =&gt; 'empreendimentos', 'action' =&gt; 'importacao2'));
  
  /* BEMORAR */
  //Router::connect('/exp-bemorar/:id', array('controller' =&gt; 'bemorar', 'action' =&gt; 'index'));
  
  
  
  /**
   * Load all plugin routes. See the CakePlugin documentation on
   * how to customize the loading of plugin routes.
   */
  CakePlugin::routes();
  
  /**
   * Load the CakePHP default routes. Only remove this if you do not want to use
   * the built-in default routes.
   */
  require CAKE . 'Config' . DS . 'routes.php';
  </code></pre>
  
  <p>Here is the code of <strong>PagesController.php</strong>:</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  
  /**
   * Static content controller.
   *
   * This file will render views from views/pages/
   *
   * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
   * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
   *
   * Licensed under The MIT License
   * For full copyright and license information, please see the LICENSE.txt
   * Redistributions of files must retain the above copyright notice.
   *
   * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
   * @link          http://cakephp.org CakePHP(tm) Project
   * @package       app.Controller
   * @since         CakePHP(tm) v 0.2.9
   * @license       http://www.opensource.org/licenses/mit-license.php MIT License
   */
  App::uses('AppController', 'Controller');
  App::uses('UsersController', 'Controller');
  App::uses('BannersController', 'Controller');
  
  /**
   * Static content controller
   *
   * Override this controller by placing a copy in controllers directory of an application
   *
   * @package       app.Controller
   * @link http://book.cakephp.org/2.0/en/controllers/pages-controller.html
   */
  class PagesController extends AppController {
  
      /**
       * This controller does not use a model
       *
       * @var array
       */
      public $uses = array();
  
      /**
       * Displays a view
       *
       * @param mixed What page to display
       * @return void
       * @throws NotFoundException When the view file could not be found
       *  or MissingViewException in debug mode.
       */
      public function display() {
  
      $path = func_get_args();
  
          $count = count($path);
          if (!$count) {
              return $this-&gt;redirect('/');
          }
          $page = $subpage = $title_for_layout = null;
  
          if (!empty($path[0])) {
              $page = $path[0];
          }
          if (!empty($path[1])) {
              $subpage = $path[1];
          }
          if (!empty($path[$count - 1])) {
              $title_for_layout = Inflector::humanize($path[$count - 1]);
          }
          $this-&gt;set(compact('page', 'subpage', 'title_for_layout'));
  
          try {
              $this-&gt;render(implode('/', $path));
          } catch (MissingViewException $e) {
              if (Configure::read('debug')) {
                  throw $e;
              }
              throw new NotFoundException();
          }
  
      }
  
      public function biz_index() {
          echo "teste";
      }
  
      public function index() {
          echo "teste";
          $produto = new ProdutosController();
          $this-&gt;set('produtos', $produto-&gt;Produto-&gt;find('all'));
      }
  
  }
  </code></pre>
  
  <p>The same codes work here at localhost, the <strong>phpinfo()</strong> of localhost and my remote server are ALMOST the same, i've checked it.</p>
  
  <p><strong>Remote phpinfo() (does not works):</strong>
  <a href="https://drive.google.com/a/unesc.net/file/d/0Byyr3Jl114rReUg2cnhTSTZ2b1E/view" rel="nofollow">https://drive.google.com/a/unesc.net/file/d/0Byyr3Jl114rReUg2cnhTSTZ2b1E/view</a>   </p>
  
  <p><strong>Localhost phpinfo() (works):</strong>
  <a href="https://drive.google.com/a/unesc.net/file/d/0Byyr3Jl114rRSTVobzRic2NlWFk/view?usp=sharing" rel="nofollow">https://drive.google.com/a/unesc.net/file/d/0Byyr3Jl114rRSTVobzRic2NlWFk/view?usp=sharing</a></p>
  
  <p>No errors appears on logs and the page is blank so i dont really know what to do, i need to fix that as fast as i can.</p>