[RESOLVED] IIS8 & PHP install issue
Moderators: Developers, Moderators
[RESOLVED] IIS8 & PHP install issue
I'm testing a new installation on Server 2012 and IIS8 but cannot get PHP to work in IIS.
I have followed the Windows install guide but there is no section for Using FastCGI to Host PHP Applications on IIS 8 so I used a guide from the MS site. I can browse to html pages without issue.
Operating System: Server 2012
Webserver: IIS8
Cacti: 0.8.8c
Spine: N/A
MySQL: 5.6.23
PHP: 5.5.21
RRDTool (Cygwin or Win32 build): 1.4.9
Net-SNMP: 5.5.0-2
Cygwin (cygwin1.dll version): N/A
Plugin Architecture: N/A
Everything has been installed to the D:\ drive (operational requirement) if that makes any difference?
I have checked permissions & Handler Mappings - what simple thing have I not checked/done?
I have followed the Windows install guide but there is no section for Using FastCGI to Host PHP Applications on IIS 8 so I used a guide from the MS site. I can browse to html pages without issue.
Operating System: Server 2012
Webserver: IIS8
Cacti: 0.8.8c
Spine: N/A
MySQL: 5.6.23
PHP: 5.5.21
RRDTool (Cygwin or Win32 build): 1.4.9
Net-SNMP: 5.5.0-2
Cygwin (cygwin1.dll version): N/A
Plugin Architecture: N/A
Everything has been installed to the D:\ drive (operational requirement) if that makes any difference?
I have checked permissions & Handler Mappings - what simple thing have I not checked/done?
Last edited by cahonis on Tue Feb 10, 2015 1:41 pm, edited 1 time in total.
Re: IIS8 & PHP install issue
You followed this, right? http://docs.cacti.net/manual:088:1_inst ... ll_windows which has a link to http://www.iis.net/learn/install/instal ... er-2012-r2
Install the CGI application feature.
Yes, you can install all the bits on D:\
Install the CGI application feature.
Yes, you can install all the bits on D:\
| 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 |
Re: IIS8 & PHP install issue
Yes, followed both of those to the letter. I've confirmed that PHP is working via command line also.
I get a 404 file not found error when trying to load a .php file on the web site. I have checked & rechecked permissions as per the instructions and they are all present & correct. No error when loading a html page.
When I perform Test Connection on Default Web Site I get the following error:
The Application Pool is using DefaultAppPool.
I get a 404 file not found error when trying to load a .php file on the web site. I have checked & rechecked permissions as per the instructions and they are all present & correct. No error when loading a html page.
When I perform Test Connection on Default Web Site I get the following error:
Code: Select all
The server is configured to use pass-through authentication with a built-in account to access the specified physical path. However, IIS Manager cannot verify whether the built-in account has access. Make sure that the application pool identity has Read access to the physical path. If this server is joined to a domain, and the application pool identity is NetworkService or LocalSystem, verify that <domain>\<computer_name>$ has Read access to the physical path. Then test these settings again.
Re: IIS8 & PHP install issue
Could either try MS's installer http://support.microsoft.com/kb/2819022 or their other guide: https://technet.microsoft.com/en-us/lib ... 94578.aspx
| 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 |
Re: IIS8 & PHP install issue
The MS installer requires the system to internet access, which this server does not have.
The other guide you linked doesn't really offer anything different to the other guides I've seen.
Will the Windows all-in-one installer allow me to install the components to the D:\ drive or is there no options?
Most of the associated applications could probably stay on C:\ but I really need the cacti install to be located on the D:\ partition as the storage for rrd files can get quite large.
The other guide you linked doesn't really offer anything different to the other guides I've seen.
Will the Windows all-in-one installer allow me to install the components to the D:\ drive or is there no options?
Most of the associated applications could probably stay on C:\ but I really need the cacti install to be located on the D:\ partition as the storage for rrd files can get quite large.
Re: IIS8 & PHP install issue
For some of the components, yes. others will be installed in Program Files. Before it the install starts, a summary screen will show you where everything will go.cahonis wrote:Will the Windows all-in-one installer allow me to install the components to the D:\ drive or is there no options?
Considered using a NTFS junction point or symbolic link to redirect the RRD folder to a different drive?cahonis wrote:Most of the associated applications could probably stay on C:\ but I really need the cacti install to be located on the D:\ partition as the storage for rrd files can get quite large.
| 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 |
Re: IIS8 & PHP install issue
Turns out that the doc_root path in the install instructions is incorrect.
The documentation states set it to C:\inetpub\wwwroot\cacti but it will only work when set to C:\inetpub\wwwroot, or D:\inetpub\wwwroot in my case.
The documentation states set it to C:\inetpub\wwwroot\cacti but it will only work when set to C:\inetpub\wwwroot, or D:\inetpub\wwwroot in my case.
Re: IIS8 & PHP install issue
hmm, as I look at my install (win2K8R2, IIS, php 5.6.3), doc_root is still commented out. I'll have to see if the same works on a 2012 VM and then update the documentation.cahonis wrote:Turns out that the doc_root path in the install instructions is incorrect.
| 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 |
Re: IIS8 & PHP install issue
It's odd you say that. I have another Cacti install which was deployed from the Windows Installer package (awesome by the way!) and the doc_root is set to C:\inetpub\wwwroot in the the php.ini file in there too.
Re: IIS8 & PHP install issue
Yea, just checked a test install and it has that too. Opps! thanks for actually following the documentation and finding the mistake
| 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 |
Who is online
Users browsing this forum: No registered users and 1 guest