I currently am just starting to learn database programming yet I am having trouble trying to run the actual documents with .php extension.
Here is a diary I ket over everything I did for the installation:
First I grabbed the downloaded files and placed them as so,
apache(apache_1_3_14_win32_r2): d:\my programs\webserver\apache
mySQL(mysql-3.23.28-gamma-win): d:\my programs\webserver\mySQL
php4(php-4.0.3pl1-Win32): d:\my programs\webserver\php4
phpMyAdmin(phpMyAdmin_2.1.0.tar): d:\my programs\webserver\phpMyAdmin
Then I installed the apache software in the following location:
d:\My programs\webserver\apache
Next, I installed the mySQL software in the following location:
D:\My Programs\webserver\mySQL
Then I opened the php4 zip file and extracted the contents to:
D:\My Programs\webserver\php4
Ok, then I added the following scriptalias directly below the Scriptalias /cgi-bin/ etc:
ScriptAlias /php/ "d:/my programs/webserver/php4/"
Action application/x-httpd-php "/php4/php.exe"
And I removed the # from the addtype of php4 and added some extensions which included:
# For example, the PHP 3.x module (not part of the Apache distribution - see
# http://www.php.net) will typically use:
#
#AddType application/x-httpd-php3 .php3
#AddType application/x-httpd-php3-source .phps
#
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php .php4 .php3
AddType application/x-httpd-php-source .phps
AddType application/x-tar .tgz <-- already had the # taken
Then I changed the server name thingy from #ServerName new.host.name to #ServerName localhost
and removed the #.
Then saved the file.
Ok, that is it for installation.
I rebooted and went to get something for breakfast.
Next I went into the mySQL bin and loaded the file winmysqladmin.exe. When doing so I think that the php program also loaded because of the little msdos box popping up.
Ok, now for trying to get the thing to work right.
I opened a new document in UltraEdit32 and named it index.php with the following contents:
<body>
<?php
$myvar = "Hello World";
echo $myvar;
?>
</body>
The problem is that the same message still popped up. Unable to parse.....blah, blah, blah.
Everything is running smoothly however this still pops up when running index.php. Can ya help?
Oh and if you were wondering, the mySQL and Apache programs were running.