Click to See Complete Forum and Search --> : Php/win98/Apache *DING*
Whenever I run my test.php, my apache dos window's caption turns to php and I get the alert sound, but my script output does not appear! I even tried PHP EasyWindows Installer! Any ideas as to what I am doing wrong?
Thanks...
I followed these instructions and all is good:
Apache:
1. Stop the Apache Webserver.
Edit the httpd.conf and put in these lines, modified to your environment:
2. Unzip the Package to c:\php, now move php4ts.dll to the windows/system directory, overwritte any older file!
# for the apache module
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php4
#for the cgi binary (you can use that one compiled with force cgi redirect too)
ScriptAlias /php4/ "C:/php/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
3. Copy the php.ini-dist to your sysroot, this is the directory where you installed windows and rename it to php.ini.
4. Edit the php.ini to fit your needs.
I found the problem. It resided in my browscap.ini.
To trouble shoot the error, I went ahead and tried to let php.exe parse a command straight from a dos prompt "php <? print "wassup"; ?>.
Apparently, apache will not allow php to display any error messages or logs because I got one here. I recieved a message box stating that "there was an error at line xxx in browscap.ini". I forget which browser conifg it was, but it was on linux. I edited it out, restarted apache and walla!
also, I moved my php dir into the apache tree structure and edited the ini files appropriatly. This may have helped also.
Hope this helps first timers...
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.