php-install Digest 27 Sep 2002 13:13:05 -0000 Issue 1042
Topics (messages 8583 through 8586):
Re: Loads of Trouble: PHP installed as CGI on Unix
8583 by: Chris Hewitt
what do you think?
8584 by: Arminas
PHP showing as Plain text in browser- PHP-Apache-Red Hat
8585 by: Trevor Smith
8586 by: Moraes, Fabio
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Serbinski, Theodore S wrote:
>I did try this:
>
>AddType application/x-httpd-php .php
>
>But that didn't seem to work, even after restarting PHP. I am assuming I
>need to tell Apache where the PHP executable is and to use that for *.php.
>But I don't know how to do that since I installed PHP as a CGI-binary.
>
>Also where can I find that install file? Our sysadmin guy did this and I
>think he missed a few things. I can't find it in any of the php directories.
>
I have not used PHP as a CGI (only as apache module) so my experience
may differ. The AddType line looks right. It is apache you restarted, I
assume (you said php). If you installed from source, the INSTALL file is
in the top level directory after you untar it.
The "include_path" parameter seems to be the one to indicate where the
php executable is. I got this by looking in the manual
(http://www.php.net) so maybe this is worth a look.
HTH
Chris
--- End Message ---
--- Begin Message ---
about http://smanager.web1000.com/
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
check your LoadModule directive.
bye,
---
Fabio Moraes
[EMAIL PROTECTED]
+55 21 3088 9548
> -----Original Message-----
> From: Trevor Smith [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 27, 2002 9:59 AM
> To: [EMAIL PROTECTED]
> Subject: [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
>
--- End Message ---