Forum Moderators: phranque

Message Too Old, No Replies

Trouble installing Apache 2.2.4 on Win

Win apache instaler 2.2.4

         

horseatingweeds

12:57 am on Jun 1, 2007 (gmt 0)

10+ Year Member



I was about to put php on Apache on my local win xp machine. I already had apache 2 so I decided to uninstall it and install the newer version. I haven't even touched php and I am having trouble starting the new Apache installation.

I'm getting this:

Installing the Apache2 service
The Apache2 service is successfully installed.
Testin httpd.conf....
Errors reported here must be corrected before the service can be started.
httpd.exe: Syntax error on line 67 of C:/conf/httpd.conf: Cannot load C:/WINDOWS/system32/modules/mod_actions.so into server: The specified module could not be found.

I've looked at line 67 in the httpd.conf file and have this:

LoadModule actions_module modules/mod_actions.so

I've checked the path and there is no 'modules' under C:/WINDOWS/systems32

So, I did a search for mod_actions.so and found the modules/mod_actions.so under C:/

On installation I specified that Apache be installed simply under C:/

Does this mean I have done something terribly wrong? Or do I just need to change a setting.

Help would be appreciated!

horseatingweeds

2:00 am on Jun 1, 2007 (gmt 0)

10+ Year Member



OK, here is the solution.

Server Root " "

Needs to contain the file path. I guess the default is the Windows/win23.....

I had :

Server Root "C:"

This left Apache looking for C:modules/mod_actions.so when it needed C:/modules/mod_actions.so

So I changed Server Root "C:/"

There it goes...

g1smd

2:14 am on Jun 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I've been kicked by stupid stuff like this many times.

One day I might get it right first time. Getting Apache going on Vista was far more difficult this time.

horseatingweeds

2:50 am on Jun 1, 2007 (gmt 0)

10+ Year Member



Vista?!?!?! OOOOO, your brave.

An added note to any other novice Apache people, having the C:/ as your root isn't the best idea. It just throws all the Apache files on the C drive. Better would be C:/Apache2

Does anyone know what all the files are or any problems moving them into an Apache folder?

horseatingweeds

9:05 pm on Jun 1, 2007 (gmt 0)

10+ Year Member



Ok, I just installed php but now Apache won't start...

The trouble seems to be in the httpd.conf file. Whe I add:

LoadModule php5_module c:/php5/php5apache2.dll
AddType application/x-httpd-php .php
PHPIniDir "C:\php5"

Apache won't start. But when I comment it, Apache starts fin.

I have my php files in C:\php5
Apache is just in C:\

Any Help?

g1smd

9:24 pm on Jun 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Are you adding the right lines for the right version of PHP (4 vs. 5) for the right version of Apache (1.3 vs. 2)?

I have made that error before. Took ages to work out what I was doing.

.

Have you got all of your / and \ round the right way?

horseatingweeds

9:45 pm on Jun 1, 2007 (gmt 0)

10+ Year Member



Hi g1smd, I think so.

I am following the installation guide in 'Beginning PHP and MySQL5' and have examined the process numerous times. So far, I can't find any stupid little mistakes that normally cause me this type of problem.

Is there any way to view error logs or anything?

horseatingweeds

12:07 am on Jun 2, 2007 (gmt 0)

10+ Year Member



Your notion was on the right track g1smd. Apache 2.2 is NOT YET compatible with php. I guess there is a .dll module for Apache2.2 not yet included with php5, but I played it safe and simple replaced Apache 2.2 with 2.0.

Not it work. horay

g1smd

6:27 pm on Jun 2, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Now you know why its called "bleeding edge"...