httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter" <pgog...@optusnet.com.au>
Subject Re: Apache 1.3.4 and PHP 4.2.1
Date Thu, 23 May 2002 06:29:44 GMT
I get nothing in either the access or error log.

View source just shows the code of the screen.

i.e.
<html>
<body>
<?pH
print "hello world.";
?>
</body>
</html>


Regards

Peter Goggin
----- Original Message -----
From: "Lee Fellows" <lfellows@4lane.com>
To: <users@httpd.apache.org>
Sent: Wednesday, May 22, 2002 12:33 AM
Subject: Re: Apache 1.3.4 and PHP 4.2.1


> Hi Peter,
>
>   You say you get a 'blank page'.  I'm assuming that means you are
> not seeing an error message.  What do you see when you do a 'view
> source' in your browser?  What are you seeing in apache's access and
> error logs for this request?
>
>
>
> On Tue, 2002-05-21 at 09:54, Peter wrote:
> > I modified the 'AddType application' line to read:
> > AddType application/x-httpd-php .php .phtml .htm
> >
> > This did not make any difference. I still get a blank page.
> > Regards
> >
> > Peter Goggin
> > ----- Original Message -----
> > From: "Neil Freeman" <neil.freeman@asa.co.uk>
> > To: <users@httpd.apache.org>
> > Sent: Tuesday, May 21, 2002 6:20 PM
> > Subject: Re: Apache 1.3.4 and PHP 4.2.1
> >
> >
> > > The most obvious thing that I see is that you've named your test file
> > > with an extension of .htm but you haven't set up PHP to parse .htm
> > > files. Either rename your file to .php or .phtml or add .htm to the
> > > 'AddType application' line.
> > >
> > > Neil
> > >
> > > Peter wrote:
> > > >
> > > >
> >
****************************************************************************
> > *********************************
> > > > This Message Was Virus Checked With : SAVI 3.57 May 2002 Last
Updated
> > 13th May 2002
> > > >
> >
****************************************************************************
> > *********************************
> > > >
> > > > I have apache 1.3.4 running under windows 98. I am attempting to
install
> > php
> > > > 4.2.1 as a module in apache.  I have followed all of the
instructions
> > given
> > > > in the readme's for the php release but so far I cannot get the
browser
> > to
> > > > access php.
> > > >
> > > > Presumably I have missed a step, but despite three attempts
reinstalling
> > php
> > > > I cannot get it to work.
> > > >
> > > > I have done the following:
> > > >
> > > > 1. moved files t c:\windows
> > > >   These are:
> > > > php.ini
> > > > php4ts.dll
> > > > all of the dll from the c:\php-4.2.1-Win32\dll directory
> > > >
> > > > 2. I edited the php.ini file as follows:
> > > > extension_dir = C:\php-4.2.1-Win32\extensions
> > > >   I did not enable any extensions
> > > >
> > > > 3. I edited the apache.ini file
> > > > Lines added were:
> > > > LoadModule php4_module c:/php-4.2.1-Win32/sapi/php4apache.dll
> > > > AddModule mod_php4.c
> > > > AddType application/x-httpd-php .php .phtml
> > > >
> > > > When I use the test file I get a blank screen.
> > > >
> > > > Test file is testtphp.htm and contains
> > > > <html>
> > > > <body>
> > > > <?php
> > > > print "hello world.";
> > > > ?>
> > > > </body>
> > > > </html>
> > > >
> > > > Can anyone please tell me what I have missed and what I need to do
to
> > get
> > > > php to work?
> > > > Regards
> > > >
> > > > Peter Goggin
> > > >
> > > > ---
> > > > Outgoing mail is certified Virus Free.
> > > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > > Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > > > For additional commands, e-mail: users-help@httpd.apache.org
> > >
> > > --
> > > +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
> > > | Neil Freeman                   Design Engineer          |
> > > | Phone: +44 (0)1420 526600      Fax  : +44 (0)1420 23741 |
> > > | Email: neil.freeman@asa.co.uk                           |
> > > |        neil@curvedvision.com                            |
> > > | Web  : www.curvedvision.com                             |
> > > +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > > For additional commands, e-mail: users-help@httpd.apache.org
> > >
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.363 / Virus Database: 201 - Release Date: 21/05/02


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message