Skip to main content
GameDev.net gamedev.net
🔒 Locked

Huge trouble Installing PHP

Started by uber_n00b Jun 9, 2004 at 12:17 PM 8 replies 950+ views
Original Post
uber_n00b
uber_n00b
Alright I''ll just fast foward to the part I need help on. I unzipped PHP 4.3.something from the official website right? Edited php.ini to reflect where my doc-root and stuff, and the trouble starts when I edit httpd.conf in my apache 2 folder (my OS is WinXP Home BTW). The install file tells me to add these lines in with the modules: LoadModule php4_module c:/PHP/PHP/php4apache2.dll #AddModule mod_php4.c AddType application/x-httpd-php .php in that order (I have the second one #''ed out because that line generates an error when I try and restart my server). What am I doing wrong here? The other two lines generate no errors and I can start my server successfully. Oh as you can tell I''m pretty brain dead on this issues. Oh one site told me to add ClearModuleList in between the Load and Add lines but that generated an error as well. So um help ^^.
My fellow Americans I have just signed legislation that outlaws Russia forever. Bombing will commence in five minutes.
uber_n00b
uber_n00b
Oh well. Win some lose some
My fellow Americans I have just signed legislation that outlaws Russia forever. Bombing will commence in five minutes.
Coward
Coward
use the executable, much easier..
Don't Temp Fate..
Yann L
Yann L
OK, I''m in no way a PHP pro, I just installed it myself a few days ago. But I''ll take a shot. The only two lines I added to httpd.conf were the follwing:

LoadModule php4_module modules/mod_php4.dll
AddType application/x-httpd-php .php

That was it. I restarted Apache, it recognized the PHP module, and everything worked fine.

This:

AddModule mod_php4.c

looks a little strange to me. Why would you add a C source file as a module ? It''s unlikely that Apache would compile it transparently before binding it in. Does the server accept PHP pages, if you just leave that line commented out ?
AABBFFLLUUGG
AABBFFLLUUGG
It would probably be a lot easier to help you fix your problem, if you told people what''s actually wrong with your setup. What is it doing that you don''t want it to?
uber_n00b
uber_n00b
I did tell you what was wrong. I said the line that I commented out that I was trying to add was giving me errors. Thanks Yann, I was able to fix it with the info you gave me (and a few other things.. I was using the Apache 1.3.x installation instead of the Apache 2.x)
My fellow Americans I have just signed legislation that outlaws Russia forever. Bombing will commence in five minutes.
Coward
Coward
No you didn''t.

quote:
Original post by uber_n00b
I said the line that I commented out that I was trying to add was giving me errors.


What he asked for was the actual errors, it''s hard to tell what''s wrong with a line, besides guessing as Yann did, when you don''t provide the actual error messages.

Keep this in mind for the future.
Don't Temp Fate..
09x2
09x2
Apache, PHP, mySQL, phpMyAdmin.

Edit Note: Just wing it some because your using Apache 2.

/-09x2

[edited by - 09x2 on June 10, 2004 8:43:42 PM]
Senses777
Senses777
What are the pros and cons of loading it as a module instead of an executable?
"I want to make a simple MMORPG first" - Fenryl
AABBFFLLUUGG
AABBFFLLUUGG
As a module, you get extra speed and a nicer apache-php integration. However, under apache 2, php module support is apparently not as stable as the CGIE, so according to those in the know, if you need stability, go for the executable, if you want speed, go for the module.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.