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: apache php?

  1. #1
    Regular Coder
    Join Date
    Apr 2007
    Posts
    141
    Thanks
    3
    Thanked 1 Time in 1 Post

    apache php?

    this problem is just ridiculous. I have done this before... and it worked fine.. but now i am confused

    I had made sure to open port 80 from my router and my firewall.
    and I also had changed httpd.conf ( ServerName myip:80)

    and it still did not go online..
    what's wrong..
    I Just want to make it go online


    hope this php section can help me... thanks guys



    note. I am using xampp ... which I dont think have anything to do... cause i have ever done this before. Thanks.

  • #2
    Regular Coder dniwebdesign's Avatar
    Join Date
    Dec 2003
    Location
    Carrot River, Saskatchewan
    Posts
    845
    Thanks
    15
    Thanked 10 Times in 10 Posts
    This isn't really a php question though, so thus, you just posted this in the wrong topic which is against the forum rules (as I recall). But since we're here... you do have Apache started, correct?
    Dawson Irvine
    CEO - DNI Web Design
    http://www.dniwebdesign.com

  • #3
    Regular Coder
    Join Date
    Apr 2007
    Posts
    141
    Thanks
    3
    Thanked 1 Time in 1 Post
    yup . i have my apache started.. I have no clue whats wrong.. I have set my http.conf file.. router and firewall... what else ?

    I run it on port 80 and has made virtual host on port 80 to my computer network ip.. then I put my real ip into my browser.. and it didnt go online...><'

    sory.. i know this is kinda wrong topic . but. I already post on server side development issue... i didnt get much attention there..

    I know.. here php has to do with server configuration.. so I think this might be a good place to ask .

    sory. but thanks for replying

  • #4
    ess
    ess is offline
    Regular Coder
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    866
    Thanks
    7
    Thanked 30 Times in 29 Posts
    Firs of all...I would check that port 80 is open to the outside world.
    Second, if you are using a router; verify that when you type your local ip address in your browser, you are able to see the home page of your local website.

    to verify whether port 80 is open to the outside world, you will need to use a "Port Checker" or "Online Port Scanner" such as the following.
    http://www.t1shopper.com/tools/port-scanner/

    Why not use No-IP?
    http://www.no-ip.com/

    It is free to sign up, and you are allowed up to 5 free domains.

    hope this helps
    Cheers
    ~E

  • #5
    Regular Coder
    Join Date
    Apr 2007
    Posts
    141
    Thanks
    3
    Thanked 1 Time in 1 Post
    @ess
    thanks ess
    71.109.51.128 is responding on port 80 (http).
    yup, i think port 80 is responding?.....that means my http.conf is the culprit?

    no-ip huh? oohh cant i not just put my ip 71.109.51.128 into my browser .and check if my 'localhost' can be displayed ? if it is, then there should not be any problem? cmiiw




    @previous reply
    my firewall and other stuff settings are just fine....
    this , I assume, is the the thing that make it could not go online?

    what does this mean though ?
    screen shot
    http://img148.imageshack.us/img148/6317/erroroi1.jpg
    Last edited by likon; 11-12-2007 at 08:05 PM.

  • #6
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,044
    Thanks
    2
    Thanked 316 Times in 308 Posts
    It is not enough to just have port 80 open, you must forward traffic on port 80 to the internal network ip address of the computer you want to receive that traffic.

    Your router should have a "port forwarding" section to set this up. You should also assign a fixed internal network ip address for that computer instead of using DHCP to assign it so that there is no chance of it randomly changing and making the port forwarding invalid.
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

  • #7
    Banned
    Join Date
    Apr 2007
    Posts
    428
    Thanks
    29
    Thanked 5 Times in 5 Posts
    true, like CFMaBiSmAd said.

    also, you must know that you can't reach your localhost instalation from your computer's internet ip adress! if you want to test is your instalation availiable online go to one of proxy servers availiable and type your current internet IP, or ask a friend to test it from some other computer.

    for more information about port forwarding visit www.portforward.com

  • #8
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    Quote Originally Posted by matak View Post
    also, you must know that you can't reach your localhost instalation from your computer's internet ip adress!
    Yes, you can. The only reason you would not be able to is if you had a router, and you didn't forward the port. If that were the case then a proxy isn't going to be able to view it either.

  • #9
    Banned
    Join Date
    Apr 2007
    Posts
    428
    Thanks
    29
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by Inigoesdr View Post
    Yes, you can. The only reason you would not be able to is if you had a router, and you didn't forward the port. If that were the case then a proxy isn't going to be able to view it either.
    Quote Originally Posted by likon
    I had made sure to open port 80 from my router and my firewall.
    and I also had changed httpd.conf ( ServerName myip:80)
    he has router. and no you can't view your localhost instalation from your internet IP on your computer, even if you forward the port.
    Last edited by matak; 11-13-2007 at 02:08 AM.

  • #10
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    Quote Originally Posted by matak View Post
    he has router.
    I saw that, but he also said that it was forwarded.
    Quote Originally Posted by matak View Post
    and no you can't view your localhost instalation from your internet IP on your computer, even if you forward the port.
    Interesting. I just did it, but ok, if you say so.

  • #11
    Regular Coder
    Join Date
    Apr 2007
    Posts
    141
    Thanks
    3
    Thanked 1 Time in 1 Post
    hey what the heck... THIS IS TOTALLY RIDICULOUS....

    this morning, my localhost did not go online....
    I was trying to set up things (ip forwarding, http.conf, restarting server, setting internal network ip)

    and it still did not work out..

    and tonight.... at 8:01 PM . IT WORKED.... what the hell....... hey THANKS GUYS

    ridiculous dude.... .I am gonna 'thank' you guys all....

  • #12
    Banned
    Join Date
    Apr 2007
    Posts
    428
    Thanks
    29
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by Inigoesdr View Post
    Interesting. I just did it, but ok, if you say so.
    i also tried it and failed. but if you say so...

  • #13
    Regular Coder
    Join Date
    Apr 2007
    Posts
    141
    Thanks
    3
    Thanked 1 Time in 1 Post
    hey. you guys are still debating eh?

  • #14
    Regular Coder dniwebdesign's Avatar
    Join Date
    Dec 2003
    Location
    Carrot River, Saskatchewan
    Posts
    845
    Thanks
    15
    Thanked 10 Times in 10 Posts
    Quote Originally Posted by matak View Post
    i also tried it and failed. but if you say so...
    If I type my ip address into the address bar, my localhost website (on port 80) comes up and works just fine. Always has since I first installed Apache.


    likon, try finding an http.conf file somewhere on the internet. There are a few websites that post them to help people that have trouble. Just give a google and find one. Customize it to your needs and what you have.


    Another option is to use the default http.conf (no editing) and work your way from there. Modify for initial working then start expanding one bit at a time, making sure you can still access the server (via ip address or localhost) each time you change something.
    Dawson Irvine
    CEO - DNI Web Design
    http://www.dniwebdesign.com

  • #15
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    If you can't get to the 'localhost installation' then there would be no webhosts at all. What a horrible world it would be, everyone would have to download the internet to their 'localhost' and then access it!


  •  

    Posting Permissions

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