Re: [users@httpd] Getting Apache to use PHP under Window XP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
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@xxxxxxxxxxxxx] 
> > Sent: Wednesday, May 31, 2006 8:41 PM
> > To: users@xxxxxxxxxxxxxxxx
> > 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@xxxxxxxxxxxxxxxx
> >    "   from the digest:
> users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> > For additional commands, e-mail:
> users-help@xxxxxxxxxxxxxxxx
> > 
> > --
> > 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@xxxxxxxxxxxxxxxx
>    "   from the digest:
> users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail:
> users-help@xxxxxxxxxxxxxxxx
> 
> 


__________________________________________________
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux