in

Dotnetpanel Forums

Community support forums for DotNetPanel products

Running PHP on IIS dedicate Application Pool

Last post 11-18-2006 1:54 PM by wiredeyes. 10 replies.
Page 1 of 1 (11 items)
Sort Posts: Previous Next
  • 09-03-2006 11:48 AM

    • sathai
    • Top 50 Contributor
    • Joined on 07-01-2006
    • Thailand
    • Posts 132

    Running PHP on IIS dedicate Application Pool

    Ok I the pass month I was trying to run php on IIS dedicate Application Pool, the problem was the result show as Error 403. I finally found the solution, and I like to share my finding here with everyone.

    As you can see that when install php from the ZIP file. and you run your php extension in IIS DefualtAppPool it work fine. Because the DefualtAppPool run as Network Services. But our dedicate app pool will run as DNPWebUser member group, which doesn't has User Rights Assignment from Windows. The result error 403 when trying to execute the php script.

    The solution I found ( anyone please fine tune this)

    In Windows Server open Start>Programs>Administive Tools> Local Security Settings

    Then browse down to User Policies> User Rights Assignment

    Give rights to DNPWebUser by right-click on the rights then choose properties, click Add User or Group > choose Object Types > select only Group - click OK > Choose Advance > Choose Find Now > Select DNPWebUsers group > click OK > click OK > click OK again

    Do all this the the following User Rights Assignment.

    >Replace a process-level token

    >Adjust memory quotas for a process

    >Generate security audits

    >Log on as a service

    Restart IIS, I think you are all good to go. 

    Good Luck to you all. Smile

     

    James NW

    Web Hosting | Domain | Email | Whois | DNS Hosting | Transfer Domain

    Sathai Host is Thailand’s Only Licensed Web Hosting Company,
    Monitor & Guaranteed by the Government for your services.

  • 09-04-2006 1:10 AM In reply to

    • Rubal
    • Top 10 Contributor
    • Joined on 03-16-2006
    • India
    • Posts 500

    Re: Running PHP on IIS dedicate Application Pool

    And the same is applicable for Perl and Python. If you are running CGI under Application Pool under Web Anon Identity then you'll get 403 error. So work around is setting up Users right assignment.

     Thanks

    Rubal Jain // Email - Rubal @ Rubal [dot] Net

    Windows Server Setup, Configuration, Troubleshooting, Basic Security & Hardening
    DotNetPanel - Helm Control Panel Setup, Installation, Configuration, Troubleshooting
    Server setup includes installation of PHP, Perl, Python, ASP.Net Frameworks, SQL Express, MySQL etc and complete integration with control panel.

    Authorised DNP Reseller. Get 20% Discount on all DNP Licenses
    Authorised SmarterTools, Declude, SimpleDNS (JHSoft), Gene6 FTP, Helicon, Kayako, Icewarp Merak, MailEnable, Deerfield Reseller.
  • 09-10-2006 11:47 AM In reply to

    Re: Running PHP on IIS dedicate Application Pool

    hi there,
    If mange to run my php with the method to teach...thanks...

    but found out another issue....which is ASP 2.0 dedicate pool wont work....
    any idea how to solve it ?

    Malaysia 1st DotNetPanel Distributor !
    http://www.tcpaccess.com
    Premium Anti-Spam Solutions
  • 09-11-2006 8:06 AM In reply to

    Re: Running PHP on IIS dedicate Application Pool

    Hi Seok,

    In regard to ASP.NET 2.0 pool what error are you getting?

    Sincerely yours,
    Feodor Fitsner, Director
    DotNetPanel - professionally developed software for hosting businesses
  • 09-12-2006 12:10 PM In reply to

    Re: Running PHP on IIS dedicate Application Pool

    Dear Feodor,
    I use my awstat viewer page as an example.
    i change the pools to adedicate 2.0 pools and
    after fill in the domain, username and password and click the login, this error will be show at top of the page:
    System.InvalidOperationException: Unable to generate a temporary class (result=1). error CS2001: Source file 'C:\WINDOWS\TEMP\wq3khlao.0.cs' could not be found error CS2008: No inputs specified at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, CompilerParameters parameters, Evidence evidence) at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, CompilerParameters parameters, Assembly assembly, Hashtable assemblies) at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence) at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Type type) at System.Web.Services.Protocols.SoapClientType..ctor(Type type) at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor() at Microsoft.Web.Services3.WebServicesClientProtocol..ctor() at DotNetPark.DotNetPanel.EnterpriseServer.esAuthentication..ctor() at DotNetPark.AWStats.Viewer.DotNetPanelAuthenticationProvider.AuthenticateUser(String domain, String username, String password)

    and in the login form, above the domain name field:
    Advanced statistics is not enabled for the specified domain. Login to control panel, open 'My Resources -> Advanced Statistics' page and add a new statistics site.


    after change to the ASP.NET v2.0 pools, everything will be fine.

    Malaysia 1st DotNetPanel Distributor !
    http://www.tcpaccess.com
    Premium Anti-Spam Solutions
  • 09-12-2006 12:47 PM In reply to

    Re: Running PHP on IIS dedicate Application Pool

    Now I see. Just give "IIS_WPG" group "Write" permissions on "'C:\WINDOWS\TEMP" folder.

    It should do the trick.

    Sincerely yours,
    Feodor Fitsner, Director
    DotNetPanel - professionally developed software for hosting businesses
  • 09-13-2006 1:57 AM In reply to

    Re: Running PHP on IIS dedicate Application Pool

    Dear Feodor,
    Thanks...all my dedicate pool are working fine now!
    DNP Rocks !
    Malaysia 1st DotNetPanel Distributor !
    http://www.tcpaccess.com
    Premium Anti-Spam Solutions
  • 09-13-2006 2:13 AM In reply to

    Re: Running PHP on IIS dedicate Application Pool

    Great news, thanks for the update! Smile
    Sincerely yours,
    Feodor Fitsner, Director
    DotNetPanel - professionally developed software for hosting businesses
  • 11-03-2006 3:42 PM In reply to

    • pinklloyd
    • Top 25 Contributor
    • Joined on 02-11-2006
    • Charlotte, NC USA
    • Posts 324

    Re: Running PHP on IIS dedicate Application Pool

    scngan:
    Dear Feodor,
    Thanks...all my dedicate pool are working fine now!
    DNP Rocks !

     

    Just wondering what kind of system resources are those dedicated pools taking? I mean size of application vs. number of threads, do you know?

    Building Virtual worlds
    OpenSIM host and Architect,
    Reseller based VR Virtual Reality! ;)
    Virtual storefronts - Merchant account reseller - Microsoft/Dell VAR. ISV,
  • 11-04-2006 10:29 AM In reply to

    Re: Running PHP on IIS dedicate Application Pool

    Definitely each application pool has some initial size (I think you can find the answer on MSDN), but its actual size depends on the application(s) needs working in the pool.
    Sincerely yours,
    Feodor Fitsner, Director
    DotNetPanel - professionally developed software for hosting businesses
  • 11-18-2006 1:54 PM In reply to

    • wiredeyes
    • Top 10 Contributor
    • Joined on 10-22-2006
    • Cagliari, Sardegna, Italy
    • Posts 350

    Re: Running PHP on IIS dedicate Application Pool

    More than likely a newbie question here but I'm wondering why you would operate PHP in a separate application pool? I thought application pools were for separating web sites into independent processes so that one website wouldn't take down another, If you limit PHP to one pool wont websites in other pools not have access to it?.

    Obviously I'm missing something, maybe someone could point me to a "plain English" tutorial on how best to organize application pools in IIS in a web hosting environment. Ive read some people separate all websites into there own application pools (I would have thought this would be very resource hungry) is this the best thing to do?....

    Sam M

    50% off all hosting
Page 1 of 1 (11 items)
Powered by Community Server (Commercial Edition), by Telligent Systems