I'm trying to get fastcgi working.
I copied the DLLs to the php directory, and used the fastcgi.reg for creating the registry entries. I checked the registry and it has the right values.
I changed the ISAPI extensions of the cacti web site by editing the existing "C:\php\php5isapi.dll" value for the php extension to "C:\php\isapi_fcgi.dll".
Restarting the web service stopped the access to the cacti web site.
But as I don't give up easily, I starting searching in the forum and thought I might have to add "cgi.fix_pathinfo = 1" to the php.ini fil, although I'm not sure it is not for windows platforms. But no change.
Than I also realised that I also needed to allow the "C:\php\isapi_fcgi.dll" in the Web Service Extensions of the IIS Manager. Did that, but I still have a "page not found" error.
Luckily, everything runs back as normal when I changed back the php ISAPI extension to the old value. Would someone be able to help me get FASTCGI running ?
Trying FastCGI on Win2k3
Moderators: Developers, Moderators
-
- Cacti User
- Posts: 97
- Joined: Thu Mar 24, 2005 4:59 am
- Location: Brussels, Belgium
Trying FastCGI on Win2k3
[size=75][color=#EE5019]| Cacti 0.8.6g | MySQL 4.1.14 w Query Cache | Net-SNMP 5.2.1 | IIS 6 | fast-cgi | PHP 5.0.3 | RRDtool 1.2.9 | Windows 2003 Server SP1 | Cactid 0.8.6f |
| Dell 2450 - 2x P3 733 MHz, 1GB RAM |[/size][/color]
| Dell 2450 - 2x P3 733 MHz, 1GB RAM |[/size][/color]
I'll try to work on my documentation this evening/weekend and give FastCGI a shot.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Alright, I finally got it working.
1) Make sure IIS_WPG account has read/execute rights on the php and cacti folders.
2) Use the following modified fastcgi.reg file (assumes you're using php5)
3) Create a web site extension called "fastcgi". Add isapi_fcgi.dll and php-cgi.exe.
4) For the default website, under ISAPI filters, create a new one in addition to the php one called 'fastcgi' and point it to isapi_fcgi.dll.
5) In the default website | home directory | configuration, change the .php extension to use isapi_fcgi.dll.
1) Make sure IIS_WPG account has read/execute rights on the php and cacti folders.
2) Use the following modified fastcgi.reg file (assumes you're using php5)
Code: Select all
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\FASTCGI]
"StartServers"=dword:00000002
"IncrementServers"=dword:00000002
"MaxServers"=dword:00000019
"Timeout"=dword:00000258
[HKEY_LOCAL_MACHINE\SOFTWARE\FASTCGI\.php]
"AppPath"="c:\\php\\php-cgi.exe"
"BindPath"="php-fcgi"
4) For the default website, under ISAPI filters, create a new one in addition to the php one called 'fastcgi' and point it to isapi_fcgi.dll.
5) In the default website | home directory | configuration, change the .php extension to use isapi_fcgi.dll.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Cacti User
- Posts: 97
- Joined: Thu Mar 24, 2005 4:59 am
- Location: Brussels, Belgium
This is excellent ! Got it working right away (after a first failure, I noticed I forgot to "Allow" the fastcgi web service extension, you might want to add that as a reminder in your guide).
Thanks a lot !!
Thanks a lot !!
[size=75][color=#EE5019]| Cacti 0.8.6g | MySQL 4.1.14 w Query Cache | Net-SNMP 5.2.1 | IIS 6 | fast-cgi | PHP 5.0.3 | RRDtool 1.2.9 | Windows 2003 Server SP1 | Cactid 0.8.6f |
| Dell 2450 - 2x P3 733 MHz, 1GB RAM |[/size][/color]
| Dell 2450 - 2x P3 733 MHz, 1GB RAM |[/size][/color]
Who is online
Users browsing this forum: No registered users and 0 guests