Collections:
Other Resources:
Configuring Apache to Use PHP as CGI on Windows Systems
How to configure Apache server to run PHP engine as CGI on Windows systems?
✍: FYIcenter.com
1. Assuming that your Apache server is installed at C:\Program Files\Apache Software Foundation\Apache2.2
2. Assuming that your PHP engine is installed at C:\Program Files\php-5.2.0-Win32
3. Use "notepad" to open C:\Program Files\Apache Software Foundation \Apache2.2\conf\httpd.conf
4. Go to alias_module section and define a script directory call /php/ as:
<IfModule alias_module> ... ScriptAlias /php/ "C:/Program Files/php-5.2.0-Win32/" </IfModule>
5. Add an access control section for this directory as:
<Directory "C:/Program Files/php-5.2.0-Win32/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
6. Go to mime_module section and define a mime type as:
<IfModule mime_module>
...
AddType application/x-httpd-php .php
</IfModule>
7. At the root level below the LoadModule section, define an "Action" entry:
#LoadModule ssl_module modules/mod_ssl.so Action application/x-httpd-php "/php/php-cgi.exe"
This "Action" entry tells Apache to run "php-cgi.exe" from the script directory "/php/" for any "application/x-httpd-php" mime files.
8. Restart your Apache server.
2015-11-29, ≈155🔥, 6💬
Popular Posts:
What is the startup program "Delayed launcher - IAStorIconLaunch.exe" on my Windows 8 computer? Can ...
What is EvtEng.exe process - Intel Wireless EvtEng Module? Process EvtEng.exe is related to your wir...
What is the scheduled task "\Optimize Start Menu Cache Files-S-1-5-21-...-1001" on my Windows 8 comp...
What is "User Profile Service" in my Windows XP service list? And how is "User Profile Service" serv...
What files are installed by Yahoo! Toolbar for Internet Explorer (IE) 7 browser? Whenever an Interne...