Problem with AddModule line?

From: Date: Mon, 11 Apr 2005 22:15:13 +0000
Subject: Problem with AddModule line?
Groups: php.install 
Request: Send a blank email to php-install+get-15948@lists.php.net to get a copy of this message
Sorry about this I'm doing something stupid, I'm sure, but I'm afraid I can't see what. I've searched in the mailing list for similar problems and there were a few but none provided me with an answer. I installed PHP 5 as Per the instructions in install.unix.php on the PHP site. I've installed Apache/2.0.53 previously on Linux Kernel 2.4.21 There's a few lines to add to the httpd.conf file the first of which 'LoadModule' goes fine: LoadModule php5_module modules/libphp5.so After that the instructions say to add an 'AddModule' command the instructions being:- And in the AddModule section of httpd.conf, somewhere under the ClearModuleList, add this: There are no AddModule commands in my file! And there's no sign of ClearModuleList I've searched the file and to no avail. When I do add the AddModule line: AddModule mod_php_5.c I get an error when I start the Apache server: Syntax error on line 236 of /usr/local/apache2/conf/httpd.conf: Invalid command 'AddModule', perhaps mis-spelled or defined by a module not included in the server configuration Can anybody help? When I remove the line the Server starts fine and PHP seems to be working fine. The only problem that I'm having is that I've copied an example out of a book which passes variables from a html page to a php script and it fails. The html page has a form: <form METHOD="post" ACTION="Calculate.php"> <p>Value 1: <input TYPE="text" NAME="val1" SIZE=10></p> <p><input TYPE="submit" NAME="submit" VALUE="Calculate"></p> </form> In the PHP Script I simply try to print the value: <?PHP echo "Value 1 is $val1";?> Is this error in transfering the variables from the HTML Page to the PHP Script because of my failed AddModule line? Thanks a million in advance for any help Deadly

« previous php.install (#15948) next »