Reputation: 1
So, when I put in my .htaccess file which contains the following:
# 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 tries to download the PHP file instead of executing it. When I remove the .htaccess file, everything works fine and the PHP files execute.
Upvotes: 0
Views: 558
Reputation: 147
I found the issue in the end, I had the entire thing set up correctly. There is a bug in PHP5, that had happened due to some of the discontinuing support of $_SERVER['ORIG_PATH_INFO']. This is not true in windows servers, however in PHP 5.4.2 (Linux Distro) ORIG_PATH_INFO is not supported any more, only PATH_INFO. A report has been made about this. But all is up and running. Thanks for your guys' help and responses.
Upvotes: 0
Reputation: 4316
It could very well be the
AddHandler application/x-httpd-php5 .php
Are you including this because your server is setup to not run PHP5 by default?
Upvotes: 0
Reputation: 164729
I'd remove the AddHandler
directive. Leave this to the server config.
Everything else looks fine.
Upvotes: 5