No one can access my website, expect for me.
Posted by: Energizer69 (67.212.75.---)
Date: September 27, 2014 04:46PM

Hello,

I am running Windows 7 Ultimate x64bit. The wamp server I've installed is also x64bit. My Apache version is 2.4.9. MySql Version: 5.6.17. Php version: 5.5.12. The wamp icon is Green. I do have a hosts file and this is what it looks like;
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#	127.0.0.1       localhost
#	::1             localhost

127.0.0.1       localhost
127.0.0.1       myrgn.net

::1 localhost
::1 myrgn.net

Only I can access my website, when other people try to access it, it gives them a Forbidden Message. Can you please help?

Thank you.

Options: ReplyQuote
Re: No one can access my website, expect for me.
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: September 27, 2014 05:14PM

This is because WAMPServers prime funtion is as a local developers tool and not a live server, therefore the Apache config is set, for security reasons, to only allow access to Apache from the local machine.


If you mean you want to allow access from the internet to your Apache server, first I will start with a warning.

This is dangerous unless you know what you are doing and you have hardened your server appropriately.


However if you want to take the risk it is quite easy.

The quick way, assuming you have not used Virtual hosts ( and you shoudl have really ) is just to do the following :-

left click the wampmanager icon ( thats the W icon in the system tray ) -> Put Online


If you have used Virtual hosts, then you need to manually change the Virtual Host definition for the site you want to put online and chnage 'Require local' to 'Require all granted'.

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



Edited 1 time(s). Last edit at 09/27/2014 05:15PM by RiggsFolly.

Options: ReplyQuote
Re: No one can access my website, expect for me.
Posted by: Energizer69 (67.212.75.---)
Date: September 27, 2014 06:20PM

I put it online, and its still forbidden.
How would I change the definition for the Virtual Host?

Options: ReplyQuote
Re: No one can access my website, expect for me.
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: September 27, 2014 06:41PM

Did you create a Virtual Host, they are not there by default?

If not, you have better send me your httpd.conf file as a Private Message rather than posting it up here.

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



Edited 1 time(s). Last edit at 09/27/2014 06:42PM by RiggsFolly.

Options: ReplyQuote
Re: No one can access my website, expect for me.
Posted by: Energizer69 (67.212.75.---)
Date: September 28, 2014 04:05AM

I pmed you my httpd.conf file.

Options: ReplyQuote
Re: No one can access my website, expect for me.
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: September 28, 2014 01:57PM

Ah you are using Virtual Hosts.

So the solution would be to put the server Offline again.

wampmanager -> Put Offline

This will stop external users being able to see your wamp home page.



Now edit the httpd-vhost.conf file and for the Specific site you want to be see from the internet change the access rights for that site like so:-

Find the 'Require local' line and chnage it to 'Require all granted'

This will allow access to this one site from the internet.

---------------------------------------------------------------------------------------------
(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: No one can access my website, expect for me.
Posted by: Energizer69 (67.212.75.---)
Date: October 02, 2014 04:24AM

It worked fine before, but now not even I can access the website... This is the apache error log;
[Wed Oct 01 21:50:41.822400 2014] [core:notice] [pid 4528:tid 384] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Wed Oct 01 21:50:41.824400 2014] [mpm_winnt:notice] [pid 4528:tid 384] AH00418: Parent: Created child process 2392
[Wed Oct 01 21:50:42.412400 2014] [mpm_winnt:notice] [pid 2392:tid 316] AH00354: Child: Starting 64 worker threads.
[Wed Oct 01 21:51:29.099400 2014] [mpm_winnt:notice] [pid 4528:tid 384] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Wed Oct 01 21:51:31.111400 2014] [mpm_winnt:notice] [pid 2392:tid 316] AH00364: Child: All worker threads have exited.
[Wed Oct 01 21:51:31.145400 2014] [mpm_winnt:notice] [pid 4528:tid 384] AH00430: Parent: Child process 2392 exited successfully.
[Wed Oct 01 21:51:32.678400 2014] [mpm_winnt:notice] [pid 5104:tid 384] AH00455: Apache/2.4.9 (Win64) PHP/5.5.12 configured -- resuming normal operations
[Wed Oct 01 21:51:32.678400 2014] [mpm_winnt:notice] [pid 5104:tid 384] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Wed Oct 01 21:51:32.678400 2014] [core:notice] [pid 5104:tid 384] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Wed Oct 01 21:51:32.679400 2014] [mpm_winnt:notice] [pid 5104:tid 384] AH00418: Parent: Created child process 4476
[Wed Oct 01 21:51:33.184400 2014] [mpm_winnt:notice] [pid 4476:tid 316] AH00354: Child: Starting 64 worker threads.
[Wed Oct 01 22:03:17.086400 2014] [mpm_winnt:notice] [pid 5104:tid 384] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Wed Oct 01 22:03:19.087400 2014] [mpm_winnt:notice] [pid 4476:tid 316] AH00364: Child: All worker threads have exited.
[Wed Oct 01 22:03:19.117400 2014] [mpm_winnt:notice] [pid 5104:tid 384] AH00430: Parent: Child process 4476 exited successfully.
[Wed Oct 01 22:03:21.461400 2014] [mpm_winnt:notice] [pid 4668:tid 384] AH00455: Apache/2.4.9 (Win64) PHP/5.5.12 configured -- resuming normal operations
[Wed Oct 01 22:03:21.461400 2014] [mpm_winnt:notice] [pid 4668:tid 384] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Wed Oct 01 22:03:21.461400 2014] [core:notice] [pid 4668:tid 384] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Wed Oct 01 22:03:21.463400 2014] [mpm_winnt:notice] [pid 4668:tid 384] AH00418: Parent: Created child process 4312
[Wed Oct 01 22:03:22.075400 2014] [mpm_winnt:notice] [pid 4312:tid 316] AH00354: Child: Starting 64 worker threads.

This is my access log;
217.69.133.3 - - [01/Oct/2014:21:47:22 -0600] "GET /robots.txt HTTP/1.1" 403 301
217.69.133.5 - - [01/Oct/2014:21:47:23 -0600] "GET /image2.png HTTP/1.1" 403 301
123.125.71.110 - - [01/Oct/2014:21:47:26 -0600] "GET / HTTP/1.1" 403 286
220.181.108.140 - - [01/Oct/2014:21:47:52 -0600] "GET / HTTP/1.1" 403 286 

Options: ReplyQuote
Re: No one can access my website, expect for me.
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: October 02, 2014 09:49AM

So what did you change from when it was working?

---------------------------------------------------------------------------------------------
(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: No one can access my website, expect for me.
Posted by: Energizer69 (209.141.200.---)
Date: October 02, 2014 10:35PM

I changed nothing, when I restarted the vps it just stopped working.

Options: ReplyQuote
Re: No one can access my website, expect for me.
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: October 03, 2014 12:01AM

Did you restart Apache after restarting the server?

---------------------------------------------------------------------------------------------
(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: No one can access my website, expect for me.
Posted by: Energizer69 (209.141.200.---)
Date: October 03, 2014 12:28AM

Yes, should I post my httpd.conf and vhost.conf?

Options: ReplyQuote
Re: No one can access my website, expect for me.
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: October 03, 2014 12:57AM

Not really sure what your problem is so that probably wont help

---------------------------------------------------------------------------------------------
(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: No one can access my website, expect for me.
Posted by: Energizer69 (209.141.200.---)
Date: October 03, 2014 01:05AM

So what can I do?

Options: ReplyQuote
Re: No one can access my website, expect for me.
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: October 03, 2014 10:09AM

Start by describing what you did, something like :-

I restart the server
then I start WampServer, the wampserver icon goes Green! Or does it?

I try accessing my site from the browser on the server using 'What address'

I try to ping my server from my PC and it does respond! Or does it?


Basically I dont know what you did to get to where you are, and I dont know what you are doing to get what error message.

---------------------------------------------------------------------------------------------
(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: No one can access my website, expect for me.
Posted by: Energizer69 (209.141.200.---)
Date: October 04, 2014 02:23AM

I fixed the problem, but now I see a bunch of errors like;
[prntscr.com]
I've never encountered this before and I've used wamp more then once.

Options: ReplyQuote
Re: No one can access my website, expect for me.
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: October 04, 2014 12:06PM

Looks like the code was written on an earlier version of PHP.

The first one "Non static method" is due old code I think.

The other 2 look like simple bad code.

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