Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2004
    Location
    California
    Posts
    8,725
    Tokens
    3,789
    Habbo
    HotelUser

    Latest Awards:

    Default Using Exec gives me "502 Bad Gateway"

    OS: Windows Server 2003
    Server: IIS 5.2
    PHP Code:
    <?php exec("reboot.bat"); ?>
    gives me:
    Bad Gateway Web server received an invalid response while acting as a gateway or proxy server.
    If anyone could shed some light on fixing this, I'd appreciate it!
    I'm not crazy, ask my toaster.

  2. #2
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    I'm guessing reboot.bat reboots the server from what the name implies?

    If so, does the IIS user have the correct permissions to actually handle calls to the OS?

  3. #3
    Join Date
    Jul 2004
    Location
    California
    Posts
    8,725
    Tokens
    3,789
    Habbo
    HotelUser

    Latest Awards:

    Default

    no, the reboot.bat file restarts a shoutcast server. I've given CMD.exe the correct permissions, yes.
    I'm not crazy, ask my toaster.

  4. #4
    Join Date
    Apr 2006
    Location
    Leamington Spa
    Posts
    1,375
    Tokens
    72

    Latest Awards:

    Default

    It seems off topic and probably is; but is Windows Server any good?
    Thinking about making a server to host my music on so I can access it wherever... And I have a copy my dad never used and a spare XP PC with 1gb RAM.
    Last edited by lolwut; 28-09-2008 at 07:46 PM.
    i've been here for over 8 years and i don't know why

  5. #5
    Join Date
    Jul 2004
    Location
    California
    Posts
    8,725
    Tokens
    3,789
    Habbo
    HotelUser

    Latest Awards:

    Default

    Quote Originally Posted by lolwut View Post
    It seems off topic and probably is; but is Windows Server any good?
    Thinking about making a server to host my music on so I can access it wherever... And I have a copy my dad never used and a spare XP PC with 1gb RAM.
    If it's pro you can install IIS onto it as a Windows component, or just use Xampp, it's decent enough. Though with IIS/Apache on XP I wouldn't go looking for any decent control panels, as there's not much of a selection.
    I'm not crazy, ask my toaster.

  6. #6
    Join Date
    Jul 2004
    Location
    California
    Posts
    8,725
    Tokens
    3,789
    Habbo
    HotelUser

    Latest Awards:

    Default

    so...can anybody shed some light on this problem?
    I'm not crazy, ask my toaster.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •