Click to See Complete Forum and Search --> : [Resolved] [Resolved] [Resolved] Augh! Whats wrong?


ForgotMyPass
10-17-2003, 02:30 AM
I have installed PHP before but I am having trouble installing it this time. I keep having trouble with the

LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php .php3 .phtml

lines. If I remove it it works fine, or else Apache (Im using version 2) says it cant start the service. Ive put all the files in their correct place (except I cant find a mod_php4.c but I dont think its supposed to be there), set up php.ini, and I cant start it.

Any help would be appreciated.

LordShryku
10-17-2003, 02:42 AM
Looks like Windoze, so methinks these are the only lines you really need to add to the httpd.conf file....

ScriptAlias /php/ "C:\php\"
Action application/x-httpd-php "C:\php\php.exe"
LoadModule php4_module C:\php\sapi\php4apache2.dll
AddType application/x-httpd-php .php .phtml

ForgotMyPass
10-17-2003, 02:46 AM
Thanks so much! ^_^

Now I can try to install mysql and fail like I always do!

DAMN YOU MYSQL! DAMN YOU TO HELL!
Tra la la.

LordShryku
10-17-2003, 02:55 AM
LOL

MySQL shouldn't be hard on Windoze. Just an installer. Start the service. Nothing too bad :)

ForgotMyPass
10-17-2003, 03:01 AM
Yes but the last few times I couldnt change the root password and that was bad >_>

I think I got it this time though! Yay.

edit: Oh I get it. Windoze... >_>

ForgotMyPass
10-17-2003, 03:22 AM
One more thing. How cant I get it to use $PHP_SELF and $REMOTE_ADDR instead of $_SERVER['PHP_SELF'] and stuff?

Ive grown quite attatched to it..

Edit: Found it.