After many frustrating attempts to install MySQL, Apache and PHP on Redhat 7.1 from rpms, I have installed them following Julie Meloni's very clear instructions in her book "PHP: Fast & Easy Web Development." All went very smoothly until the very last step.
Last step is to create a file called phpinfo.php in the Apache 1.3.12 htdocs directory. The page contents are <? phpinfo(); ?>. Trying to access it via Netscape browser at http://localhost/phpinfo.php., instead of the page of system and environment information, I get a dialog box "Save As..(type application/x-httpd-php), Filter: /home/paulcj2/*.php, Directories: various, Selection: /home/paulcj2/phpinfo.php. Apparently my machine thinks I am trying to save something from my user home directory. Thinking it might be a permission problem, I tried it both as user and as root. Did the same both times. I don't get this at all.
I did configure Apapahe, according to instructions, to use PHP4 by uncommenting the following lines:
AddType application/x-httpd-php .phtml .php
AddType application/x-httpd-php-source .phps
Looks like there needs to be some other configuration change, but I don't have a clue. Can anyone help?





Bookmarks