Re: installing php on apache

From: Date: Mon, 09 Jul 2001 01:11:19 +0000
Subject: Re: installing php on apache
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-8190@lists.php.net to get a copy of this message
On Sun, 8 Jul 2001 13:37:12 +0100, you wrote: David, change your action application line to "/php/php.exe" AFAIK, since you aliased /php/ as "c:/php/", your action line gets translated wrong by apache. In other words, I;m pretty sure that your "c:/php/php.exe" gets transformed internally to "c:c:/php/php.exe". Alan >I am trying in vain to get php running. > >I have win98 and apache1.3.6 server running. > >I unzipped the php-4.0.6-Win32 into c:\php > >I then downloaded php406-installer and I ran that, did a standard install. > >I was told that the installer hadn't edited my httpd.conf file for apache >and i would have to do this with accordance with the php\install.txt file. >Which has the following instructions:- >If you unzipped the PHP package to C:\PHP\ as desribed > above, you need to insert these lines to your Apache conf > file to set up the CGI binary: > > ScriptAlias /php/ "c:/php/" > AddType application/x-httpd-php .php > Action application/x-httpd-php "/php/php.exe" > >So this I did, so my httpd.conf file within apache looks like this:- ># For example, the PHP3 module (not part of the Apache distribution) ># will typically use: ># >#AddType application/x-httpd-php3 .phtml >#AddType application/x-httpd-php3-source .phps >ScriptAlias /php/ "c:/php/" > AddType application/x-httpd-php .php > Action application/x-httpd-php "c:/php/php.exe" > >But I shutdown and restart apache and try to run load a .html file in my >browser ><html> ><head> ><title>Untitled Document</title> ><meta http-equiv="Content-Type" content="text/html; >charset=iso-8859-1"> ></head> > ><body bgcolor="#FFFFFF" text="#000000"> ><?php echo "Hello World<p>"; ?> ></body> ></html> > >But nothing happens. > >I have tried to be as verbose as possible in the hope that someone can help >me out here. > >Thankyou.

« previous php.windows (#8190) next »