Go Back   Runner > Coding Corner > Php

Php PHP is a general-purpose scripting language especially suited to web development. It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-05-2020, 03:14 AM
Runner's Avatar
Runner Runner is online now
Administrator
 
Join Date: Nov 2020
Location: Moose Jaw
Posts: 224
Send a message via Skype™ to Runner
Default mod_fcgid

having issues running this set up is as follows
Code:
# Configuration for mod_fcgid 
# FileName: conf/extras/mod_fcgid_php.conf

<IfModule fcgid_module>

# Fast CGI module Settings (PHP 7.4.11)

    FcgidInitialEnv PHPRC "C:\\Sentora\\jenco\php\\74\\"
    FcgidInitialEnv PATH "C:\\Sentora\\jenco\php\\74;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"

# Fast CGI module Settings (PHP 5.6)

    FcgidInitialEnv PHPRC "C:/Sentora/jenco/php/5.6.40/"
    FcgidInitialEnv PATH "C:/Sentora/jenco/php/5.6.40;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"

# Global mod_fcgid settings

    FcgidIOTimeout 40
    FcgidConnectTimeout 10
    FcgidMaxProcesses 8
    FcgidOutputBufferSize 64
    ProcessLifeTime 240
    FcgidMaxRequestsPerProcess 500
    FcgidMinProcessesPerClass 0


# Global Config Example
# Comment out next 4 lines to use per-Directory or per-VirtualHost configuration
 # <Files ~ "\.php$">
  # Options ExecCGI
   # AllowOverride All
   # Require all granted
   # AddHandler fcgid-script .php
   # FcgidWrapper "C:/Sentora/jenco/php/74/php-cgi.exe" .php
 #</Files>
# Do not comment out below line
</IfModule>

my virtual host conf
Code:
<Files ~ "\.php$">
 Options Indexes FollowSymLinks SymLinksIfOwnerMatch Includes ExecCGI
 AllowOverride All
 Require all granted
 AddHandler fcgid-script .php
 FcgidWrapper "C:/Sentora/jenco/php/74/php-cgi.exe" .php
 </Files>
any help be appreciated
Reply With Quote
  #2  
Old 12-30-2020, 03:59 AM
Runner's Avatar
Runner Runner is online now
Administrator
 
Join Date: Nov 2020
Location: Moose Jaw
Posts: 224
Send a message via Skype™ to Runner
Default

Changed AddHandler fcgid-script .php to
Quote:
SetHandler fcgid-script
Code:
<Files ~ "\.php$">
         Options Indexes FollowSymLinks ExecCGI
         SetHandler fcgid-script 
         FcgidWrapper "C:/Sentora/jenco/php/8.0.1/php-cgi.exe" .php
         SetHandler fcgid-script 
         FcgidWrapper "C:/Sentora/jenco/php/8.0.1/php-cgi.exe" .html
      </Files>

Quote:
Originally Posted by Runner View Post
having issues running this set up is as follows
Code:
# Configuration for mod_fcgid 
# FileName: conf/extras/mod_fcgid_php.conf

<IfModule fcgid_module>

# Fast CGI module Settings (PHP 7.4.11)

    FcgidInitialEnv PHPRC "C:\\Sentora\\jenco\php\\74\\"
    FcgidInitialEnv PATH "C:\\Sentora\\jenco\php\\74;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"

# Fast CGI module Settings (PHP 5.6)

    FcgidInitialEnv PHPRC "C:/Sentora/jenco/php/5.6.40/"
    FcgidInitialEnv PATH "C:/Sentora/jenco/php/5.6.40;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"

# Global mod_fcgid settings

    FcgidIOTimeout 40
    FcgidConnectTimeout 10
    FcgidMaxProcesses 8
    FcgidOutputBufferSize 64
    ProcessLifeTime 240
    FcgidMaxRequestsPerProcess 500
    FcgidMinProcessesPerClass 0


# Global Config Example
# Comment out next 4 lines to use per-Directory or per-VirtualHost configuration
 # <Files ~ "\.php$">
  # Options ExecCGI
   # AllowOverride All
   # Require all granted
   # AddHandler fcgid-script .php
   # FcgidWrapper "C:/Sentora/jenco/php/74/php-cgi.exe" .php
 #</Files>
# Do not comment out below line
</IfModule>
my virtual host conf
Code:
<Files ~ "\.php$">
 Options Indexes FollowSymLinks SymLinksIfOwnerMatch Includes ExecCGI
 AllowOverride All
 Require all granted
 AddHandler fcgid-script .php
 FcgidWrapper "C:/Sentora/jenco/php/74/php-cgi.exe" .php
 </Files>
any help be appreciated
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 04:32 PM.


Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright ©2020 - 2021, Runner
Ad Management plugin by RedTyger