Re: error mesage -configure php on wind98 +apache1.3

From: Date: Fri, 21 Dec 2001 13:42:42 +0000
Subject: Re: error mesage -configure php on wind98 +apache1.3
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-11061@lists.php.net to get a copy of this message
Yep... At 00:22 21.12.2001 +0700, p13zo wrote:
i cant configure php to work on my window98 +apache 1.3 i stop apache and edit httpd.conf with notepad and add this line (i read this on some tutorial books) ; #for the apache module LoadModule php4_module c:/php/sapi/php4apache.dll AddType application/x-httpd-php.php4 #for the cgi binary (you can use that one compiled with force cgi redirect too) ScriptAlias /php4/ "C:/php/" Action application/x-httpd-php4 "/php4/php.exe" AddType application/x-httpd-php4.php
AddType should read: AddType application/x-httpd-php4 .php A space is needed before .php as it's telling Apache what extensions to send to the parser - if you do something like AddType application/x-httpd-php4 .php .phtml .php3 .php4 Apache will process all the extensions using the parser.
*please note that i dont have any clue on writing a php code, so i just type anything the book suggest. so it could be a misstype. anyway, i put those line after the last line of the codes inside httpd.conf. then i move php4ts.dll to c/windows/system and copy php.ini-dist into sysroot C:/windows/ and rename it php.ini when done, starting apache came up with this error; Syntax error on line 1035 of c:/apache/conf/httpd.conf: AddType requires at least two arguments, a mime type followed by one or mo e extensions any idea what i did wrong?
It should work now! :)
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
// Jonathan Wright // j.d.e.wright@cs.cf.ac.uk // GCS d- s: a-- C++(+) US> P+++ L+> E> W+++ !N w !O M- V- PS+@ PE+
//    Y PGP t+ !5 X R- tv(-) b(+) DI++++> D+(++) G h-- r-- z--(++)


« previous php.windows (#11061) next »