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 -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Question re: edit of "httpd.conf" for Windows 7
Author
scott14



Joined: 21 Sep 2013
Posts: 4
Location: California

PostPosted: Sat 28 Sep '13 16:11    Post subject: Question re: edit of "httpd.conf" for Windows 7 Reply with quote

(Question 1) In James Blond's very helpful and much appreciated Apache + PHP installation instructions from 5.5 years ago at http://www.apachelounge.com/viewtopic.php?t=2394

is the part still true or is it obsolete where he says,


"Finally, this should be the last step, edit the Apache CONF file (httpd.conf) with
make sure you load mod fcgid
Code:

LoadModule fcgid_module modules/mod_fcgid.so

<IfModule fcgid_module>
FcgidIOTimeout 40 ....etc."


That edit breaks my Apache installation.

(Question 2) Or, further into his instruction he says add this line to httpd.conf
"FcgidInitialEnv PHPRC "C:\\php5".

In that line, should the "php5" be changed to instead be the complete path to php5apache2_4.dll? Like "C:\Program Files (x86)\PHP\php5apache2_4.dll"?

Environment is
httpd-2.4.6-win64-VC11.zip, php-5.5.4-Win32-VC11-x86.zip,
vcredist_x64.exe,
Windows7 SP1 64-bit

Thank you
Back to top
James Blond
Moderator


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

PostPosted: Sat 28 Sep '13 16:51    Post subject: Reply with quote

Hi,
well there are 3 sections. One Apache with PHP over fcgid (recommened). Second one Apache 2.2 with PHP as module. The 3rd Apache 2.4 with PHP as module.
Maybe I have to redo the design of that.

Option as module

Code:

LoadModule php5_module "c:/php5/php5apache2_4.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "c:/php5"


Option over fcgid.

Code:

LoadModule fcgid_module modules/mod_fcgid.so

<IfModule fcgid_module>
   FcgidIOTimeout 40
   FcgidConnectTimeout 10

   FcgidMaxProcesses 300
   FcgidMaxProcessesPerClass 300

   FcgidOutputBufferSize 64
   ProcessLifeTime 0
   FcgidMaxRequestsPerProcess 0
   FcgidMinProcessesPerClass 0
   FcgidFixPathinfo 1
   FcgidProcessLifeTime 0
   FcgidZombieScanInterval 20
   FcgidMaxRequestLen 536870912
   FcgidIOTimeout 120
   FcgidTimeScore 3
   
   FcgidPassHeader Authorization

   FcgidInitialEnv PHPRC "C:\\php5"
   FcgidInitialEnv PATH "C:\\php5;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;"
   FcgidInitialEnv SystemRoot "C:\\Windows"
   FcgidInitialEnv SystemDrive "C:"
   FcgidInitialEnv TEMP "C:\\WINDOWS\\TEMP"
   FcgidInitialEnv TMP "C:\\WINDOWS\\TEMP"
   FcgidInitialEnv windir "C:\\WINDOWS"
   <Files ~ "\.php$">
      Options Indexes FollowSymLinks ExecCGI
      AddHandler fcgid-script .php
      FcgidWrapper "C:/php5/php-cgi.exe" .php
   </Files>
</IfModule>


Do not use both at the same time.


The FcgidInitialEnv PHPRC tell PHP over fcgid where to find the php.ini as with the module variant the PHPIniDir does.
Back to top
scott14



Joined: 21 Sep 2013
Posts: 4
Location: California

PostPosted: Tue 01 Oct '13 5:33    Post subject: Reply with quote

James Blond,

Thank you for replying.
Back to top


Reply to topic   Topic: Question re: edit of "httpd.conf" for Windows 7 View previous topic :: View next topic
Post new topic   Forum Index -> Other Software