Follow up: Thanks for all your help.
1. Complete reinstall of OS to make a fresh start. Setup now is:
P4-3200RF:/var/www# uname -a
Linux P4-3200RF 2.6.11-smp #1 SMP Mon Apr 25 12:42:02 EDT 2005 i686 GNU/Linux
P4-3200RF:/var/www# apache -v
Server version: Apache/1.3.33 (Debian GNU/Linux)
Server built: Feb 8 2005 03:32:49
P4-3200RF:/var/www# apache -l
Compiled-in modules:
http_core.c
mod_so.c
mod_macro.c
suexec: disabled; invalid wrapper /usr/lib/apache/suexec
P4-3200RF:/var/www# php -v
PHP 4.4.2 (cgi) (built: Apr 17 2006 06:58:33)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
P4-3200RF:/usr/local/mysql# bin/mysql -h localhost -u mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 5.0.20-pro-gpl
2. What's happening:
P4-3200RF:/var/www# php test.php
X-Powered-By: PHP/4.4.2
Content-type: text/html
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<p>This is an HTML line.\n
<p>This is a PHP line
</p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html><head>
<style type="text/css">
body {background-color: #ffffff; color: #000000;}
etc etc i.e get a copy of the HTML source with PHP activity wich is what I can see from my browser as well.
Q Is this what I am supposed to see? If I pipe it into another file and call it <file>.html and look at it with the browser - I get the pretty table instead of the source file data (see below). Is this what is supposed to happen?
If I point my browser to
http://localhost/test.php It simply asks me what I want to do with the file - open it with what text editor or save it. If I point it to the file made:
P4-3200RF:/var/www# php test.php > test.html I get this output pointing the browser to localhost/test.html:
X-Powered-By: PHP/4.4.2 Content-type: text/html
This is an HTML line.\n
This is a PHP line
PHP Logo
PHP Version 4.4.2
System Linux P4-3200RF 2.6.11-smp #1 SMP Mon Apr 25 12:42:02 EDT 2005 i686
Build Date Apr 17 2006 06:57:59
Configure Command './configure' '--with-mysql=/usr/local/mysql'
Server API CGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/lib
PHP API 20020918
PHP Extension 20020429
Zend Extension 20050606
Debug Build no
Zend Memory Manager enabled
Thread Safety disabled
Registered PHP Streams php, http, ftp
Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
etc etc
This is not what I expect to happen exactly. Am I missing a module or something not to get the table output directly and not to be able to point my browser to a php file and get it to run it?
Thanks much

rf
ps
P4-3200RF:/var/www# ps ax | grep httpd | awk '{print $1}' | xargs kill -HUP
P4-3200RF:/var/www#
does nothing I can determine on this machine.
P4-3200RF:/var/www# ps ax | grep httpd | awk '{print $1}' | xargs killall -HUP httpd
httpd: no process killed
11951: no process killed
11953: no process killed
and
P4-3200RF:/var/www# /usr/sbin/apachectl graceful
/usr/sbin/apachectl graceful: httpd gracefully restarted
Thanks. I assume all three do the same thing. I agree that graceful is easier
