Exactly what is required to display hello world to the rest of the world?
Posted by: Kiran O (---.cust.telenor.se)
Date: May 06, 2013 04:44PM

Hi fellas,

i simply want to be able to display C:\wamp\www\test\index.html to the rest of the world, while wamp server is set to "online"

and make it only available on localhost when wamp is set to offline.

Lets say my external ip is 94.240.177.195


from a completely blank windows 7 machine, lets say ive forwarded the port 80 on my router, and opened in my firewall ( turned it off actually )

tried to dabble with vhosts, but all i manage to do is either make the site available both in offline and online mode , or unavalable in both offline and online mode.


so guys, could you just help me with the (probably) simple settings to (presumably) httpd and vhost as well as any other configuring i might need to do, in order to make a site "hello world" page apear when anyone else on the planet enters my external ip? under the condition that i have my wamp server set to online and not offline of course?


I know this probably gets asked alot, but i've been searching this the internet for up towards two days now, and the solutions other people have to use seem to vary depending on what version of wamp the use. ( among other things )

im using Apache 2.4.2 – Mysql 5.5.24 – PHP 5.4.3 XDebug 2.1.2 XDC 1.5 PhpMyadmin 3.4.10.1 SQLBuddy 1.3.3 webGrind 1.0

thanks!

//Kiran



Edited 1 time(s). Last edit at 05/06/2013 04:48PM by Kiran O.

Options: ReplyQuote
Re: Exactly what is required to display hello world to the rest of the world?
Posted by: stevenmartin99 (Moderator)
Date: May 06, 2013 06:35PM

if you wanna get teamviewer i will take a look. it sounds like you did everything right, but there must be something at fault.

usually , put online, and port 80 in firewall and it will display the wamp homepage on ip

then you can use vhosts to point to another folder etc

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Exactly what is required to display hello world to the rest of the world?
Posted by: Kiran O (---.dynamic.se.alltele.net)
Date: May 06, 2013 08:21PM

Yeah that would be pretty nice of you, i sent you a pm with the details

Options: ReplyQuote
Re: Exactly what is required to display hello world to the rest of the world?
Posted by: Kiran O (---.dynamic.se.alltele.net)
Date: May 06, 2013 08:42PM

doublepost



Edited 4 time(s). Last edit at 05/06/2013 10:15PM by Kiran O.

Options: ReplyQuote
Re: Exactly what is required to display hello world to the rest of the world?
Posted by: Kiran O (---.dynamic.se.alltele.net)
Date: May 06, 2013 10:15PM

well i looks like the problem was that onlineoffline.php doesnt change the row in httpd.conf "Require local" to "Require all granted"

And back again when i change the server from online to offline and so fourth,


when i try to install wamp on my other machines i get the same issue.

I'd be grateful if you could tell me what you did to resolve this on the this machine stevenmartin99

Solved:

I noticed that my wampinstall places Require local on row 265 in httpd.conf.

This freaks onlineoffline.php out, and it doesnt change it when you switch from online to offline.

if you move it back up to row 264, it works fine.


i'd guess alot of people are going to have this issue, untill the installer gets patched to remove the extra row in httpd.conf.


___________________ httpd.conf - WRONG

258 #
259 # Controls who can get stuff from this server.
260 #
261 # Online --> Require all granted
262
263 # onlineoffline tag - don't remove
264
265 Require local

___________________ httpd.conf - WRONG



___________________ httpd.conf - Proper


258 #
259 # Controls who can get stuff from this server.
260 #
261 # Online --> Require all granted
262
263 # onlineoffline tag - don't remove
264 Require local


___________________ httpd.conf - Proper


[sourceforge.net];- thats the one i downloaded.



Edited 1 time(s). Last edit at 05/06/2013 10:44PM by Kiran O.

Options: ReplyQuote
Re: Exactly what is required to display hello world to the rest of the world?
Posted by: stevenmartin99 (Moderator)
Date: May 06, 2013 10:37PM

Sorry yes that was the issue- delete the space line between

#onlineoffline tag

Require local

And toggle the online/offline button 3 to 4 times

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.