can not put website online
Posted by: zpupster (---.hsd1.il.comcast.net)
Date: January 31, 2014 08:04PM

hello support,

OS............W7 Pro 64-bit

Wamp Server installed...........WampServer Version 2.2
Apache ..................Apache 2.2.22
MySQL..............MySQL 5.5.24
PHP .....................PHP 5.3.13

What colour is your WampManager icon? ( the in the system tray ).......Green

Virtual Hosts ???

in my c:\windows\system32\drivers\etc\hosts

127.0.0.1 localhost

i use dyndns for [mysite.dyndns-server.com]
the updater for it is working

i am showing port 80 blocked tho

my computer crashed and starting fresh.
this has worked for quite some time i forget what i actually did to get it working but

i did a netstat ao-
it is showing httpd.exe is using it


my router is ok and my isp alllows port 80 checked my firewall no problem there

i have been searching and googling , watch some youtube videos
tried somethings they did not work.

i do iis installed but the services are disabled and it is binded to 8080.


susggestions

thanks craig

Options: ReplyQuote
Re: can not put website online
Posted by: RiggsFolly (92.24.212.---)
Date: February 01, 2014 12:49AM

Have you port forwarded port 80 on your router?

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: can not put website online
Posted by: zpupster (---.hsd1.il.comcast.net)
Date: February 01, 2014 01:57AM

yes

comcast- isp


port forwarding

sevice name dyn
server ip 10.0.0.2
tcp/udp
stasrt port 80
end port 80

Options: ReplyQuote
Re: can not put website online
Posted by: zpupster (---.hsd1.il.comcast.net)
Date: February 01, 2014 01:43PM

is there something i need to put in virtual hostsfile in wamp ?
or the window hosts file?

the tutorials and forum answers did not mention this


???


thanks craig

Options: ReplyQuote
Re: can not put website online
Posted by: BConOfLight (94.102.192.---)
Date: February 01, 2014 03:29PM

Hi Craig,
I just went trough this and had a few problems. Here's how I did it with some tips.
I used Virtual Hosts following SteveMartin's suggestions in this [forum.wampserver.com].

This works but your requirements may be different.

I'm using yoru sample Domain name as an example, replace my names with yours as appropriate.

I used the install default C:\wamp
I put my sites in subdirectories of C:\mysites
I put my VirtualHost cnfigurations files in C:\wamp\vhosts [see httpd.conf]
I named each subdireoctory with the Domain name I used e.g mysite.dyndns-server.com
I also named the VHost configuration files in C:\wamp\vhosts with the same name and a .conf extension
[ I patched C:\wamp\www\index.php to display these in the localhost wamperserver page]


I got a free Domian name / DNS entry and pointed it at my public IP address.
When testing locally I included entries in C:\WINDOWS\System32\drivers\etc\hosts for mysite.dyndns-
server.com.
When 'ONLINE' I commented out this entry so I access via the internet DNS.

Here are my relevant httpd.conf entries In :
C:\wamp\bin\apache\Apache2.4.4\conf\httpd.conf

ServerRoot "c:/wamp/bin/apache/apache2.4.4"
DocumentRoot "c:/wamp/www"

ErrorLog "c:/wamp/logs/apache_error.log"

# Temporary  for debugging
# LogLevel warn
LogLevel debug

<IfModule log_config_module>
....
    CustomLog "c:/wamp/logs/access.log" common
.....
</IfModule>

# Helps to know whether in main server or a Virtual Host
ErrorDocument 403 "<h2>Main: You can't come in here</h2>"
ErrorDocument 404 "<h2>Main: That's not here!</h2>"
ErrorDocument 500 "<h2>Main:My life is a mess and so is my server!</h2>"

# # DO NOT SERVE ANY REQUESTS TO ACCESS THE FILE SYSTEM
# # EXCEPT as explicitly allowed in any following or Included <Directory    >... </Directory   > block
<Directory />
	AllowOverride none
        Require all denied
</Directory>

...
# Virtual Hosts

# First / Default, it's NOW  a VHost   [In httpd.conf BEFORE any others or any Includes for VHosts]
<VirtualHost *:80>
    DocumentRoot "C:/wamp/www"
    ServerName localhost
    ServerAlias localhost
	    Options Indexes FollowSymLinks

    <Directory "C:/wamp/www">
      Options Indexes
      AllowOverride None
#   onlineoffline tag - don't remove

# # LOCAL ACCESS ONLY
      Require local
    </Directory>
</VirtualHost>

# This is where to put vhost  .conf files
# Name each one with the same name as the C:\mysites\[subdirectory for site]
# This subdirectory name/ VHost Name must be the same as the Domain name used to access your server

IncludeOptional "c:/wamp/vhosts/*"
....

# == NOT INCLUDED ========
#Include conf/extra/httpd-vhosts.conf

Note from the above The loglevel, logfile names and IncludeOptional for VHosts,

VHOST configuration file in C:\wamp\vhosts\mysite.dyndns-server.com.conf
<VirtualHost *:80>
    DocumentRoot "C:/mysites/mysite.dyndns-server.com"
    ServerName mysite.dyndns-server.com
    ServerAlias www.mysite.dyndns-server.com
    Options Indexes FollowSymLinks

    ErrorLog  "C:/mysitesLogs/mysite.dyndns-server.com-error.log"
    CustomLog "C:/mysitesLogs/mysite.dyndns-server.com-access.log" common

	# Helps to know whether in main server or a Virtual Host
    ErrorDocument 403 "<h2>mysite: Forbidden</h2>"
    ErrorDocument 404 "<h2>mysite: Not Found</h2>"
    ErrorDocument 500 "<h2>mysite: Yikes!</h2>"

    <Directory "C:/mysites/mysite.dyndns-server.com">
      AllowOverride All
      Require all granted
    </Directory>
</VirtualHost>

Troubleshooting :

Test everything locally first
Then comment out the hosts entries for the site.
Make sure that you have port forwarded port 80 to your Apache server.

If things don't start or run as expected run this in a CMD Window
It checks for config errors and you'll also see if Apache sees your Vhosts as you expected. It often catches errors / typos you can't find.

C:\wamp\bin\apache\Apache2.4.4\bin\httpd -S

I re-direct the output into a .txt file that I keep open in Notepad++

When accessing your site, you may get 404 errors if Apache can't find your pages. This can happen if your VHost definitions are wrong,
403 errors when your <Directory> permissions forbid serving them, check your <Directory > names and permissions

If you don't understand what is happening, look at your logs.
When troubleshooting I leave them open in separate tabs in NotePad++, and the files refresh as they change.

c:\wamp\logs\apache_error.log
c:\wamp\logs\access.log
C:\mysitesLogs\mysite.dyndns-server.com-error.log
C:\mysitesLogs\mysite.dyndns-server.com-access.log

Options: ReplyQuote
Re: can not put website online
Posted by: zpupster (---.hsd1.il.comcast.net)
Date: February 07, 2014 04:59PM

ty BConOfLight ,

Solved--
i have all wamp files on the other drive and compared could not figure out why it was not working.

yes i have port 80 forwarded but that was for the crashed machine not the one , i am working on,
changed the ip comcast (10.0.0.XX) to this computer and

Viola!!

ty again,

zpupster( with a red face)

Options: ReplyQuote
Re: can not put website online
Posted by: zpupster (---.hsd1.il.comcast.net)
Date: February 12, 2014 05:20PM

local host works bring up index.php from C:/www/wamp

127.0.01 works the same page

testmysql.php lworks--connection OK

also

good.dyndns-server.com works

brings up

index.php

from

C:/websites/www/good.dyndns-server.com

Options: ReplyQuote
Re: can not put website online
Posted by: zpupster (---.hsd1.il.comcast.net)
Date: February 12, 2014 05:37PM

this has been solved!!!!!!!!!!!!!

Options: ReplyQuote


Sorry, only registered users may post in this forum.