Click to See Complete Forum and Search --> : problem


pantherk
06-23-2005, 08:40 AM
i am a new user of php.I installed apache2.0.5.4 and php4.3.11 in windows 98.i configure it .but problem is when i open the myfirstphp.php file in browser , it just remain in .txt format .

i get the script itself and not executed one.

<?
phpinfo()
?>

I in httpd.conf, Below the "Script ALias" section

Added this line:

ScriptAlias /php/ "c:/php/"

#addtype line

AddType application/x-httpd-php.php
AddType application/x-httpd-php-source.phtml

if i include this load module in the httpd.conf :

LoadModule php4_module "c:/php/php4apache.dll"

Apache is not working.
wats the problem? shd i use some other alternative web server? help me pls

planetsim
06-23-2005, 09:35 AM
You should probably use Apache 1.3x with 98 I believe support in 98 with 2.0x is buggy.

Anyway how are you accessing the document? e.g. http://localhost/myfirstphp.php
Are you saving the file in the DocumentRoot?