[NTLUG:Discuss] Apache 2 and PHP 4 problem
joseph beasley
joe_beasley at yahoo.com
Thu Jan 2 15:53:11 CST 2003
I spent about 2 weeks trying to figure this one out.
If you run httpd in debug mode, (httpd -X) you will
find that the php module is not loading.
the module is for apache 1.3.x. You will need to....
a). recompile php from source and select the 2.0
apache module.
b. rebuild the php source rpm and select the 2.0
apache module.
--- "Alton R. Pouncey, II" <alton at trainers-r-us.com>
wrote:
> 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
>
> ATTACHMENT part 2 application/pgp-signature
name=signature.asc
=====
Joe Beasley
CNE, CCNP, MCSE, CCNA, AEIOU....
PGP/GPG key -- http://home.attbi.com/~joe.beasley/joebeasley.txt
AOL Messenger joebeasley3rd
Yahoo Messenger joe_beasley
MSN Messenger joebeasley3rd
ICQ 13164242
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
More information about the Discuss
mailing list