Re: PHP source getting displayed
| From: | Erik | Date: | Thu, 30 May 2002 00:47:45 +0000 |
| Subject: | Re: PHP source getting displayed | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-7153@lists.php.net to get a copy of this message | ||
Richard Pyne wrote:
> I finally got Apache 2.0.36 + PHP 4.2.1 to run without crashing on startup
> (the secret was that the LoadModule line required the full path), but I am
> now getting the contents of test.php displayed instead of executed.
>
> Any ideas will be greatly appreciated.
>
> --Richard
>
hi,
if you get the raw php source code displayed in your browser screen instead
of a working php script it usually means that the php parsers isn't working
correctly solution is the apache configuration like what file extensions
did you associated with php ? default are
.php .php3 .php4 .phtml
to give you more information we need to know your system is it windows ?
wich one ? is it *nix wich one ? if you are on a unix like platform the
"LoadModule" line should be already there after compilation and also you
must add the php mime type to your "httpd.conf"
AddType application/x-httpd-php .php .php3 .php4 .phtml
every time you edit that file you have to restart apache for the changes to
take effect.
did it helped you ?
regards
Erik