Categories
Welcome Center
Education & Development
Discussions
Certification Preparation
Recent Posts
Groups
Free Resources
Ebooks
Free Workshops
Trending Certifications Infographic
Infosec Training
IT & Security Training
Live Boot Camps
Security Awareness Training
About Infosec Institute
Home
Discussions
Off Topic
PHP on IIS 7.5 problem
JasminLandry
So I've been given the task of migrating all web applications on Windows 2003 servers onto one single Windows 2008 server. I need to migrate a PHP based application, IPPlan to be specific, some of you might know what it is. So I installed PHP on the server and created the application pool. I am able to open the default index.php page on the default web site but nothing works on the application within the default web site. I'm a bit of a beginner with IIS so I would need help from you guys here. I asked my colleagues and they don't know what the problem is (we are only 2 SysAdmins and 1 DBA).
Find more posts tagged with
Save $250 on 2025 certification boot camps from Infosec!
Book now with code EOY2025
Button
Comments
NotHackingYou
Did you add it to the correct application pool or convert it to an app? Depending on how your application is designed you may need to configure it differently. Right click on your app's root or the default web site at choose 'convert to application'.
IIS_IUSRS have access to the directory? Where is the code stored in the file system?
JasminLandry
Yes I have converted to an app. The code is in a folder on the C drive and IIS_IUSRS does have access to the folder and files.
NotHackingYou
Is the code in the root of C? I would recommend moving it to C:\inetpub\wwwroot\yourapp. When you say it doesn't work, do you get an error message? Is the app pool started? Did you bind the correct IP and port?
JasminLandry
Alright, I moved the code to C:\inetpub\wwwroot\app. IIS_IUSRS has Read access, does it need Write access? I get a 500 Internal server error
The App Pool is running and I did bind the correct IP and port. It's only the PHP pages that don't work from that application, all HTML pages do work.
Capture.jpg
NotHackingYou
Your application may require write access. 500 is an application-level error. Does your app write to any log or the event log?
Also, right click on your application pool and go to advanced settings. Then compare these with the same settings from your other server. The UI will be different because your other server is a different version of IIS. I'm not super familiar with PHP on IIS but I suspect you will find a disparity in your settings. Maybe you need to enable 32 bit applications?
JasminLandry
Well I finally got this fixed. I started from scratch, created a new server, installed PHP again, configured IIS and it worked. There were a couple of ODBC settings that I had change to get it working but I couldn't even get to that point last time. I'm not sure what I missed last time but at least I got it working now.
NotHackingYou
Glad you got it running!
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of
INFOSEC Boot Camps
$250
OFF
Use code
EOY2025
to receive $250 off your 2025 certification boot camp!
BROWSE BOOT CAMPS