So I have a site written using the CI framework. It worked fine on the original host (Apache). It works fine locally (IIS 7 Express). We have just purchased a new VPS (Windows Server 2008 R2) and php was pre-installed (PHP Version 5.2.10) now when I go to the site I get a blank page.
After debugging by simply printing 'OK' ever so often I determined CodeIgniter.php is failling over on:
$CI = new $class();
Now to try and tackle the problem I have gone into config.php and set:
$config['log_threshold'] = 4;
However I am not even getting any log files. I noticed the permissions were not enabled for write so I went to "c:\inetput\wwwroot" and set max permissions for user "IIS_IUSRS"
Unfortunatly still, no log file is created. "index.php" is still blank so I am totally confused. This is my first time working with a CI app. Please help!
Edit: Ensured MySQL Installed and MySQL enabled for PHP
Thanks Chris
Trevor is right. I had the same exact problem and it was resolved right after installing php-mysql. I am running this on CentOS 6.2 and I did yum install php-mysql and it worked.
Had exactly the same problem. In my case, php-mysql was installed yet didn't appear in phpinfo(). I use php-fpm (with nginx) and the reason was that php-fpm needed to be restarted
sudo /etc/init.d/php5-fpm restart
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With