[SOLVED] icon green but no website?
Posted by: sTimulated (---.plus.com)
Date: December 16, 2013 12:59PM

everything seems to be working except www.stimulatedgaming.com does not show up?
pinging my external ip works ok
localhost works
phpmyadmin works
doesn't seem to be any errors in the logs

this is my 'usual' wamp folder that has worked previously.
only difference is I'm now on a RAID0 but it's still 'C Drive'.

not sure what or how to test next?

installed the Visual C++ which I never had to before for it to work?

[www.stimulatedgaming.com]



Edited 2 time(s). Last edit at 12/16/2013 09:13PM by sTimulated.

Options: ReplyQuote
Re: icon green but no website?
Posted by: RiggsFolly (---.as13285.net)
Date: December 16, 2013 01:48PM

You dont have to install the Visual C++ you just need the Visual C++ Redistributable runtimes!

So have you told Apache that your site is called www.stimulatedgaming.com or does it still think its called

ServerName localhost:80

---------------------------------------------------------------------------------------------
(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: icon green but no website?
Posted by: sTimulated (---.plus.com)
Date: December 16, 2013 02:17PM

Hey Riggs,hope your well.

Apache should already know this as it's an old install,just copied to a new drive with the same drive letter.
I got a feeling it's something simple that I've missed or forgot to do.........

Where do I check ServerName localhost:80 ?

Thanks

Options: ReplyQuote
Re: icon green but no website?
Posted by: RiggsFolly (---.as13285.net)
Date: December 16, 2013 03:00PM

Hi,

I am fine thanks, hope you are too.


Look in httpd.conf, apache need to know what the site is going to be addressed as in the real world so you need to change localhost to www.stimulatedgaming.com

Personally, I would create a few Virtual Hosts instead
One for www.stimulatedgaming.com
One for www.stimulatedgaming.dev

so I could work on upgrades without interupting the live site.


If you are interested I have a HOWTO on Virtual Hosts, but there are lots of videos out there on YouTube etc as well.

---------------------------------------------------------------------------------------------
(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: icon green but no website?
Posted by: sTimulated (---.plus.com)
Date: December 16, 2013 03:39PM

This is my .conf

NameVirtualHost *:80

<VirtualHost *:80>
ServerName www.stimulatedgaming.com
ServerAlias stimulatedgaming.com
DocumentRoot C:/wamp/www/stimulatedgaming
ErrorLog C:/wamp/www/stimulatedgaming/logs/error.log
CustomLog C:/wamp/www/stimulatedgaming/logs/access.log common
</VirtualHost>

<VirtualHost *:80>
ServerName stimulatedgaming.com/Forum
ServerAlias Forum
DocumentRoot C:/wamp/www/stimulatedgaming/Forum
ErrorLog C:/wamp/www/logs/error.log
CustomLog C:/wamp/www/logs/access.log common
</VirtualHost>

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



Could it be something like the database has not gone live or something?
Might be an ip config problem.............



Edited 1 time(s). Last edit at 12/16/2013 05:31PM by sTimulated.

Options: ReplyQuote
Re: icon green but no website?
Posted by: RiggsFolly (---.as13285.net)
Date: December 16, 2013 05:51PM

Ok, so you are way ahead of me.


When I ping www.stimulatedgaming.com I get ip address 80.229.160.222 is this the WAN IP address of your router? i.e. is the domain pointing to your ip address.

Have you port forwarded your router so incoming TCP/IP connections on port 80 are transfered the IP address, port 80 of the PC running WAMPServer ( i.e. Apache ) ??

Just as an aside, make sure that the PC running WAMP has a statc IP or when you reboot it may get another ip address and your port forwarding will be pointing at the wrong internal ip.

---------------------------------------------------------------------------------------------
(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: icon green but no website?
Posted by: sTimulated (---.plus.com)
Date: December 16, 2013 09:12PM

Bang on Mr Folly,it was indeed a static ip thing or more precisely a dns that wasn't defined.

Thanks

Options: ReplyQuote
Re: [SOLVED] icon green but no website?
Posted by: RiggsFolly (---.as13285.net)
Date: December 17, 2013 10:28AM

One point if you dont mind me making a suggestion,

The way you have VHOSTS configured currently I could be allowed access to your localhost.

With VHOSTS the first VHOST defined in the list of vhosts is considered the default and will be used for any connection that accidentally gets to you. This means in your case 'www.stimulatedgaming.com' will be assumed.

So if I keyin your ip address in a drive-by attempt to see what there, I will be sent to your site.

However if you make localhost your first VHOST and make sure that the Apache security for that site remains as only allowing access from the local machine, any random or drive-by access will be refused.

eg

Change httpd.conf back to allowing only access from the local machine and maybe the local network as well, so replace all the

'Allow from all'

back to
#Apache 2.2
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 localhost ::1 192.168.0

#Apache 2.4
Require local
Require ip 192.168.0


Then place access requirements on each of your VHOSTS

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

      # Apache 2.2 syntax
         Order Deny,Allow
         Deny from all
         Allow from 127.0.0.1 localhost ::1 192.168.2
      </Directory>

      #
      # Apache 2.4 syntax
         Require local
         Require ip 192.168.0
   </Directory>

</VirtualHost>


<VirtualHost *:80>
   ServerName www.stimulatedgaming.com
   ServerAlias stimulatedgaming.com
   DocumentRoot C:/wamp/www/stimulatedgaming
   ErrorLog C:/wamp/www/stimulatedgaming/logs/error.log
   CustomLog C:/wamp/www/stimulatedgaming/logs/access.log common
   <Directory  "C:/wamp/www/stimulatedgaming">

      # Apache 2.2 syntax
         Order Deny,Allow
         Allow from all
      </Directory>

      #
      # Apache 2.4 syntax
         Require all granted
   </Directory>

</VirtualHost>


<VirtualHost *:80>
   ServerName stimulatedgaming.com/Forum
   ServerAlias Forum
   DocumentRoot C:/wamp/www/stimulatedgaming/Forum
   ErrorLog C:/wamp/www/logs/error.log
   CustomLog C:/wamp/www/logs/access.log common
   <Directory  "C:/wamp/www/stimulatedgaming/forum">

      # Apache 2.2 syntax
         Order Deny,Allow
         Allow from all
      </Directory>

      #
      # Apache 2.4 syntax
         Require all granted
   </Directory>

</VirtualHost>



Obviously pick either the Apache 2.2 or 2.4 format depending on which you are using.

Now when I drive-by I get sent to localhost and of course denied access. Maybe I will then stop hacking!


This if course in not infalable as I can still use the correct domain name and be allowed access.


Also just to make your life more complicated it is a better idea IMO to make your VHOSTS live in a totally different folder structure. So for example

c:\websrc\www\stimulated

Then change your VHOST definitions to point to this location. This way any access rights on the default WAMP folders can be set back to only allowing access to the local machine and maybe the internal network, while your actual site is controlled by the Apache access stntax within the VHOST definition.
This does mean that the 'Put Online' and 'Put Offline' will only effect your localhost and in fact can be left as 'Offline'. Those processes only changes the httpd.conf file anyway and therefore will never effect your actual sites.

---------------------------------------------------------------------------------------------
(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


Sorry, only registered users may post in this forum.