PHP and Apache - Shows source text

  [DELETED] 09:53 14 Feb 2006

I am quite new to linux, but last night decided to install MySql, Apache and PHP. I have installed all (after six hours) and can use mysql. However, when I run the php script in firefox and konqurer it shows only the source file text, it does not seem to show what it is supposed to. The php file is suppose to show some infor ( phpinfo(); ). Does anybody know what I may have done wrong. I am using Suse Linux 9.3. Any help would be gratefully recieved.

  [DELETED] 14:54 18 Feb 2006

This happened to me on Windows - I fixed it when I realised I had not associated .php with the PHP script.

If this is the same for you, you need to add:
AddType application/x-httpd-php .php

to Apache\conf\httpd.conf.

Hope this helps.

  [DELETED] 17:03 19 Feb 2006


The above answer seems the likely answer, also make sure that you have loaded the php module with apache.


Is the code btw.



This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Amazon Prime Day 2018: Best Deals & Launches

Say aloha to the summertime vibes of artist Kim Sielbeck

The best Amazon Prime Day Apple deals 2018

Les meilleures séries Amazon Prime Video (2018)