- 1 year ago
FAST-CGI for Apache in Windows Server
Comment
1 / 1
To use FastCGI for Apache in Windows Server, you can follow the steps given below:
Install the FastCGI module for Apache: First, download and install the FastCGI module for Apache from the Apache Lounge website. Extract the downloaded file to the Apache modules directory.
Configure Apache: Open the Apache configuration file (httpd.conf) in a text editor and add the following lines:
bashLoadModule fcgid_module modules/mod_fcgid.so
AddHandler fcgid-script .fcgi
FcgidConnectTimeout 20
FcgidIOTimeout 240
FcgidMaxProcesses 200
FcgidMaxProcessesPerClass 100
FcgidMaxRequestLen 2048000
FcgidProcessLifeTime 7200
FcgidMaxRequestInMem 2048000
- Configure FastCGI: Create a new file named "php-cgi.ini" in the PHP installation directory and add the following lines:
fastcgi.impersonate = 1
cgi.fix_pathinfo = 1
cgi.force_redirect = 0
- Configure the FastCGI application: Create a new file named "php-cgi.exe.manifest" in the PHP installation directory and add the following lines:
xml<?xml version="1.0" encoding="UTF-8"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
- Restart Apache: Restart the Apache service to apply the changes.
After these steps, you should be able to use FastCGI for Apache in Windows Server.