Sounds like your Apache is not correctly set to pass php files. Heres how it should be done:
Open httpd.conf Search for "# Dynamic Shared Object (DSO) Support" This should show a long list of commented (lines with # in front) lines. Scroll to the bottom of the list and add: LoadModule php4_module C:/server/PHP/php4apache.dll Ensure that this command actually points to php4apache.dll. Also, you need to find and copy php4ts.dll into EXACTLY the same directory as php4apache.dll. If you continue to scroll down, the next session after the "LoadModule" lines should be "AddModule". At the bottom of this list, you need to add the line AddModule mod_php4.c Okay, so that is php installed, but next you need to set it so that .php files are run using php! To do this, search for "# AddType allows you to tweak mime.types without actually editing it, or to" You may already have a short list of options here, all you need to add is AddType application/x-httpd-php .php This tells Apache that all files that end in .php should be parsed using php. Your files should now be working! One other feature you might like... by default Apache will search for an index.html file to be display. You can change this to load any file you like. Just search for "# DirectoryIndex: Name of the file or files to use as a pre-written HTML" Below it you should see this <IfModule mod_dir.c> DirectoryIndex index.html </IfModule> Simply add the files you would like to be displayed by default. Apache works from left to right so this: <IfModule mod_dir.c> DirectoryIndex index.php index.html </IfModule> Would first look for an "index.php" file, and if it was not found, then search for an "index.html" Good Luck Stephen ----- Original Message ----- From: "Bud Roble" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 03, 2003 6:23 AM Subject: [PHP-INST] Help for PHP Newbie! > I've installed PHP 4.3.2 with Apache 1.3 and believe I've followed all the > configuring instructions to the letter. I create the phpinfo.php script > file for testing and placed it in the C:/program files/apache > group/apache/htdocs folder for testing. When I type localhost/phpinfo.php > in my browser, the script is not being parsed. The script is simply > displayed in the browser window as raw text. I can display all of the html > documents in the htdocs folder fine but any php document I browse to simply > displays the raw text in the browser. It acts the same whether I try at > the localhost or from another computer on the network. What am I doing > wrong? > > Any help will be greatly appreciated! > > Bud Roble > [EMAIL PROTECTED] > (805)794-3027 > > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php