1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help setting up Apache Server for Windows

Discussion in 'PHP & Perl' started by theSheWolf, Aug 30, 2012.

  1. theSheWolf

    theSheWolf Newbie

    Joined:
    Aug 30, 2012
    Messages:
    5
    Likes Received:
    0
    Occupation:
    full time skid
    Location:
    the world wide web
    Hey, so I've setup apache and php on ubuntu before but I didn't like ubuntu and i got rid of it. I'm currently running windows 7. I've been trying to setup apache to run on windows however things aren't wrking out. At first, I was able to save files to htdocs but then when I started apache again, it said that it could not find the httpd.conf file. However, the httpd.conf file was right there and perfectly fine. So, I went back to the installer and opt it to repair. After it repair, the httpd.conf file problem was solved however, I now cannot save files to htdocs. If i save a file called hi.php and in my browser type 'localhost/hi.php' I'll get a chrome cannot find this page or whatever. However, the apache server does work as i do get the default "it works" page when just going to localhost. The link to htdocs is perfectly fine so I don't know why this is happening.

    Also, strangely enough, firefox and opera don't seem to be able to run apache at all...when i type localhost into it, it doesn't even give me an "it works". It just tells me that they cannot find the page. So, I would really appreciate some help. Thanks.
     
  2. SaleC

    SaleC Newbie

    Joined:
    Aug 23, 2011
    Messages:
    40
    Likes Received:
    347
    localhost is just an alias for loopback 127.0.0.1.Make sure you have added that in hosts file. Also check if your port 80 is free. Why dont you save yourself a troubles and install something like wamp?
    Still i dont get it how come one browser "see" http://loclahost and others not.Check proxy settings.
    Sorry i coldnt be of more help :)
     
  3. qrazy

    qrazy Senior Member

    Joined:
    Mar 19, 2012
    Messages:
    1,111
    Likes Received:
    1,712
    Location:
    Banana Republic
    You may have to use http://localhost:8080/filename.php, This is because the default config file uses 8080 as the port number... It's better if you install apache & php using xampp. It'll take care of the config file issues by itself.
     
    Last edited: Aug 30, 2012
  4. theSheWolf

    theSheWolf Newbie

    Joined:
    Aug 30, 2012
    Messages:
    5
    Likes Received:
    0
    Occupation:
    full time skid
    Location:
    the world wide web
    I'm still getting this error that says google chrome cannot connect to localhost/index/
    what is wamp? Can i practice mysql and php on that? I might be interested in that.
     
  5. roamer

    roamer Power Member

    Joined:
    Dec 2, 2008
    Messages:
    500
    Likes Received:
    479
    Occupation:
    Gfx designer, vfx and mgfx
    Location:
    plɹoʍ ǝɥʇ punoɹɐ ƃuıɯɐoɹ
    WAMP stack= Windows Apache MySQL PHP

    Yes, you can use a local installation to practice and test things out. There's a commercial option as well, called 'WAMP Developer Pro'. It's kinda nice, because it takes care of vhosts and whatnot from a central console.
     
    Last edited: Aug 30, 2012
  6. thejake

    thejake Jr. VIP Jr. VIP Premium Member

    Joined:
    Nov 13, 2009
    Messages:
    685
    Likes Received:
    828
    www.ampps.com would probably make your life easier, it's like a desktop cpanel with the softalicious installer built-in (and free)
     
  7. V

    V Elite Member

    Joined:
    May 18, 2012
    Messages:
    2,113
    Likes Received:
    2,543
    Occupation:
    Student
    Location:
    /tmp
    I love using XAMPP on my windows 7 machine for local development purposes and it's working fine for me. :) you can give it a try m8
     
  8. SonicSam

    SonicSam Registered Member

    Joined:
    Aug 21, 2012
    Messages:
    57
    Likes Received:
    5
    Location:
    X
    Agreeing with everyone here, any sort of WAMP bundle would be better than trying to do this manually. USBWebServer is portable and what I use for app development on the go (some of the other ones feel bloated, personally).
     
  9. loki_

    loki_ Registered Member

    Joined:
    May 20, 2012
    Messages:
    63
    Likes Received:
    8
    Location:
    #!/bin/bash/
    xampp, wamp or any of that... or ditch the os'es living in the 1980's(vindouz, macoops) and deal with linux....