Reputation: 374
I'm new to linux(ubuntu v 12.04),I installed yii framework,then I created a new project using yiic command,when I run the project I just give a blank page with no error.what is the reason?can any body help me?
Upvotes: 2
Views: 2918
Reputation: 6928
Try this:
On your /index.php
file, add ini_set('display_errors', 1);
at the beginning. Save the file and reload your home page.
That should come up with an error which will allow you to see where the problem is.
Upvotes: 2
Reputation: 1152
Its because your php settings are to not show error messages, instead it log them to file. You can see your errors if u go to /var/log/apache2/ and open file error.log. If you wish to change this settings and get your errors printed on screen (what is useful for developer machine) you can update you php.ini. You can find it on this path /etc/php5/apache2/php.ini. Find line in file 'display_errors' and change it to be display_errors = On. Than also find line 'error_reporting' and change it to be error_reporting = E_ALL. I hope this will help.
Upvotes: 0