Thanks Adam,

That makes sense but shouldn't I see mod_php when I do an httpd -l after
following the 'Static' install instructions from the INSTALL file?  I also
don't see anything about php when I do a /usr/local/apache/bin/httpd -V
under the 'Server compiled with' section.  I was only looking to execute php
from the command line because I was trying to see if it installed properly.
Is it not possible to get php working with apache and be able to execute php
from the command line?  I've followed the 'Static' Install directions
without errors and have inserted the AddType line into my apache config file
(httpd.conf) and I'm still getting the download dialog box when I make a
request from a browser for a page with a .php extension.  HTML files are
properly processed by apache and if I make up a file extension i.e.-
'phpinfo.hot' and request that from a browser apache sends the contents to
the browser (php code available via view source).  Does it matter if the
AddType line is in my main httpd.conf file of the virtual host file?  Is
there a specific dir you need to put the php files in for apache to parse.
My php.ini had nothing specified for the doc_root directive by default.  I
tried setting it, still no success.  Is there anyway to check which
directories apache will properly parse php files from after installation?

-----Original Message-----
From: Adam Voigt [mailto:adam@;cryptocomm.com]
Sent: Wednesday, October 23, 2002 5:24 AM
To: M. Ben Nicolas
Cc: John Coder; [EMAIL PROTECTED]
Subject: RE: [PHP-INST] PHP install problem, engine not parsing php
files


If your trying to compile the PHP binary instead of building it
into PHP, you need to drop the --with-apache line and add something
like:

--prefix=/usr/local/php

Which will create an actual php executable in that directory, but
this will not make it work with Apache.

Adam Voigt
[EMAIL PROTECTED]

On Wed, 2002-10-23 at 02:04, M. Ben Nicolas wrote:
> I am trying to do the install using the 'Static' method
>
> What I really don't understand is why after the attempted configure, make,
> and make install nothing shows up in /usr/bin/php
> and I can't use php from the command line it's like nothing gets
installed,
> I wipe config.status too before I try to re-install
>
> -----Original Message-----
> From: John Coder [mailto:jcoder@;insightbb.com]
> Sent: Tuesday, October 22, 2002 1:40 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-INST] PHP install problem, engine not parsing php
> files
>
>
> On Mon, 2002-10-21 at 22:45, M. Ben Nicolas wrote:
> > I have attempted to compile and install PHP using the 'Static' method
> > described in the INSTALL file that comes  with php
> >
> > php configured with:
> >
>
./configure --with-mysql --with-pgsql --with-apache=/usr/local/apache/apache
> > _1.3.22/
> >
> > php.ini was copied to:
> > /usr/local/lib/php.ini
> >
> > I have un-commented in my httpd.conf file:
> > AddType application/x-httpd-php .php
> >
> > apache installed in
> > /usr/local/apache
> >
> > apache configured with
> >
>
./configure --prefix=/usr/local/apache/ --activate-module=src/modules/php4/l
> > ibphp4.a
> >
> > Apache was already installed and working with mod perl, I just went into
> > /usr/local/apache/apache_1.3.22  stopped the web server and ran the line
> > above
> > (and then make & make install of course)
> >
> > how can I check to make sure the libphp4 module was activated properly
and
> > that apache is using it?
> > I see nothing about a php module when I do a httpd -l, it gives me this
> > Compiled-in modules:
> >   http_core.c
> >   .
> >   .
> >   .
> >   mod_perl.c
> > suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
> > do I need to install mod_php?  It doesn't say anything about doing this
in
> > the INSTALL file?

My problem is that every time I try to make a request for a php page from a
browser, the 'Download Dialog' box  appears in explorer and the browser
automatically downloads the php file without the server processing the php
code??...
>
> if I remeber correctly you need apache with mod.so also configured if
> you ar doing it as a dynamic library. siince the response to you doing
> httpd -l doesn't say anything about it being there that is probably the
> culprit.
>
> John Coder
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to