70470 Posts in 6879 Topics - by 687 Members - Latest Member: Laricwashere

Author Topic: IIS Permissions  (Read 4241 times)

Offline .:F3ar0n:.

  • Staff
  • Godlike Gamer
  • *
  • Posts: 2093
  • Karma: 0
  • https://www.youtube.com/watch?v=uIOqrfeC1Q4#t=20
  • Steam ID: H4xz0rsaurusRX
  • XBox Gamer Tag: F3ar0n8
IIS Permissions
« on: July 04, 2008, 01:38:51 PM »
If anyone would happen to have a nice bookmark page regarding IIS webservers...could you please help me out. I am currently attempting to get a web server configured. I installed PHP and Mysql (which I'm also having issues getting php to recognize mysql...yes I uncommented the php_mysql in php.ini and I also moved the php_mysql to sys32 dir (even though I set the ext to C:\php\ext in my ini file as well). I read about setting system variables to the php dir but am not sure how to do so

Anywho...Everytime I attempt to access the web server though localhost I get a auth required. Now I know this should be Iuser_mycomopname but I have read permisions enabled. I also have the anonymous login allowed and set the login to the iuser account like in default. I just dont understand where I'm going wrong. I've uninstalled and reinstalled IIS services 3 times. I dont get why I'm having issues but It something to do with permissions. I ran the diagnostic amoung other things and now am working towards my 2nd day of troubleshooting this biatch

So any links you may come across regarding IIS permissions and or mysql and php in server 03...please let me know. Dont bother telling me to google it because I've been through the first 10 pages of hits and everything leads me to the same location.

Offline _!Rathe!_

  • Master Sergeant Shooter Sergeant Person
  • Godlike Gamer
  • *
  • Posts: 2296
  • Karma: 0
  • XFire: rathewin2k
Re: IIS Permissions
« Reply #1 on: July 04, 2008, 02:12:04 PM »
Been a while since I did this but I did setup a server with IIS, PHP and MySQL.  The only hard part I found was getting the PHP to load in the IIS.  One thing that I found that worked really well is to have a script with
Code: [Select]
<?
Phpinfo();
?>

Going through that will tell you a lot about your configuration and where things are pointing. 

How about this page for the IIS user accounts http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/3648346f-e4f5-474b-86c7-5a86e85fa1ff.mspx?mfr=true
and it is IUSR  not IUSER.  Hope that isn't your error.
Never, but never question the engineers judgement.

Offline .:F3ar0n:.

  • Staff
  • Godlike Gamer
  • *
  • Posts: 2093
  • Karma: 0
  • https://www.youtube.com/watch?v=uIOqrfeC1Q4#t=20
  • Steam ID: H4xz0rsaurusRX
  • XBox Gamer Tag: F3ar0n8
Re: IIS Permissions
« Reply #2 on: July 04, 2008, 02:18:09 PM »
OH no its Iusr...i just did that unconsciously...

Here is the very very interesting thing about this though. If I run a normal html (i just slapped a page together 2 sec ago) i dont have any issues with accessing it. Like you said, it's only when I run my phpinfo test (aka a page that has PHP in it) that I get the access denied. Now my original thought would be that it's attempting to access my isapi.dll (for thats what's executing my php right??) which doesnt have the iusr permission and thats why I was having issues. However I changed the dir temporary  to grant those permissions yet I'm still having issues.

IIS just doesnt seem to like PHP but I dont know any other way of doing it unless I guess I would run apachi and scrap IIS alltogether


Offline _!Rathe!_

  • Master Sergeant Shooter Sergeant Person
  • Godlike Gamer
  • *
  • Posts: 2296
  • Karma: 0
  • XFire: rathewin2k
Re: IIS Permissions
« Reply #3 on: July 04, 2008, 02:20:31 PM »
Does the IUSR account have full permission to the php directory?? 
Never, but never question the engineers judgement.

Offline .:F3ar0n:.

  • Staff
  • Godlike Gamer
  • *
  • Posts: 2093
  • Karma: 0
  • https://www.youtube.com/watch?v=uIOqrfeC1Q4#t=20
  • Steam ID: H4xz0rsaurusRX
  • XBox Gamer Tag: F3ar0n8
Re: IIS Permissions
« Reply #4 on: July 04, 2008, 02:31:22 PM »
for the time being it has read/write...I'm just throwing anything I can think of to why I can't access php files

Me = MASSIVE FRUSTRATION ATM
« Last Edit: July 04, 2008, 02:34:28 PM by F3ar0n »

Offline .:F3ar0n:.

  • Staff
  • Godlike Gamer
  • *
  • Posts: 2093
  • Karma: 0
  • https://www.youtube.com/watch?v=uIOqrfeC1Q4#t=20
  • Steam ID: H4xz0rsaurusRX
  • XBox Gamer Tag: F3ar0n8
Re: IIS Permissions
« Reply #5 on: July 04, 2008, 03:09:59 PM »
Ok..i'm at my whits ends..I gotta take a break before I punch something. Just does not make any sense whatsoever

Offline Agent4054

  • 3D Modeler
  • Godlike Gamer
  • *
  • Posts: 6471
  • Karma: 0
  • Jerky is love. Jerky is life.
  • Steam ID: agent4054
  • XFire: Agent4054
Re: IIS Permissions
« Reply #6 on: July 05, 2008, 12:26:47 AM »
Ok..i'm at my whits ends..I gotta take a break before I punch something. Just does not make any sense whatsoever

Hey, you sound almost exactly like I do when I get mad at my code! WOOT

Offline .:F3ar0n:.

  • Staff
  • Godlike Gamer
  • *
  • Posts: 2093
  • Karma: 0
  • https://www.youtube.com/watch?v=uIOqrfeC1Q4#t=20
  • Steam ID: H4xz0rsaurusRX
  • XBox Gamer Tag: F3ar0n8
Re: IIS Permissions
« Reply #7 on: July 05, 2008, 12:00:36 PM »
Well do u storm off...down 3 shots and come back to try to make more sense of things buzzed. I often feel "hey! if it doesn't make sense sober...it def will when I cant feel my fingers and toes!" LOL J/K


Offline Agent4054

  • 3D Modeler
  • Godlike Gamer
  • *
  • Posts: 6471
  • Karma: 0
  • Jerky is love. Jerky is life.
  • Steam ID: agent4054
  • XFire: Agent4054
Re: IIS Permissions
« Reply #8 on: July 05, 2008, 01:07:01 PM »
been there too

Offline sully!

  • Administrator
  • Godlike Gamer
  • *
  • Posts: 4997
  • Karma: 16
  • If the future is now, where's my jetpack?
  • Steam ID: sully213
  • XBox Gamer Tag: FITESully
Re: IIS Permissions
« Reply #9 on: July 05, 2008, 08:01:19 PM »
I've never put PHP on IIS, but I think you may have to be granting execute permissions to your IUSR account so the PHP pages can be interpreted and rendered. Just reading the file will not let the PHP interpreter actually do anything to the outputted page.

Also, for more specific PHP/IIS info, this might be a good place to check: http://us3.php.net/manual/en/install.windows.iis.php
Please just walk away. I don't want to have to stand here and say something so awesome that I'll have to remember it the rest of the day. Thank you!

Offline The Shoctor

  • Administrator
  • Godlike Gamer
  • *
  • Posts: 5803
  • Karma: 17
  • Steam ID: shadohawk@shadoworks.net
  • XBox Gamer Tag: TheShoctor
  • XFire: shadoworks
Re: IIS Permissions
« Reply #10 on: July 05, 2008, 09:06:56 PM »
I am just wondering why IIS? Any specific reason?
XAMPP FTW http://portableapps.com/apps/development/xampp

Support LAN Play!
ლ(ಠ益ಠლ) "I have more than 20 friends EA!" --FITES.NET
(╯°□°)╯︵ ┻━┻
"Close enough." --UGC League

Offline _!Rathe!_

  • Master Sergeant Shooter Sergeant Person
  • Godlike Gamer
  • *
  • Posts: 2296
  • Karma: 0
  • XFire: rathewin2k
Re: IIS Permissions
« Reply #11 on: July 05, 2008, 10:22:56 PM »
for a possible side job, I put together a test server of Linux, Apache, MySQL, and PHP.  Using Ubuntu and an old clunker PC it took me literally 3 hours to have a fully functional server up and running.  And I wasn't working on it non-stop.   
Never, but never question the engineers judgement.

Offline sully!

  • Administrator
  • Godlike Gamer
  • *
  • Posts: 4997
  • Karma: 16
  • If the future is now, where's my jetpack?
  • Steam ID: sully213
  • XBox Gamer Tag: FITESully
Re: IIS Permissions
« Reply #12 on: July 06, 2008, 10:06:04 AM »
And as the Doctor mentioned above, XAMPP let's you have a fully functioning Apache/MySQL/PHP/FileZilla setup in just minutes. I keep a copy of the above on my USB stick just in case I need a server in a jiffy (and, yes, I have used it before for just that occasion).
Please just walk away. I don't want to have to stand here and say something so awesome that I'll have to remember it the rest of the day. Thank you!

Offline The Nstuff

  • Staff
  • Uber Gamer
  • *
  • Posts: 1504
  • Karma: 0
Re: IIS Permissions
« Reply #13 on: July 06, 2008, 05:11:15 PM »
I haven't had any direct experience with setting up php in iis, but recently, i did setup some authentication and reverse proxy ISAPI filters in a bunch of iis-based webservers.  Are you seeing anything juicy in the iis logs or the Windows event log viewer? 

Also, just googling around:
http://www.peterguy.com/php/install_IIS6.html
http://www.themssforum.com/IIS/Help-with-341209/
http://www.usenet-forums.com/php-general/55280-re-php-shell_exec-batch-files-iis-windows.html
<avatar made by Agent>

Offline The Shoctor

  • Administrator
  • Godlike Gamer
  • *
  • Posts: 5803
  • Karma: 17
  • Steam ID: shadohawk@shadoworks.net
  • XBox Gamer Tag: TheShoctor
  • XFire: shadoworks
Re: IIS Permissions
« Reply #14 on: July 06, 2008, 05:54:46 PM »
IIS, over-complicates something that in reality is fairly simple.

Support LAN Play!
ლ(ಠ益ಠლ) "I have more than 20 friends EA!" --FITES.NET
(╯°□°)╯︵ ┻━┻
"Close enough." --UGC League