LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs > catkin
User Name
Password

Notices

Rate this Entry

Fix: browser downloads PHP file instead of running it (Debian Squeeze)

Posted 01-31-2012 at 02:39 AM by catkin

This problem took nearly a day to solve so here's the solution.

The problem symptom was with nagios3. After browsing http://<server>/nagios3 and logging on, Firefox opened a download dialog with said "You have chosen to open <blank line> which is a: application/x-httpd-php".

Looking for nagios-specific solutions was not fruitful. It was only when I searched for solutions to the browser downloading PHP files instead of running them I found solutions such as this one.

It turned out I had broken the libapache2-mod-php5 installation when re-installing apache2 to get a baselined installation.

The libapache2-mod-php5 installation was fixed by purging libapache2-mod-php5 which also removed (purged?) nagios3 and its many dependencies. After re-installing libapache2-mod-php5 and then nagios3, the same problem occurred until Firefox's "Recent History" (including cookies and cache) was cleared.
Posted in Uncategorized
Views 1663 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 05:29 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration