How to get write permission for php scripts on a windows 2003 server.

Posted on 2004-11-12
Last Modified: 2010-04-19
I have a Windows 2003 server with php4.0 and IIS V.6 and I am trying to get write permissions for a php script and nothing I am doing is working.  I have tryed giving write permission to isuer for the folder, the whole site, and even the entire computer, but nothing works.  Anyone have any idea what I am doing wrong?
Question by:studeggle
    LVL 34

    Expert Comment

    Are you using PHP as an ISAPI or as a CGI?  Is the page authenticated or anonymous?

    Try giving write permissions to the IIS_WPG group on the target folder.

    Dave Dietz
    LVL 1

    Author Comment

    I am useing ISAPI php, I had tried giving permision to the group.  A friend found the solution for me.  I was only issueing the permission through the IIS manager, I also had to go into windows explorer and issue it dirrectly to the folder.  What a pain you'd think microsoft would make that happen automatically.
    LVL 1

    Author Comment

    I would like to reward you for your effort especially since I was delayed in getting back to you.  But I don't think its fair to give you a excellent/good grade when you didn't have the answer.  So pehaps you can give me a clue on another minor issue that has arrisen.  I have to use the php.exe file and the server set to execute scripts and exe to get php to work.  It would be better, and from what I know should work, to have the dll file for interpretation and execute scripts only as the setting.  Anby idea why I can't use the dll file instead of the exe file?
    LVL 34

    Accepted Solution

    If you're using the EXE you're *not* using PHP as an ISAPI - you're using it as a CGI application.

    In any case, what happens when you try using the DLL?  My guess is you end up with 404 results.

    If this is the case you will need to configure a Server Extension for the DLL and enable it.

    In Service Extensions create a new Extension, add the php.dll file to it and then set it to Allowed.

    Dave Dietz

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    I have never ceased to be amazed how many problems you can encounter on a fresh install of a Windows operating system.  This is certainly case in point& Unable to complete ANY MSI installation.  This means Windows Updates are failing and I can't …
    A quick step-by-step overview of installing and configuring Carbonite Server Backup.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now