[RESOLVED] IIS8 & PHP install issue

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
cahonis
Cacti User
Posts: 123
Joined: Fri Jun 06, 2008 5:50 am

[RESOLVED] IIS8 & PHP install issue

Post by cahonis »

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?
Last edited by cahonis on Tue Feb 10, 2015 1:41 pm, edited 1 time in total.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: IIS8 & PHP install issue

Post by BSOD2600 »

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:\
cahonis
Cacti User
Posts: 123
Joined: Fri Jun 06, 2008 5:50 am

Re: IIS8 & PHP install issue

Post by cahonis »

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:

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.
The Application Pool is using DefaultAppPool.
cahonis
Cacti User
Posts: 123
Joined: Fri Jun 06, 2008 5:50 am

Re: IIS8 & PHP install issue

Post by cahonis »

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.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: IIS8 & PHP install issue

Post by BSOD2600 »

cahonis wrote:Will the Windows all-in-one installer allow me to install the components to the D:\ drive or is there no options?
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: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.
Considered using a NTFS junction point or symbolic link to redirect the RRD folder to a different drive?
cahonis
Cacti User
Posts: 123
Joined: Fri Jun 06, 2008 5:50 am

Re: IIS8 & PHP install issue

Post by cahonis »

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.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: IIS8 & PHP install issue

Post by BSOD2600 »

cahonis wrote:Turns out that the doc_root path in the install instructions is incorrect.
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
Cacti User
Posts: 123
Joined: Fri Jun 06, 2008 5:50 am

Re: IIS8 & PHP install issue

Post by cahonis »

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.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: IIS8 & PHP install issue

Post by BSOD2600 »

Yea, just checked a test install and it has that too. Opps! thanks for actually following the documentation and finding the mistake ;)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest