[Techtalk] Installing PHP with Apache

Gebhard Dettmar gebhard.dettmar at student.hu-berlin.de
Sat Jan 31 19:01:15 EST 2004


Hello,
(sorry for posting twice)

> -----Original Message-----
> From: techtalk-bounces at linuxchix.org [mailto:techtalk-
> bounces at linuxchix.org] On Behalf Of Yaroslav Fedevych
> Sent: Friday, January 30, 2004 5:18 PM
> To: techtalk
> Subject: Re: [Techtalk] Installing PHP with Apache
> 
> Dan Richter wrote:
> 
> > I'm installing Apache and PHP (from source, because I don't have
> root
> > access to the machine and so can't install it in /usr). I can
> install
> > and build Apache, and I can install and build PHP, but how do I
> put the
> > two together? I've even tried compiling PHP into Apache, but I
> still
> > can't get it to recognize my PHP files as such.
> >
> > I haven't edited or moved anything by hand, except for the most
> basic
> > changes to the Apache configuration file (no LoadModule commands).
Why not? Is there something like
--snip--
LoadModule php_module modules/lipphp4.so
--snap--
in your httpd.conf?
Then you have to settle, which files are php-files:
--snip--
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
--snap--
Alternatetively you can use:
--
AddType application/x-httpd-php .php
--
HTH
regards
Gebhard

> There is also fancy stuff like AddHandler directives. Use them to
> configure Apache, so it can see .php and .php4 files.
> 
> P.S. I don't know how they look like in Apache 2, so check the docs
> for
> them.
> 
> 
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/techtalk



More information about the Techtalk mailing list