Forum Moderators: phranque

Message Too Old, No Replies

an error when trying to set up php5 with apache server

apache, php5, cannot remove module mod_php5.c: not found in module list

         

furtivefelon

2:20 am on Aug 12, 2004 (gmt 0)

10+ Year Member



hi, i'm trying to set up php5 as a module within apache 1.3, when i tried to put in these into the httpd.config.

LoadModule php5_module c:/php/php5apache.dll
AddType application/x-httpd-php .php
AddModule mod_php5.c
SetEnv PHPRC C:/php

but when i tried to test the config, it returns this error:
cannot remove module mod_php5.c: not found in module list

can someone help me figure out what i'm doing wrong? i tried installer, but it can't config the apache, i'm using Win XP pro..

gergoe

10:30 am on Aug 12, 2004 (gmt 0)

10+ Year Member



try to configure it in the following way:
  • put the LoadModule after the rest of the LoadModule directives (somewhere around line 200)
  • put the AddModule after the rest of the AddModule directives (just after the LoadModule directives, take care that it is behind the ClearModuleList directive). usually you need to put the AddModule in the same order as the LoadModule directive.

The position of the other directives aren't significant, and the SetEnv directive you need only if you've placed it there on purpose (so you know why it is there)

furtivefelon

2:25 pm on Aug 12, 2004 (gmt 0)

10+ Year Member



yes! that's done.. i have one more question.. how do you know if you have successfully set up php in Apache? and also where do you suppose to put your script? i tried to put it inside c:/Inetpub/wwwroot (the default windows IIS folder), but when i tried to access the file, it gave me a message saying that the file cannot be found..

Thanks for helping me!

gergoe

5:44 pm on Aug 12, 2004 (gmt 0)

10+ Year Member



put them in the same folder where your server config or your virtualhost are pointing to. if you've set up apache to serve files from the /inetpub/www then your php script should be executed properly.

coopster

5:50 pm on Aug 12, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, furtivefelon!

This recent thread might be of interest to you as well. A couple issues you may need to resolve re: Windows are documented there.

Installing PHP5 Under Windows XP and Apache [webmasterworld.com]

furtivefelon

8:23 pm on Aug 12, 2004 (gmt 0)

10+ Year Member



where do you config host pointer?

furtivefelon

8:27 pm on Aug 12, 2004 (gmt 0)

10+ Year Member



fixed.. i believe the default is in htdocs..