Blank Screen with CodeIgniter

后端 未结 7 1705
花落未央
花落未央 2020-12-10 06:58

I\'ve just moved a site across to a production server, and a once working CodeIgniter installation now returns a blank screen. I believe it is due to whitespace, but how are

7条回答
  •  情歌与酒
    2020-12-10 07:46

    Things to check:

    • Inside config.php, make sure your $config['base_url'] is set properly
    • Were you able to copy your .htaccess as well?
    • Do you have the same PHP versions in both machines? If your answer is yes, i'll ask you again: Are you sure?
    • What is the value of your $db['default']['hostname']?
    • Do you have the same database setup in your local and production server? There could be differences with the hostname, username, password and database name

    Other things you can do:

    • Set $db['default']['db_debug'] to TRUE
    • Deploy a fresh CodeIgniter installation in your production server and check if you can see something
    • If you still see a blank page, deploy a single PHP file with text in it and tell us what you see

提交回复
热议问题