Default Homepage on WAMP server doesn't show
Posted by: cchg (---.singnet.com.sg)
Date: January 29, 2011 01:27AM

Hello,


My situation: -


I am wanting to use the WAMP server to host my own website from my PC.


I downloaded the WAMP server, put it online. When I typed in localhost into the browser, the default homepage shows up fine. I tried with my computer IP address, default homepage shows up fine too.


Read the Access guide, successfully changed firewall options/ port forwarded with new Port from router IP address to my computer IP address. Tested the new port and am sure the new port is working good.


But next is where I have problems!


Got my router’s IP address and proceeded to type in my router IP address into my browser...but now I’m unable to access my Homepage!!


Doing so results in error messages, Firefox gives me "Firefox can't establish a connection to the server at 121.z.zz.zz:8080", Windows Network Diagnostics says "The remote device or resource won’t accept the connection”.


I read somewhere that it could be I trying to access my server using the public IP address while I’m on my private LAN, which some routers don’t allow. So I checked to see if my router allows for this (using Reverse NAT) and it does!!


Can't figure out why my Homepage doesn't show/ where I'm going wrong, so any suggestions to this problem is greatly appreciated.


- Oh and I have also completed the VirtualHosts guide.

Options: ReplyQuote
Re: Default Homepage on WAMP server doesn't show
Posted by: yfastud (Moderator)
Date: January 29, 2011 01:30AM

Quote

Doing so results in error messages, Firefox gives me "Firefox can't establish a connection to the server at 121.z.zz.zz:8080", Windows Network Diagnostics says "The remote device or resource won’t accept the connection”.
Why did you include port 8080 in URL? Did you set it up in main config file and VH file?

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Default Homepage on WAMP server doesn't show
Posted by: cchg (---.singnet.com.sg)
Date: January 29, 2011 01:41AM

Where can this "main config file" you are referring to be found?

Options: ReplyQuote
Re: Default Homepage on WAMP server doesn't show
Posted by: yfastud (Moderator)
Date: January 29, 2011 03:07AM

if you don't even know where the main config file, why did you include port 8080 in URL? Take out that port and try again winking smiley

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Default Homepage on WAMP server doesn't show
Posted by: cchg (---.singnet.com.sg)
Date: January 29, 2011 07:00PM

Doesn't matter whether Port number was included in URL or not.


Default Homepage don't show with or without it!


Where is the main config file?

Options: ReplyQuote
Re: Default Homepage on WAMP server doesn't show
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: January 29, 2011 09:18PM

there isnt one.. you must have deleted the index.php from the c:\wamp\www folder

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

Options: ReplyQuote
Re: Default Homepage on WAMP server doesn't show
Posted by: yfastud (Moderator)
Date: January 29, 2011 09:37PM

File httpd.conf and open it through Wamp tray icon winking smiley

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Default Homepage on WAMP server doesn't show
Posted by: cchg (---.singnet.com.sg)
Date: January 30, 2011 05:39PM

Decided to Uninstall and Reinstall the WAMP server as I may have earlier deleted php files (when going through VH guide) by mistake.


@Steven Martin
After reinstalling, index.php is back into C:\wamp\www folder



Upon typing in localhost and computer IP address, default Homepage came up fine.
Went through Access guide, all is fine. But have problems with VH guide.




@Yfastud

1) Found http.conf and made changes like this -

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

Changes were saved.



2) Found httpd-vhosts.conf and made changes like this. I just wanted a new port and opened 8082.


NameVirtualHost *:8082

<VirtualHost *:8082>
ServerName domain
DocumentRoot C:/wamp/www/domain
ErrorLog "C:/wamp/www/domain/logs/error.log"
CustomLog "C:/wamp/www/domain/logs/access.log" common
</VirtualHost>

<VirtualHost *:8082>
ServerName sub1
DocumentRoot C:/wamp/www/sub1
ErrorLog "C:/wamp/www/sub1/logs/error.log"
CustomLog "C:/wamp/www/sub1/logs/access.log" common
</VirtualHost>

<VirtualHost *:8082>
ServerName sub2
DocumentRoot C:/wamp/www/sub2
ErrorLog "C:/wamp/www/sub2/logs/error.log"
CustomLog "C:/wamp/www/sub2/logs/access.log" common
</VirtualHost>

<VirtualHost *:8082>
ServerName localhost
DocumentRoot C:/wamp/www
ErrorLog "C:/wamp/www/logs/error.log"
CustomLog "C:/wamp/www/logs/access.log" common
</VirtualHost>


Changes were saved.



3) Found "hosts" from C:/Windows/System32/drivers/etc and made changes like this

127.0.0.1 localhost
127.0.0.1 domain
127.0.0.1 sub1
127.0.0.1 sub2

When saving changes, it tells me ACCESS DENIED!


How can I solve the above issue??


Of course, when I type in router IP address into browser now, I get the message "The connection has timed out. The server at 121.z.zz.zzz is taking too long to respond."



Edited 1 time(s). Last edit at 01/30/2011 07:16PM by cchg.

Options: ReplyQuote
Re: Default Homepage on WAMP server doesn't show
Posted by: yfastud (Moderator)
Date: January 30, 2011 09:03PM

If want to use port 8082, in main config file, find:
listen 80
Change to:
listen 8082
Save file and restart Wamp then use 'http://localhost:8082'

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Default Homepage on WAMP server doesn't show
Posted by: cchg (---.singnet.com.sg)
Date: February 02, 2011 09:43PM

Hello

1) Made changes to main config file, restart WAMP, typed in 'http://localhost:8082', default Homepage comes up fine.


2) When I type in router IP address onto browser, my modem page shows up - is this result expected?


3) Used the VH guide to set up the site (localhost) to show up first on top.
Searched for "hosts" from C:/Windows/System32/drivers/etc
Made changes like this

127.0.0.1 localhost
127.0.0.1 domain
127.0.0.1 sub1
127.0.0.1 sub2

Doesn't let me save the above changes to "hosts" file, it tells me ACCESS DENIED! What to do about this?

Options: ReplyQuote
Re: Default Homepage on WAMP server doesn't show
Posted by: yfastud (Moderator)
Date: February 02, 2011 11:20PM

2) Did you use 'http://123.345.567.789:8082'?
3) Copy that host file to desktop, edit, save and copy back to overwrite original file

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Default Homepage on WAMP server doesn't show
Posted by: cchg (220.255.4.---)
Date: February 05, 2011 12:14PM

Hello

2) Yes
3) Done

Working fine, thanks for the help!!

Options: ReplyQuote


Sorry, only registered users may post in this forum.