DeanWhitehouse Posted October 8, 2008 Share Posted October 8, 2008 How do i make a WAMP server run as a web one? Is it already, i dunno. Thanks, Blade P.s soz if i posted in the wrong place Quote Link to comment https://forums.phpfreaks.com/topic/127574-localhost-on-the-web/ Share on other sites More sharing options...
MatthewJ Posted October 8, 2008 Share Posted October 8, 2008 Um, is that question supposed to make sense? Quote Link to comment https://forums.phpfreaks.com/topic/127574-localhost-on-the-web/#findComment-660052 Share on other sites More sharing options...
DeanWhitehouse Posted October 8, 2008 Author Share Posted October 8, 2008 Yes, and it would if you knew the answer Quote Link to comment https://forums.phpfreaks.com/topic/127574-localhost-on-the-web/#findComment-660068 Share on other sites More sharing options...
php.ajax.coder Posted October 8, 2008 Share Posted October 8, 2008 Try using a tool like noIP Quote Link to comment https://forums.phpfreaks.com/topic/127574-localhost-on-the-web/#findComment-660084 Share on other sites More sharing options...
MatthewJ Posted October 11, 2008 Share Posted October 11, 2008 Actually... I know the answer if the question is what I think it is... it is just rather poorly formed and does not directly express what you are asking For instance... "How do I expose my local web server to the public" Your question effectively asks "How do I make a web server a web server" Quote Link to comment https://forums.phpfreaks.com/topic/127574-localhost-on-the-web/#findComment-662789 Share on other sites More sharing options...
Zane Posted October 11, 2008 Share Posted October 11, 2008 once WAMP is setup it is ready for the web If you have broadband, then you have ISP/hosting (now if they allow you to host a server is another story) then you need to access your router control panel and configure port forwarding for port 80 to go to your computer Quote Link to comment https://forums.phpfreaks.com/topic/127574-localhost-on-the-web/#findComment-662931 Share on other sites More sharing options...
DeanWhitehouse Posted October 11, 2008 Author Share Posted October 11, 2008 Yer, i have accessed my router and (i think) made it port forward, as it only has certain modes and HTTP WebServer is one, and to test i put in my ip and it came up with 404, but before i turned this mode on it came up with my router cp I tried a few things like adding http://ipnumber/www/test/test.php or http://ipnumber/test/test.php and all were 404 errors btw i am using a bt home hub Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/127574-localhost-on-the-web/#findComment-663034 Share on other sites More sharing options...
DeanWhitehouse Posted October 11, 2008 Author Share Posted October 11, 2008 And http://ipnumber/test.php Quote Link to comment https://forums.phpfreaks.com/topic/127574-localhost-on-the-web/#findComment-663049 Share on other sites More sharing options...
Stooney Posted October 11, 2008 Share Posted October 11, 2008 Have you tried just http://ip? (ex http://66.97.171.5) If that 404's then either your server isn't working or you did not properly forward port 80. If you can use your local ip just fine then it's a fowarding issue. (ex http://192.168.1.2) Quote Link to comment https://forums.phpfreaks.com/topic/127574-localhost-on-the-web/#findComment-663055 Share on other sites More sharing options...
DeanWhitehouse Posted October 11, 2008 Author Share Posted October 11, 2008 Yes i have tried just http://ip and my local one they both give page load error Failed to Connect The connection was refused when attempting to contact 192.168.1.2. Though the site seems valid, the browser was unable to establish a connection. Failed to Connect The connection was refused when attempting to contact 86.143.97.45. Though the site seems valid, the browser was unable to establish a connection. Quote Link to comment https://forums.phpfreaks.com/topic/127574-localhost-on-the-web/#findComment-663063 Share on other sites More sharing options...
Stooney Posted October 12, 2008 Share Posted October 12, 2008 You used YOUR local ip right? The one I gave was just an example. (You could also use 127.0.0.1). If it still doesn't work then there's something wrong with your server I would guess. Quote Link to comment https://forums.phpfreaks.com/topic/127574-localhost-on-the-web/#findComment-663070 Share on other sites More sharing options...
DeanWhitehouse Posted October 12, 2008 Author Share Posted October 12, 2008 Using that IP takes me to the WAMP server page Quote Link to comment https://forums.phpfreaks.com/topic/127574-localhost-on-the-web/#findComment-663072 Share on other sites More sharing options...
play_ Posted October 12, 2008 Share Posted October 12, 2008 left-click the WAMP icon, select 'put online'. Then you have to open port 80 on your router. This is usually under 'Virtual Server'. that should be it Quote Link to comment https://forums.phpfreaks.com/topic/127574-localhost-on-the-web/#findComment-663082 Share on other sites More sharing options...
Stooney Posted October 12, 2008 Share Posted October 12, 2008 Here's how to port forward on your router: http://www.frequencycast.co.uk/homehubfaq.html#port Quote Link to comment https://forums.phpfreaks.com/topic/127574-localhost-on-the-web/#findComment-663089 Share on other sites More sharing options...
Stooney Posted October 12, 2008 Share Posted October 12, 2008 Also, if you don't know your local ip: Go to start->run. Type 'cmd' and press enter. type 'ipconfig' and press enter. Your local IP will be the ip after Ipv4 Address. Quote Link to comment https://forums.phpfreaks.com/topic/127574-localhost-on-the-web/#findComment-663090 Share on other sites More sharing options...
DeanWhitehouse Posted October 12, 2008 Author Share Posted October 12, 2008 I tried that tutorial on the portwarding and it didn't work, at all, i have put it in HTTP(Web Server) mode,and that redirects the request for the ip to somewhere. Quote Link to comment https://forums.phpfreaks.com/topic/127574-localhost-on-the-web/#findComment-663096 Share on other sites More sharing options...
MatthewJ Posted October 13, 2008 Share Posted October 13, 2008 It sounds like the router is not configured properly to pass the request. All port forwarding is doing is listening for any requests to come into the router looking for a web page, then it "forwards" the request to the proper machine. So, if my external ip(given by the isp) is 12.216.200.100, that is the IP address of the router and the one you would need to use to connect to the server. You can find your external IP within your router configuration settings, not with ipconfig (ipconfig will only show you the internal IP... probably something like 192.168.0.100) The internal IP is where you want to forward the request. So, long story short... you are saying to the router "When someone tries to access the web server at IP 12.216.200.100, send the request to the web server on 192.168.0.100" You just need to figure out which point in there the request is getting lost. As a side note, you may also want to confirm that Windows firewall is not blocking the request as that has been known to happen Good luck! Quote Link to comment https://forums.phpfreaks.com/topic/127574-localhost-on-the-web/#findComment-664266 Share on other sites More sharing options...
DeanWhitehouse Posted October 14, 2008 Author Share Posted October 14, 2008 It's working now, but a problem. When i type in my IP or give it out to people to type in, it takes them to my WAMP server config page, and this means they can access anything on there e.g. phpMyAdmin. How do i stop this , either password protect the pages, or forward the ip requests to my homepage? Quote Link to comment https://forums.phpfreaks.com/topic/127574-localhost-on-the-web/#findComment-664629 Share on other sites More sharing options...
Zane Posted October 14, 2008 Share Posted October 14, 2008 you should have an /alias directory with a file called phpmyadmin.conf in it already if you don't then make one and put this in it Alias /phpmyadmin "c:/wamp/apps/phpmyadmin2.11.6/" # to give access to phpmyadmin from outside # replace the lines # # Order Deny,Allow # Deny from all # Allow from 127.0.0.1 # # by # # Order Allow,Deny # Allow from all # Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Deny from all Allow from 127.0.0.1 Make all the necessary changes first of course Quote Link to comment https://forums.phpfreaks.com/topic/127574-localhost-on-the-web/#findComment-664649 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.