I know this has been a while, but you have made some mistakes: PHP _can_ be built as DSO under windows. I know it because I build it from CVS snapshots about 4 times a week. Also, the actual problem the user had wasn't addressed, and though he has surely solved it long ago, here's the solution: 1/ 'correct' MIME type for PHP 4 scripts is application/x-httpd-php. The word 'correct' is quoted, because you can basically make something up - provided you use the CGI version. Then, the required settings in httpd.conf are as follows: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps ScriptAlias /php/ c:/path/to/php Action application/x-httpd-php /php/php.exe actually, the first argument to ScriptAlias doesn't have to be '/php/', the only requirement is it must match the path in Action. Action would fail if the 'script' (from Apache's point of view) wasn't in a ScriptAlias'ed directory For the module, you're off with LoadModule modules/php4apache.dll AddType application/x-httpd-php .php Now if you have both the dll version of PHP and the CGI (exe), you must differentiate what you want parsed by the module and what should be done by the CGI. In the case of the module, you have to use AddType application/x-httpd-php .php because these two are the only MIME types PHP 4 DSO looks for. But you can change the MIME type for the CGI served files, and you're set. But I'll go a bit further and play with it some more: AddHandler cgi-php .cgi ScriptAlias /cgi-bin/ c:/path/to/php Action php-cgi /cgi-bin/php.exe Also, because currently php.exe crashes when invoked directly (i. e. in this case 'http://hostname/cgi-bin/php.exe'), I'd add this directive: <LocationMatch "/cgi-bin/php(\.exe)?"> deny from all </LocationMatch> At 17:44 21.12. 2000, Student7 SNT wrote the following: -------------------------------------------------------------- >Hi, > >You seem to be getting your installation versions confused. >Now, since Windoze doesn't have any real effective file permissions (due to its >stupid flat file system) any scripts that you want to run have to be aliased for >Apache. > >You need the line: >ScriptAlias /php/ "c:/path-to-php-dir/" #This refers to $APACHE_HOME/php/ as your >php scripts dir. > >as specified in the manual in your httpd.conf. >Also, delete the line "AddModule blah" from your config, because there is no way you >have compiled PHP as an Apache module under Windoze. >Next, you need to add to you 'PATH' environmental variable. You can do this via >Control Panel > System... Add the directory in which the PHP DLLs are stored, if you >don't PHP will die saying it can't link to blah.dll or some such crap. > >Having done all that, PHP should work fine, but make sure the PHP files have the >extension .php4 (or add another AddType line for another extension). > >Finally, PHP really does work a whole lot better on a Unix system, consider running >Linux on your x86 platform, or better still, buy a Sparc on which to host your >website. > >Good Luck, >C.Davies > > > >At 03:42 PM 12/21/00 +0000, you wrote: >>Dear Miles, >> >>i have restarted the apache server and copied the php.ini file >>to the winnt directory. >>do i maybe need a special version of the apache ? >>i use apache 1.3.9 >> >> >>thanks >> >> >>bob > > >-- >PHP Install Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] > ------end of quote------ ____________________________________________________________ Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. [EMAIL PROTECTED] -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]