RE: [PHP-INST] PHP showing as Plain text in browser- PHP-Apache-Red Hat
| From: | Jens Rosenthal | Date: | Fri, 27 Sep 2002 14:42:11 +0000 |
| Subject: | RE: [PHP-INST] PHP showing as Plain text in browser- PHP-Apache-Red Hat | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-8594@lists.php.net to get a copy of this message | ||
Not necessarily...
Does your Apache startscript start apache with "-DHAVE_PHP4"?
Simple workaround for this would be to strip the lines "<IfDefine
HAVE_PHP4>" and "</IfDefine>" from the file.
Without these lines the PHP module is loaded (if it exists in the right
directory) even with a slightly cracked startscript.
-----Ursprüngliche Nachricht-----
Von: Trevor Smith [mailto:trevor@whiprush.org]
Gesendet: Freitag, 27. September 2002 16:21
Cc: php-install@lists.php.net
Betreff: Re: [PHP-INST] PHP showing as Plain text in browser-
PHP-Apache-Red Hat
I think the LoadModule and AddModule are correct.
<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
</IfDefine>
<IfDefine HAVE_PHP4>
AddModule mod_php4.c
</IfDefine>
and I installed from an rpm binary not source. Guess I will have to go
back and do it from source.
Jens Rosenthal wrote:
>Hi,
>
>do you have a line "LoadModule php4 ..." and "AddModule mod_php4.c" in your
>httpd.conf?
>Most likely you didn't activate the module so the fragment below doesn't do
>anything..
>
>Otherwise did you compile the php4 module into apache?
>
>Jens
>-----Ursprüngliche Nachricht-----
>Von: Trevor Smith [mailto:trevor@whiprush.org]
>Gesendet: Freitag, 27. September 2002 14:59
>An: php-install@lists.php.net
>Betreff: [PHP-INST] PHP showing as Plain text in browser- PHP-Apache-Red
>Hat
>
>
> As the subject says I have apache running on redhat and anything using
>php simply shows the Plain text code when I view it through a web browser.
>
>
>My AddType's from httpd.conf:
>
><IfModule mod_php4.c>
> AddType application/x-httpd-php .php .php4 .php3 .phtml
> AddType application/x-httpd-php-source .phps
> </IfModule>
> <IfModule mod_php3.c>
> AddType application/x-httpd-php3 .php3
> AddType application/x-httpd-php3-source .phps
> </IfModule>
> <IfModule mod_php.c>
> AddType application/x-httpd-php .phtml
> </IfModule>
>
>I think I have apache support enabled in php.ini currently this file is
>located in /etc, should it be somewhere else?
>
>; Enable the PHP scripting language engine under Apache.
>engine = On
>
>any ideas would be appreciated
>
>
>--
>PHP Install Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php