So, after i place in my .htaccess file which consists of the next:

# Use PHP5 php.ini as default
AddHandler application/x-httpd-php5 .php

AcceptPathInfo On

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [L,QSA]

The server attempts to download the PHP file rather than performing it. After I take away the .htaccess file, everything works fine and also the PHP files execute.

I'd take away the AddHandler directive. Leave this towards the server config.

Anything else looks fine.

It may be the

AddHandler application/x-httpd-php5 .php

Are you currently including this since your server is setup not to run PHP5 automatically?

I discovered the problem ultimately, I'd the whole factor setup properly. There's a bug in PHP5, which had happened because of a few of the stopping support of $_SERVER['ORIG_PATH_INFO']. This isn't true in home windows servers, in PHP 5.4.2 (Linux Distro) ORIG_PATH_INFO isn't supported anymore, only PATH_INFO. A study has been manufactured relating to this. But all is ready to go. Interesting guys' help and reactions.