[NTLUG:Discuss] Apache 2 and PHP 4 problem

Alton R. Pouncey, II alton at trainers-r-us.com
Fri Jan 3 11:03:57 CST 2003


On Thu, 2003-01-02 at 15:53, joseph beasley wrote:
> 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.  
> 

Ok, I see that, I get the message that the perl module has loaded but do
not see the php module 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.
> 

How does one "select" the 2.0 module.  I see nothing in the PHP
documentation that says how to do that.  I would think that the
configure flag --with-apxs2=/path/to/apache2/apxs would force PHP to be
built as an Apache 2.0 module.  And I have done this - 3 times - and
still no luck.

> b.  rebuild the php source rpm and select the 2.0
> apache module.
> 

I don't use rpms to build servers because the rpms are rarely built the
way I want.  Personal preference - let's not start a war here.

> 
> --- "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
> 
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
-- 
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/20030103/770d2fd8/attachment.bin


More information about the Discuss mailing list