I'm hoping someone here can point me in the right direction. I've literally been searching for a solution for more than 8 hours now and keep ending up in dead-ends. I'm just about ready to pull the last hair out of my coconut. I really need to get this resolved by day end so hoping someone here might have experienced this problem. I've been reading through so many forums and cannot find a solution.
I have previously created websites with PHP scripting embedded into pages with .html file extensions. To handle it I've always been able to simply add [ AddType application/x-httpd-php .php .html ] to my Apache httpd.conf file to handle it.
I've tried it in apache2.conf, httpd.conf, vhosts.conf -- not working. The environment is Ubuntu 12.04, Apache 2.2, Plesk 11.x?
I have outgrown my present server and upgraded. I'm in the process of applying the final server-wide configurations before migrating sites to my new server. I just found out that this is not going to work in the current environment. When I add that line and navigate to a page instead of the browser simply displaying it, it prompts me to download it with a message of -- [ You have chosen to open: which is a: application/x-httpd-php] -- it prompts me to choose a program to open it or save it.
I think I have narrowed it down a bit to being related to a combination of suPHP/PHP5/Server API CGI/FastCGI settings but cannot find a solution. Please, I hope someone has an answer, I'm going to go crazy if I cannot figure this out (we wouldn't want that would we!).
I really just want it to be as easy as it used to be. I don't want to have to rename site files to .php and also [ AddHandler application/x-httpd-php5 .php ] has not helped :(
I have to get away for a break to regroup but I will be checking back within a few hours in case someone recognizes this. Thanks folks.