httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martyn Griffin" <griffi...@charter.net>
Subject RE: [users@httpd] Getting Apache to use PHP under Window XP
Date Mon, 05 Jun 2006 12:05:31 GMT
I gather from your config info that you only want this to run thru the cgi
interface. In my case, I don't want/need any cgi, just need the server-side
php processing. In fact, I want ALL pages, not just .php, to be filtered
through PHP. This include both .htm and any .xml. But right now, I would be
hapy to get it to just handle .php!!!

I think I will just un-install everything and start all over. I have V1
running on my Linux system exactly how I want it, under Apache V2. I just
need something to test with in prep for an upgrade, and WXP Home is my only
available system that I feel comfortable risking right now. 


Martyn T. Griffin


-----Original Message-----
From: Richard DeWath [mailto:dewath@yahoo.com]
Sent: Sunday, June 04, 2006 11:57 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Getting Apache to use PHP under Window XP

I am also trying to get PHP version 5.1.4 to work with Apache version 2.2.2.
I am running this on Windows XP (I decided to try it there over my Linux
server for learning).  The Apache service is working and I can read html
pages locally with no problem.  

I then installed PHP and followed the directions for adding it to the
httpd.conf file:

#PHP5 Added 20060603

ScriptAlias /php/ "C:/My Programs/PHP/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi.exe"


(I also added the path for php to the environmental variable PATH).  I can
run phpinfo.php from the command prompt using either php.exe or php-cgi.exe
without a problem.

Having followed the directions to best of my knowledge, I restarted the
Apache service and attempted to test PHP.  The results are:

Forbidden

You don't have permission to access
/php/php-cgi.exe/dummies/ch10/phpinfo.php on this server.


Okay, so I checked the log files:

access.log

192.168.0.178 - - [04/Jun/2006:08:39:53 -0700] "GET
/dummies/ch10/phpinfo.php HTTP/1.1" 403 243
192.168.0.178 - - [04/Jun/2006:08:40:42 -0700] "GET
/dummies/ch10/phpinfo.php HTTP/1.1" 403 242


error.log:

[Sun Jun 04 08:40:42 2006] [error] [client 192.168.0.178] client denied by
server configuration:
C:/My Programs/PHP/php-cgi.exe, referer:
http://my-xp/dummies/ch10/

This seems to be where the answer is going to be, but I have googled and not
found an answer yet.  

I will guess that this is a simple problem in my configuration, so if anyone
can point me to the documentation or help me resolve this, I do appreciate
it.  Somehow, getting it work under XP has become a cause.

Cheers,

Richard


--- "William A. Rowe, Jr." <wrowe@rowe-clan.net>
wrote:

> The announcement.txt file on the Apache download site says it all, 
> modules must be recompiled, and may require source changes.
> 
> 2.2.2 -> 2.2.22 won't require you to recompile your modules.
> 
> 2.2.2 -> 2.4.0 will require you to recompile your modules.
> 
> Looks like PHP's bad, in labeling their download 'for Apache2'...
> very misleading unless they have a apache2.0/, apache2.2/ flavor in 
> there.
> 
> Martyn Griffin wrote:
> > I am a little confused by your comment.
> > I am running Apache 2.2.2, and the latest Win32
> release of PHP is 5.1.4. The php5apache2.dll version is 5.1.4.4. The 
> only doc I have found indicates this is for Apache V2 and I took that 
> to mean V2.*
> > If that is NOT the case, it would suggest that
> there is no preconfigured release of PHP that runs with Apache 2.2.2 
> unless you compile it yourself, and not everyone who runs this stuff 
> has that capability.
> > So, if the PHP 5.1.4 release WON'T work with
> Apache 2.2.2, I would like to find where the correct combination is 
> defined?
> > 
> > 
> > Martyn T. Griffin
> > 
> > 
> > -----Original Message-----
> > From: William A. Rowe, Jr.
> [mailto:wrowe@rowe-clan.net]
> > Sent: Wednesday, May 31, 2006 8:41 PM
> > To: users@httpd.apache.org
> > Subject: Re: [users@httpd] Getting Apache to use
> PHP under Window XP
> > 
> > Martyn Griffin wrote:
> > 
> >>I even pulled the dll out of the distribution zip
> file again and
> >>retried and it still fails.
> >> 
> >>If anyone has this running (PHP 5.1.4 and Apache
> 2.2), could you show
> >>the relevant entries from your .conf file etc.
> > 
> > 
> > Using the version ***compiled for*** apache 2.2? 
> If is was compiled for 2.0 you are SOL, time to find the right build.
> > 
> >
>
---------------------------------------------------------------------
> > The official User-To-User support forum of the
> Apache HTTP Server Project.
> > See <URL:http://httpd.apache.org/userslist.html>
> for more info.
> > To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
> >    "   from the digest:
> users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail:
> users-help@httpd.apache.org
> > 
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.394 / Virus Database: 268.8.0/352 -
> Release Date: 5/30/2006
> >  
> > 
> 
>
---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server 
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
>    "   from the digest:
> users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.1/355 - Release Date: 6/2/2006
 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.1/355 - Release Date: 6/2/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.1/355 - Release Date: 6/2/2006
 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message