Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP for NetWare: does it require tweaking Apache's httpd.conf

Status
Not open for further replies.

jimoblak

Instructor
Oct 23, 2001
3,620
US
I am working with a Novell admin who is setting up Apache/PHP/MySQL. Both Apache and MySQL work fine but there is trouble with PHP.

PHP appears to work because he was able to create a MySQL user account for me in phpMyAdmin. phpMyAdmin is installed on a section of the server that I do not have access to so I am not sure what he is looking at. When I try a simple function like phpinfo() running from the part of the server that I have access to, I get the unprocessed PHP script in my web browser. I'm confused how phpMyAdmin functions on one part of the site but the PHP file that I have created is not processed. My php test file is:
Code:
<?php
phpinfo();
?>
I asked the Novell administrator to forward the httpd.conf file to me for review. 'php' does not appear anywhere in the configuration file. Is it possible for Apache to serve PHP functions when there is no PHP directive in the Apache configuration file? Is it possible that the Novell administrator is using 2 different Apache servers and he sent me the configuration file from the wrong Apache installation?

This is what the server is running:
Code:
HTTP/1.1 200 OK
Date: Thu, 22 Apr 2004 20:56:27 GMT
Server: Apache/2.0.45 (NETWARE) mod_jk/1.2.4a
Last-Modified: Wed, 21 Apr 2004 18:01:04 GMT
Accept-Ranges: bytes
Content-Length: 4990
Connection: close
Content-Type: text/html; charset=ISO-8859-1

- - picklefish - -
Why is everyone in this forum responding to me as picklefish?
 
There is probably a <Location> directive in the httpd.conf file that enables PHP interpretation in certain folders in the file system (where PHPMyAdmin lives). Your "branch" is outside the enabled area, hence PHP code will be not interpreted and be delivered as source.
Ask the administrator to enable PHP for your location.
 
But wouldn't the letters 'php' appear somewhere in the httpd.conf file to define this <Location>? I searched the entire httpd.conf file and could not find a single reference to 'php'. I am just surprised that no reference to PHP appears anywhere in httpd.conf.

- - picklefish - -
Why is everyone in this forum responding to me as picklefish?
 
The httpd.conf can be replaced by any other conf file according to how the server is started. Maybe there is another configuiration. I suggest to ask the admin specifically about the PHP setup.

The text you posted are headers sent by the server (I believe you know that).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top