PHP and Apache - Shows source text

  dean_e_boy 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.

  McTedo 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.

  welshwizard712 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

iMac Pro review

Visual Trends 2018: This year’s must-know colour, design, branding & photography trends

iMac Pro review

Apple Music : comment obtenir 3 mois gratuits ?