Re:Apache/PHP on Win 2000

From: Date: Thu, 22 Mar 2001 23:49:44 +0000
Subject: Re:Apache/PHP on Win 2000
Groups: php.windows 
Request: Send a blank email to php-windows+get-6236@lists.php.net to get a copy of this message
ScriptAlias /php/ "D:/php/" Action application/x-httpd-php "/php/php.exe" AddType application/x-httpd-php .php Ah, I finally did it. The lines above were what I wrote in. I took out all references to "4" since my directory didn't have a "4" in it. Tricky!! I also added php in the mime.types file. I figured, what the heck... application/php php Thanks for all your help!! You've all been great! > This should work if you are running PHP as a CGI, > > ScriptAlias /php4/ "c:/php4/" > AddType application/x-httpd-php .php > Action application/x-httpd-php "/php4/php.exe" > > Did u restart Apache after you made the changes to httpd.conf? > > Ignatius > > > > -----Original Message----- > > From: speedoflight@runbox.com [mailto:speedoflight@runbox.com] > > Sent: Friday, 23 March 2001 10:25 > > To: sillyboy@mindless.com > > Cc: php-windows@lists.php.net > > Subject: [PHP-WIN] Re:Apache/PHP on Win 2000 > > > > > > I added that line in, didn't make any difference. The browser > > is still asking me if I want to download my php file. > > > > Just to reiterate. My Win 2000 box is not on a network and I > > am using http://127.0.0.1 to serve the file back to me. > > Apache seems to serve regular html file fine. > > > > I'm trying to configure it such that the entire htdocs > > directory can contain php files. In my sample test, I used > > http:/127.0.0.1/index.php > > > > > > > > > > > > > You need to add an Action to you httpd.conf file. Insert > > the following > > > into the 'Action' area: > > > > > > Action application/x-httpd-php "/php/php.exe" > > > > > > > -----Original Message----- > > > > From: speedoflight@runbox.com [mailto:speedoflight@runbox.com] > > > > Sent: March 22, 2001 1:27 PM > > > > To: fmadruga@ascoimbra.pt > > > > Cc: php-windows@lists.php.net > > > > Subject: [PHP-WIN] Re:[PHP-WIN] Apache/PHP on Win 2000 > > > > > > > > > > > > Hello: > > > > Thanks for your reply. Pls tell me where I have gone wrong for > > > > the PHP server is still not parsing the file, basically the > > > > browser is still asking if I want to download the php file. I've > > > > included my httpd.conf file as an attachment. > > > > > > > > I'm not all that well-versed on Apache. So pls bear with me. > > > > > > > > This is what I have: > > > > > > > > <Directory "D:/Apache/htdocs"> > > > > AllowOverride None > > > > Options Indexes Multiviews > > > > Order allow,deny > > > > Allow from all > > > > </Directory> > > > > > > > > > > > > > > > > AddType application/x-httpd-php .php4 > > > > AddType application/x-httpd-php .php > > > > ScriptAlias /php/ "D:/php/" > > > > > > > > > > > > Thanks!! > > > > > > > > > > > > > Defining two different types (your lines 2 and 5) for the same > > > extension > > > > > does not help... > > > > > Try removing the last line. Also, you'll have to enable script > > > > parsing for > > > > > the directories involved: check your apache docs for > > <directory> and > > > > > 'options'. > > > > > > > > > > HTH, > > > > > Madruga > > > > > > > > > > -----Original Message----- > > > > > From: speedoflight@runbox.com [mailto:speedoflight@runbox.com] > > > > > Sent: quinta-feira, 22 de Margo de 2001 3:50 > > > > > To: php-windows@lists.php.net > > > > > Subject: [PHP-WIN] Apache/PHP on Win 2000 > > > > > > > > > > > > > > > I am running Apache on Win 2000 and am trying to > > install PHP on it. > > > I've > > > > > used the PHP installer and have configured my httpd.conf file > > > > to recognize > > > > > the php mime type. > > > > > > > > > > I am using localhost or 127.0.0.1 to do this since I don't have > > > > a box that > > > > > is online. I've never tried the localhost route before but > > > > Apache seems to > > > > > serve regular HTML files up fine. > > > > > > > > > > But, when I load a PHP file on this machine, i.e. > > > http://127.0.0.1/test.php, > > > > the PHP server doesn't seem to parse the file. It asks me > > if I want to > > > > download the file or open it. I don't want either. I'm > > not sure what I > > > > should do. Any help would be greatly appreciated. > > > > > > > > Below is what I've dumped in my httpd.conf file. Let me > > know if it's > > > right > > > > or wrong. > > > > > > > > Please help!! Thanks much! > > > > > > > > > > > > AddType application/x-httpd-php .php4 > > > > AddType application/x-httpd-php .php > > > > ScriptAlias /php/ "D:/php/" > > > > Action application/x-httpd-php "D:\php\php.exe" > > > > AddType application/x-httpd-php4 .php> > > > > > > > > > > > > > > > > > > ----------------------------------------------- > > > Runbox Mail Manager - www.runbox.com > > > Free online email application > > > > > > > > > > > > ----------------------------------------------- > > Runbox Mail Manager - www.runbox.com > > Free online email application > > > > -- > > 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 > > ----------------------------------------------- Runbox Mail Manager - www.runbox.com Free online email application

« previous php.windows (#6236) next »