From owner-freebsd-questions Tue Oct 2 23:11:54 2001 Delivered-To: freebsd-questions@freebsd.org Received: from exstaff9.city.unisa.edu.au (exstaff9.city.unisa.edu.au [130.220.84.77]) by hub.freebsd.org (Postfix) with ESMTP id E43F137B409 for ; Tue, 2 Oct 2001 23:11:45 -0700 (PDT) Received: by exstaff9.city.unisa.edu.au with Internet Mail Service (5.5.2653.19) id ; Wed, 3 Oct 2001 15:13:01 +0930 Message-ID: From: Jarrod Sayers To: 'James Mclean' , buga@lemis.com, freebsd-questions@freebsd.org Subject: RE: Apache 1.3 and mod_php4 Date: Wed, 3 Oct 2001 15:13:00 +0930 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C14BCE.4368EAA0" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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: 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 RE: Apache 1.3 and mod_php4

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 =3D 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-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message