application/x-httpd-php5s .php - problem
Posted: 20. October 2010 23:39
Hello All !
I have a Drupal 6 site running on Bluehost. I've been developing it using LAMP 1.7.1 on Windows. Everything worked fine on windows and on Bluehost.
Now I moved to Kubuntu 10.10 and I'm having a problem with .htaccess file generated by Bluehost.
Here what I have done on Kubuntu:
1. Installed XAMP 1.7.1
2. Started all services and checked that XAMP status is green.
3. Copied my site from Bluehost public_html/ to XAMP htdocs/ directory (this worked like a charm on Windows with LAMP)
4. tried to access site with 127.0.0.1
Problem: index.php is not executed. Instead, web browser offer to download the file.
After some digging into the problem I found out it is .htaccess file generated by Bluehost is guilty. If I comment out following line in it:
# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5s .php
it start working fine and index.php file start executing.
Question:
Everything worked fine in LAMP 1.7.1. It broke in XAMP 1.7.1. Any ideas how to fix that? One thing I do not want to change is .htaccess file since it is generated by Bluehost.
Any help will be appreciated!
Alexei
I have a Drupal 6 site running on Bluehost. I've been developing it using LAMP 1.7.1 on Windows. Everything worked fine on windows and on Bluehost.
Now I moved to Kubuntu 10.10 and I'm having a problem with .htaccess file generated by Bluehost.
Here what I have done on Kubuntu:
1. Installed XAMP 1.7.1
2. Started all services and checked that XAMP status is green.
3. Copied my site from Bluehost public_html/ to XAMP htdocs/ directory (this worked like a charm on Windows with LAMP)
4. tried to access site with 127.0.0.1
Problem: index.php is not executed. Instead, web browser offer to download the file.
After some digging into the problem I found out it is .htaccess file generated by Bluehost is guilty. If I comment out following line in it:
# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5s .php
it start working fine and index.php file start executing.
Question:
Everything worked fine in LAMP 1.7.1. It broke in XAMP 1.7.1. Any ideas how to fix that? One thing I do not want to change is .htaccess file since it is generated by Bluehost.
Any help will be appreciated!
Alexei