Yii Not Running Properly On Lamp Stack With Php5.5.9

I installed yii on the latest LAMP stack (apache2). It is running fine on OSX and Linux with php5.3 but on the php5.5.9 in Ubuntu I am facing difficulty in setting up Yii.

The problem is that the index.php output in the browser is showing blank html when I turned the Yii-Environment extension off. And upon turning the Yii-Environment on, the html body is showing un-parsed php variables all over the page.

Also, just to give a detailed perspective to the problem, when the runtime folder in protected was left “un-writable”, Yii was throwing proper error as expected… that it doesn’t have proper permission to write in the protected/runtime folder. 5910

Screen Shot 2014-09-07 at 7.12.48 pm.png

But as and when I did a chmod 777 on the protected/runtime, instead of producing properly rendered web-output it is throwing a crappy output like shown below:

5911

Screen Shot 2014-09-07 at 7.11.51 pm.png

Kindly Help!!!!!! :-[ :-[

looks like php is not being rendered by the web server. are you using short tags?