editing httpd.conf with cacti instructions breaks Apache

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
khutton
Cacti User
Posts: 77
Joined: Tue Jun 18, 2002 9:01 am
Location: Alexandria, Virginia
Contact:

editing httpd.conf with cacti instructions breaks Apache

Post by khutton »

Here is what I have

XP Pro
Apache 2.0.36
MySQL 3.23.51
PHP 4.2.1
rrdtool 1.0.38
cacti 0.6.8

I can get apache up and running fine but when I make the edits to the httpd.conf file that are explained the in Cacti Installation (Windows) (www.raxnet.net/products/cacti/docs/INSTALL-WIN32.htm) #5. I get errors when I try to restart Apache. It tells me I have 2 errors. The line that states

LoadModule php4_module d:/networkmonitor/php/sapi/php4apache2.dll (I assume I should use the Apache2 version since that is the version I am running)

gives me an error until I change from the recommended / to \. If I make the line read

LoadModule php4_module d:\networkmonitor\php\sapi\php4apache2.dll

I don't get any errors, even though this goes against what the directions say.

The second error is with the line

AddModule mod_php4.c

The error is "The Apache service named reported the following error:
>>> Invalid command 'AddModule', perhaps mis-spelled or defined by a module not included in the server configuration "

Any help with this is greatly appreciated and I hope that I was not to verbose in my problem explination.
Jeff
Posts: 12
Joined: Tue Jun 11, 2002 2:49 pm
Location: France

Post by Jeff »

Your LoadModule call sounds ok. Don't touch it anymore.
As an example, mine is :
LoadModule php4_module modules/php4apache2.dll
... where php4apache2.dll have been copied into $SERVER_ROOT/modules/

Next, forget the "AddModule mod_php4.c" parameter. You don't need it anymore.

The only things you need to add is :
AddType application/x-httpd-php .php
in order to have php files passed to the PHP modules.

Hope this help.

Jeff
khutton
Cacti User
Posts: 77
Joined: Tue Jun 18, 2002 9:01 am
Location: Alexandria, Virginia
Contact:

thanks

Post by khutton »

I was able to get the thing up and running on XP with Apache. I have heard much talk about directions for Windows. Is anyone working on this or can I submit the process I went through for consideration? I will post this message in another group for consideration and suggestions.

Thanks Jeff
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests