PHP IIS Windows Server 2003 - Help needed.
-
At my wits end with PHP5 on IIS6 Windows Server 2003. (Two days in - in desperate need of help and guidance) I am new to php and am trying to setup it up on a Windows Server 2003 machine. I am doing so on IIS 6 as opposed to Apache as I have read that ISS and Apache sometimes conflict and I would like to avoid messing with any other sites on this machine. Firstly here is the error: When I go to the following page I am told You are not authorized to view this page. That is following 3 prompts to enter a username and password. (On a side note even after entering a valid username/password I am re-prompted a further 2 times) Here is what I have done so far and some other information that maybe of use in determining the cause: 1 - This html page in the same location is fine. 2 - This asp page also in the same page is fine. 3 - I installed PHP following this simple http://www.youtube.com/watch?v=17aAuMVippQ 4 - I used the ZIP package and not the installer and did everything according to the instructions but am still having the permissions issue. 5 - I have added IUSER_XXXXX and give them full control of the appropriate folder. 6 - I have added php as a Web Service Extension in IIS. 7 - In my ISS site configuration I have specified that .php files be handled by c:\php5\php5isapi.dll 8 - I have not made any changes to the contents of php.ini-recommended which I renamed to php.ini and moved to the windows dir, I have also copied php5ts.dll to windows system32 I have googled and googled and googled to no avail - they mainly suggest giving permission to IUSER_**** on the directory, which I have done, still no dice. I am absolutely at my wits end with this and , I am a lone techie in my organisation - Can anyone here help me? Thanks.
-
Answer:
Just a guess..Temporarily elevate"IUSER_XXXXX" admin if that works then you at least have a place to start trouble shooting. Remember not to leave IUser as admin.
therubettes at Ask.Metafilter.Com Visit the source
Other answers
Try giving the file and directory read write - full access to (from memory) "Network User" then iisreset and see how you go Tried it mattoxic, no good I am afraid.
therubettes
[removed links to server at poster's request]
jessamyn
Thanks - will try it later and hope for the best.
therubettes
Make sure your PHP directory is in the Windows PATH (Right-click My Computer -> Properties -> Advanced -> Environment Variables -> System variables -> "PATH"). Just add the PHP directory to the end of whatever's there (be sure to separate different paths with semicolons). Did this Path changes sometimes require a reboot for whatever reason.
damn dirty ape
Ok a few things which may or may not help. 1 - Read that thread and tried the permissions suggestion. 2 - Tried the edit to php.ini which was suggested (I edited the php.ini in the c:\windows dir by the way.) 3 - While I am still allowing Anonymous Assess in the Authentication Methods dialog in IIS I un-checked Integrated Windows Security and I am no longer prompted for a username/password, just goes straight to the 'You are not authorized' page which I guess is progress. 4 - Another thing to mention is that in IIS .php files are assigned to php5isapi.dll and not php.exe, php-cgi.exe or php-win.exe from what I read specifying the dll is the most secure method.
therubettes
Wheat I am going to look at the thread you suggested now and see if it does! From first look it is kinda familiar but I have looked at so many forums at this point! Btw thanks to everone who has helped so far, I appreciate it.
therubettes
Since PHP runs so crappily on IIS, have you considered getting a separate box so you can run a full LAMP stack and take IIS + Windows out of the equation? Or, barring that, some sort of virtualization solution so you ca run the two side-by-side on the same box? I'm not saying this as a "Windoze sux dude!!!" thing. I'm suggesting it purely as a pragmatic solution. Thanks for the suggestion, another box is probably not possible, in terms of the virtualization solution I suppose it is something that could work, but right now I am still hoping to solve this problem. And I appreciate you are not saying "Windoze sux dude!!!" but you may be thinking it and I am starting to think it too!!
therubettes
Is http://forums.iis.net/t/1148718.aspx any help?
wheat
Since PHP runs so crappily on IIS, have you considered getting a separate box so you can run a full LAMP stack and take IIS + Windows out of the equation? Or, barring that, some sort of virtualization solution so you ca run the two side-by-side on the same box? I'm not saying this as a "Windoze sux dude!!!" thing. I'm suggesting it purely as a pragmatic solution.
wheat
Related Q & A:
- How to upload a file to another server using cURL and PHP?Best solution by Stack Overflow
- How do I set up windows 03 server as a server?Best solution by Yahoo! Answers
- How to redirect 301 for windows server?Best solution by Webmasters
- Rockford Fosgate speaker help needed?Best solution by Yahoo! Answers
- MSN/ Windows live messenger help.Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.