Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 15 of 15

Thread: PHP server

  1. #1
    Regular Coder
    Join Date
    Nov 2002
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP server

    i installed the phpTriad server, and i already have ASP server installed in my computer, when i write http://localhost in my browser, the ASP server work only.
    how can i make the PHP server active?

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    You can't run 2 servers at the same time. You will have to shut IIS down before you run Apache.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    Regular Coder
    Join Date
    Nov 2002
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you Spookster very much for your concern
    but how can i shut the IIS down

  • #4
    Registered User
    Join Date
    Feb 2003
    Location
    Berkshire, UK
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts
    not tried it myself, would i be wrong in thinking two servers could easily run side by side if they are hosting their content on different ports? (Default 80)

    i can't see any reason why not... but i could be wrong

  • #5
    Regular Coder
    Join Date
    Nov 2002
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i didn't understand you thox, can you explain more please?

  • #6
    Registered User
    Join Date
    Feb 2003
    Location
    Berkshire, UK
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can't run 2 servers at the same time. You will have to shut IIS down before you run Apache.
    i believe that if Apache is set up to run on one port (e.g. 81) and IIS is set up to run on another (e.g. default: 80) then they can both run side by side and easily accessed.

    if a site is running on port 81 then it's URL would be http://site.com:81

    i'm not really sure about your question specifically, i was commenting on what Spookster said.

  • #7
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Yes true but by default they are both running on port 80. If you set apache to use another port then that will work but that is just a pain to do then having to type in the port number each time.

    Much easier to just shut one down while using the other.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #8
    Regular Coder
    Join Date
    Nov 2002
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok,
    now the question is: how to shut the IIS down?
    how to make the apache work on another port?
    Last edited by Aymen++; 02-19-2003 at 05:51 PM.

  • #9
    Registered User
    Join Date
    Feb 2003
    Location
    Berkshire, UK
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Apache port config

    Apache has a file with some bizarre name like httpd.conf with all the configuration settings. On there you will find the port number it hosts on (search the file for "80" and i'm sure it won't be hard to miss). It will probably even give you a short line identifying what changing that setting does above / below it.

  • #10
    Regular Coder
    Join Date
    Nov 2002
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok, but how can i shut the IIS down...

  • #11
    New Coder
    Join Date
    Sep 2002
    Location
    Lincoln, UK
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    To Shut down IIS you have to stop the IIS Sevice which is done through the services panel in Administrative tools menu in control panel.
    Beware The Dark Mechanical Bird

  • #12
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Spookster
    If you set apache to use another port then that will work but that is just a pain to do then having to type in the port number each time.
    What - more of a pain to click a boookmark to "locahost:81" than it is to shutdown one server and startup up another one ..


    See http://www.codingforums.com/showthre...threadid=12960 for info on configuring Apache to listen to different / multiple ports.
    Last edited by brothercake; 02-20-2003 at 05:06 PM.

  • #13
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Originally posted by brothercake
    What - more of a pain to click a boookmark to "locahost:81" than it is to shutdown one server and startup up another one ..


    Yes.

    1. Having two servers running at same time can bog down your system.

    2. When you allow clients to preview sites residing on your own system using different ports just gets confusing for everybody.

    3. It doesn't take but a click to shut a server down or start it up.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #14
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Spookster
    Yes ...
    That's fair - I was thinking strictly in terms of local development where I sometimes need to run two server platforms and view them both at the same time.

  • #15
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Originally posted by brothercake
    That's fair - I was thinking strictly in terms of local development where I sometimes need to run two server platforms and view them both at the same time.
    I guess you could say it would be more a decision based off your personal preference and current hardware configurations. What seems logical to one person will not always seem logical to the next person. Take the language Prolog for example, obviously the person(s) who developed that thought the syntax seemed logical at the time....of course nobody else in their right mind would think so though.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

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