PHP on IIS 7.5 problem

JasminLandryJasminLandry Member Posts: 601 ■■■□□□□□□□
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).

Comments

  • NotHackingYouNotHackingYou Member Posts: 1,460 ■■■■■■■■□□
    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?
    When you go the extra mile, there's no traffic.
  • JasminLandryJasminLandry Member Posts: 601 ■■■□□□□□□□
    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.
  • NotHackingYouNotHackingYou Member Posts: 1,460 ■■■■■■■■□□
    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?
    When you go the extra mile, there's no traffic.
  • JasminLandryJasminLandry Member Posts: 601 ■■■□□□□□□□
    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.
  • NotHackingYouNotHackingYou Member Posts: 1,460 ■■■■■■■■□□
    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?
    When you go the extra mile, there's no traffic.
  • JasminLandryJasminLandry Member Posts: 601 ■■■□□□□□□□
    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. :D
  • NotHackingYouNotHackingYou Member Posts: 1,460 ■■■■■■■■□□
    Glad you got it running!
    When you go the extra mile, there's no traffic.
Sign In or Register to comment.