Howdy, all:
When I point my browser to a .php file like hello.php (shown at end of message), I either get the source code displaying in my browser, or I get a download box.
Yes, I've read all the FAQs and the helpful hints from everyone.
No, they didn't do any good.
I did restart my browser (many times).
I'm running Apache/2.0.47, PHP ver 3.3 on a Red Hat Linux 7.2 system.
Here's the salient lines from my httpd.conf:
LoadModule php4_module modules/libphp4.so
DirectoryIndex index.html index.php index.html.var
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
</Files>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
Yes, there is a module called libphp4.so in my /usr/local/apache2/modules directory:
-rwxr-xr-x 1 root root 3553050 Jan 19 19:46 libphp4.so
Yes, PHP runs fine when I run it from the command line. I have a file called hello.php which has the following lines in it:
<html>
<body>
<?php echo "Hello, World!"; ?>
</body>
</html>
When I run it by typing: php /var/www/html/hello.php, it prints the following:
<html>
<body>
Hello, World!</body>
</html>
php.ini has whatever the default configuration is, except I set register_globals = On.
Please, please please. Tell me what I'm doing wrong????