Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Oct 2001 15:13:00 +0930 
From:      Jarrod Sayers <Jarrod.Sayers@unisa.edu.au>
To:        'James Mclean' <james@adam.com.au>, buga@lemis.com, freebsd-questions@freebsd.org
Subject:   RE: Apache 1.3 and mod_php4
Message-ID:  <E1962E8F1DF0D411878300A0C9ACB0F9022AB8C3@exstaff4.magill.unisa.edu.au>

next in thread | raw e-mail | index | archive | help
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C14BCE.4368EAA0
Content-Type: text/plain;
	charset="iso-8859-1"

James,

If mod_php4 has been installed from the ports tree then it should be in the
correct place, aswell as apache13.  If its working it should do the following:

When you can access the machine, make sure these 4 lines are present and not
commented out.
LoadModule php4_module        libexec/apache/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

A quick test on a basic install would be to make a file called test.php and
inside it have one line:
<? phpinfo(); ?>

If it generates a huge file with colours and numbers, then its worked, if not,
it could be that PHP is not turned on.  In your php.ini file, check to make
sure that 'engine = On', and that in your httpd.conf file, you don't have a
'php_flag engine off' where you shouldn't.

Failing all that, I can only suggest a checking of the ErrorLog to see if there
are any problems in that.

Ahh, one last idea that happened to me, the modules are relative to the
ServerRoot so if thats been changed then the paths to the modules need to be
aswell, default is /usr/local

Hope it helps!

Jarrod Sayers 
Client Services 
Information Technology Services Unit 
University of South Australia, Magill Campus. 
Phone: +61 8 8302 4809 

-----Original Message-----
From: James Mclean [mailto:james@adam.com.au]
Sent: Wednesday, 3 October 2001 3:02 PM
To: buga@lemis.com; freebsd-questions@freebsd.org
Subject: Apache 1.3 and mod_php4



All,

I have installed Apache 1.3 and mod_php4 via the Ports system, However I cannot

seem to get the PHP side going correctly.

There was no errors installing any of the packages.
When i try to add the required lines to the httpd.conf, it fails to load. it 
did not seem to put the required file into the libexec/apache directory.

Perhaps i am looking in the wrong place...?

php4 was installed with PDF,GD,MySQL etc, and the machine is FreeBSD
4.3-RELEASE

I am unable to include the httpd.conf here, i do not have access to the machine

from here.

Any Pointers?

TIA

James Mclean



------_=_NextPart_001_01C14BCE.4368EAA0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2654.45">
<TITLE>RE: Apache 1.3 and mod_php4</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>James,</FONT>
</P>

<P><FONT SIZE=3D2>If mod_php4 has been installed from the ports tree =
then it should be in the correct place, aswell as apache13.&nbsp; If =
its working it should do the following:</FONT></P>

<P><FONT SIZE=3D2>When you can access the machine, make sure these 4 =
lines are present and not commented out.</FONT>
<BR><FONT SIZE=3D2>LoadModule =
php4_module&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
libexec/apache/libphp4.so</FONT>
<BR><FONT SIZE=3D2>AddModule mod_php4.c</FONT>
<BR><FONT SIZE=3D2>AddType application/x-httpd-php .php</FONT>
<BR><FONT SIZE=3D2>AddType application/x-httpd-php-source .phps</FONT>
</P>

<P><FONT SIZE=3D2>A quick test on a basic install would be to make a =
file called test.php and inside it have one line:</FONT>
<BR><FONT SIZE=3D2>&lt;? phpinfo(); ?&gt;</FONT>
</P>

<P><FONT SIZE=3D2>If it generates a huge file with colours and numbers, =
then its worked, if not, it could be that PHP is not turned on.&nbsp; =
In your php.ini file, check to make sure that 'engine =3D On', and that =
in your httpd.conf file, you don't have a 'php_flag engine off' where =
you shouldn't.</FONT></P>

<P><FONT SIZE=3D2>Failing all that, I can only suggest a checking of =
the ErrorLog to see if there are any problems in that.</FONT>
</P>

<P><FONT SIZE=3D2>Ahh, one last idea that happened to me, the modules =
are relative to the ServerRoot so if thats been changed then the paths =
to the modules need to be aswell, default is /usr/local</FONT></P>

<P><FONT SIZE=3D2>Hope it helps!</FONT>
</P>

<P><FONT SIZE=3D2>Jarrod Sayers </FONT>
<BR><FONT SIZE=3D2>Client Services </FONT>
<BR><FONT SIZE=3D2>Information Technology Services Unit </FONT>
<BR><FONT SIZE=3D2>University of South Australia, Magill Campus. =
</FONT>
<BR><FONT SIZE=3D2>Phone: +61 8 8302 4809 </FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: James Mclean [<A =
HREF=3D"mailto:james@adam.com.au">mailto:james@adam.com.au</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Wednesday, 3 October 2001 3:02 PM</FONT>
<BR><FONT SIZE=3D2>To: buga@lemis.com; =
freebsd-questions@freebsd.org</FONT>
<BR><FONT SIZE=3D2>Subject: Apache 1.3 and mod_php4</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2>All,</FONT>
</P>

<P><FONT SIZE=3D2>I have installed Apache 1.3 and mod_php4 via the =
Ports system, However I cannot </FONT>
<BR><FONT SIZE=3D2>seem to get the PHP side going correctly.</FONT>
</P>

<P><FONT SIZE=3D2>There was no errors installing any of the =
packages.</FONT>
<BR><FONT SIZE=3D2>When i try to add the required lines to the =
httpd.conf, it fails to load. it </FONT>
<BR><FONT SIZE=3D2>did not seem to put the required file into the =
libexec/apache directory.</FONT>
</P>

<P><FONT SIZE=3D2>Perhaps i am looking in the wrong place...?</FONT>
</P>

<P><FONT SIZE=3D2>php4 was installed with PDF,GD,MySQL etc, and the =
machine is FreeBSD 4.3-RELEASE</FONT>
</P>

<P><FONT SIZE=3D2>I am unable to include the httpd.conf here, i do not =
have access to the machine </FONT>
<BR><FONT SIZE=3D2>from here.</FONT>
</P>

<P><FONT SIZE=3D2>Any Pointers?</FONT>
</P>

<P><FONT SIZE=3D2>TIA</FONT>
</P>

<P><FONT SIZE=3D2>James Mclean</FONT>
</P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C14BCE.4368EAA0--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1962E8F1DF0D411878300A0C9ACB0F9022AB8C3>