CodeIgniter project loads blank webpage

14,030

I had the same blank page when I started working with CI.

For me, it was just that I forgot to install mySQL on my machine. You don't get errors because in the system files, the database connection is preceded by a "@" so no errors are displayed.

If this is not the problem, check your version of PHP, or try to add a phpinfo() in the index.php file.

Share:
14,030
Emmett Butler
Author by

Emmett Butler

Python/data hacker @ Parse.ly

Updated on June 14, 2022

Comments

  • Emmett Butler
    Emmett Butler almost 2 years

    I have a codeigniter project that I have run successfully on Mac OS X Lion. When attempting to run the same project in ubuntu, requesting localhost/project results in a blank page with no source.

    I've added AllowOverride All to apache.conf to no avail. My latest strategy has been to put a die() statement in strategic places in the index and included files, trying to find the line on which the code fails. Through this method, I've found in system/core/CodeIgniter.php that a die statement before the line "$CI = new $class();" executes, while one after it (and presumably all ensuing code) doesn't.

    What can I do with this information to help me run this project locally?

    Thank you!