I want to break down and cry now. I did everything right when trying to get the damned module to work right:
In httpd.default:
LoadModule php4_module c:/PHP4.2.3/php-4.2.3-Win32/sapi/php4apache2.dll
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
DocumentRoot "c:/Websites"
<Directory "c:/Websites">
In php.ini:
doc_root = ";c:\Websites"
extension_dir = ";c:\PHP4.2.3\php-4.2.3-Win32\extensions"
and that's about all. Everytime I try accessing index.php directly (by typing in "localhost/index.php"), it gives me a "Object not found!" error page.🙁 I doubt that running all of this on XP has anything to do with it, but it's worth mentioning. Oh, and I know that php-4.2.3-Win32 might seem like a long directory name for Apache, considering it's about as picky as DOS when typing out directories, but i tried shortening it to php-4.~1, but Apache didn't start up, so I obviously changed it back.
Oh yeah, I've copied php4ts.dll to c:\Windows\System32 and php-dist.ini to c:\Windows and renamed it php.ini. You know, the only reason I really downloaded Apache this time is because IIS 5.1 was giving me crap when trying to run PHP; it wouldn't let me add any new extensions, so I uninstalled IIS🙂 Thanks in advance to anyone who can figure out what I've messed up this time.
Daftness
[edit]
I stand corrected. using "php-4.~1" does work. I think I might have typed in "php-4~1" before. Still gives me a stupid error. Do I need to type in "AddModule php4_module mod_php4.c" like other sites say I need to in order to run the SAPI version correctly? I need stress relief. Time for AA😮!
[/edit]