logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache + PHP + FastCGI on windows >> configuration pro
Author
avi129



Joined: 03 Jun 2008
Posts: 1

PostPosted: Tue 03 Jun '08 18:18    Post subject: Apache + PHP + FastCGI on windows >> configuration pro Reply with quote

I did try to search for the solution for the problem, but could not find it. So finally posting ...

I am trying to run Apache 2.2.8 + PHP 5 + FastCGI 2.4.6 on windows Xp, 2003

I have followed following steps to configure it.

- Copy mod_fastcgi.so to [Apache Installation dir]/modules/mod_fastcgi.so
- given ExecCGI permissions to htdocs and added one php file there.
- Configurations in httpd.conf

<IfModule !mod_fastcgi.c>
LoadModule fastcgi_module modules/mod_fastcgi.so
</IfModule>
<IfModule mod_fastcgi.c>
AddHandler fastcgi-script .php
FastCgiServer "[PHP dir path]/php-cgi.exe" -initial-env PATH -initial-env "PHPRC=[PHP dir path]" -initial-env "PHP_FCGI_CHILDREN=4"
</IfModule>

When I try to access the PHP, I get following error:
Faulting application httpd.exe, version 2.2.8.0, faulting module libapr-1.dll, version 1.2.12.0, fault address 0x00011f24.

The entry in the Apache's error.log says that FastCGI server has started but no other log details. I have set the loglevel to DEBUG in httpd.conf.

What could be the cause ?
Or can anyone point me to some site giving Apache 2.2.8 + PHP 5 + FastCGI 2.4.6 configuration details ?

Thanks in Advance.
Avinash.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 03 Jun '08 19:28    Post subject: Reply with quote

Here an working example with mod_fcgid from apachelounge.

Code:

LoadModule fcgid_module modules/mod_fcgid.so
<IfModule mod_fcgid.c>

   IPCCommTimeout 40
   IPCConnectTimeout 10
   MaxProcessCount 8
   OutputBufferSize 64
   ProcessLifeTime 240
   MaxRequestsPerProcess 500
   
   Alias /fcgi/ "C:/www/fcgi/"
   <Directory C:/www/fcgi>   
      AddHandler fcgid-script .php
      Options Indexes FollowSymLinks ExecCGI
      FCGIWrapper "C:/php/php-cgi.exe" .php
      AllowOverride all
      Order allow,deny
      Allow from all
      Satisfy any
   </Directory>

</IfModule>
Back to top


Reply to topic   Topic: Apache + PHP + FastCGI on windows >> configuration pro View previous topic :: View next topic
Post new topic   Forum Index -> Apache