[NTLUG:Discuss] Apache 2 and PHP 4 problem
Alton R. Pouncey, II
alton at trainers-r-us.com
Thu Jan 2 13:49:29 CST 2003
Hi all,
I am having an issue trying to get PHP 4.3.0 to work with Apache
2.0.43. Here are the particulars of the system:
RH 7.2 (2.4.7-10 kernel)
Apache 2.0.43
Perl 5.8.0
PHP 4.3.0
apachectl -l output:
Compiled in modules:
core.c
mod_access.c
mod_auth.c
mod_include.c
mod_log_config.c
mod_env.c
mod_mime_magic.c
mod_expires.c
mod_headers.c
mod_setenvif.c
mod_ssl.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_suexec.c
mod_cgi.c
mod_cgid.c
mod_negotiation.c
mod_dir.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c
I have the following in httpd.conf:
LoadModule php4_module modules/libphp4.so
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
libphp4.so does exist in the Apache modules directory. I have the
php.ini file in the correct directory for my setup and have not changed
any settings in it from the default.
With the above setup, when I access a .php page on my system, I see the
code, it is not executed.
If I add the following directive to httpd.conf:
AddType application/x-httpd-php php
I am prompted to download the file rather than see the code in my
browser.
I am running Mozilla 1.0.1 if that makes a difference.
Has anyone else had this problem? Am I missing something in any of the
configuration files that has changed from Apache 1.3.x? Should I revert
to an earlier version of PHP?
Any and all help is appreciated. I have been beating my head against
this one for 3 days now.
--
Alton R. Pouncey, II
SCSA, SCNA, CCNA, CIW Professional
http://www.trainers-r-us.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
Url : http://ntlug.org/pipermail/discuss/attachments/20030102/565ada22/attachment.bin
More information about the Discuss
mailing list