WAMP Server is not responding.
Posted by: ewanm (---.range86-150.btcentralplus.com)
Date: August 14, 2018 08:58PM

I am new to using a WAMP server and I am having issues with my html document only accessible through [localhost] but it cannot be accessed from another device.

I had this feature working previously but I had to reinstall WAMP on a new hard drive partition, I have all the settings set as they were before, port 80 is open and my Apache config files have access set to all granted.

All attempts to fix this myself and through information found online have not worked so any help would be greatly appreciated.

Options: ReplyQuote
Re: WAMP Server is not responding.
Posted by: Otomatic (Moderator)
Date: August 14, 2018 09:45PM

Hi,

Please READ (and answer) BEFORE YOU ASK A QUESTION

> Apache config files have access set to all granted.
No. You do not have to modify the httpd.conf file yourself.
For your sites, you must use VirtualHost, as with all hosting providers.
See The need for Virtual Host and Wampserver 3 - Create or add a VirtualHost

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.5 32 bit - Apache 2.4.37 - PHP 7.2.12/7.1.24/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
Wampserver 3.1.5 64 bit - Apache 2.4.37 - PHP 7.2.12/7.1.24/7.0.32/5.6.38 - MySQL 5.7.23 - MariaDB 10.3.10
PhPMyadmin 4.8.3 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: WAMP Server is not responding.
Posted by: ewanm (---.range86-150.btcentralplus.com)
Date: August 15, 2018 03:12PM

Thank you for your reply,
I have followed the instructions to create a virtual host but I have the same problem as before. My website is accessible from the browser of the computer that is hosting it, but I cannot access the website from any other devices.

Is there any steps that I am missing to get this server online?

Options: ReplyQuote
Re: WAMP Server is not responding.
Posted by: RiggsFolly (Moderator)
Date: August 16, 2018 10:10AM

Please show us the contents of your httpd-vhosts.conf file

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.1.3 32bit & 64bit)
<Apache 2.4.29/2.2.31> <PHP 7.2/7.1/7.0/5.6/5.5/5.4> <MySQL 5.7.19/5.6.39/5.5.28>
<MariaDB 10.2.14> <phpMyAdmin4.8.1> <MySQL Workbench 6.3.10>

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 MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: WAMP Server is not responding.
Posted by: ewanm (---.range86-150.btcentralplus.com)
Date: August 16, 2018 10:42AM

Thanks for your reply, the following is the whole httpd-vhosts.conf file:

# Virtual Hosts
#
<VirtualHost *:80>
  ServerName localhost
  ServerAlias localhost
  DocumentRoot "${INSTALL_DIR}/www"
  <Directory "${INSTALL_DIR}/www/">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>


#
<VirtualHost *:80>
	ServerName LHSCrafts
	DocumentRoot "s:/sitefolder"
	<Directory  "s:/sitefolder/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>



Edited 1 time(s). Last edit at 08/16/2018 11:41AM by RiggsFolly.

Options: ReplyQuote
Re: WAMP Server is not responding.
Posted by: RiggsFolly (Moderator)
Date: August 16, 2018 11:48AM

Quick note about what WAMPServer is for!

WAMPServer is provided and supported for the HUGH Sum on NOTHING as a tool for learning how to use, configure and develop using Apache/MySQL/mariaDB/PHP

There is documentation on all these tools on the web.

All you need to do is look up in the Apache documentation what all these parameters do to Apache to find out which to change and which you may want to add even.

If you had looked up the `Require` parameter you should have been able to work out what needs to be done.

However here is your answer.

Change the `Require` parameter in your new Virtual Host definition like this


<VirtualHost *:80>
	ServerName LHSCrafts
	DocumentRoot "s:/sitefolder"
	<Directory  "s:/sitefolder/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All

		Require all granted

	</Directory>
</VirtualHost>

This tells Apache that Anybody in the whole universe can connect to this Virtual Host

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.1.3 32bit & 64bit)
<Apache 2.4.29/2.2.31> <PHP 7.2/7.1/7.0/5.6/5.5/5.4> <MySQL 5.7.19/5.6.39/5.5.28>
<MariaDB 10.2.14> <phpMyAdmin4.8.1> <MySQL Workbench 6.3.10>

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 MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-



Edited 1 time(s). Last edit at 08/16/2018 11:49AM by RiggsFolly.

Options: ReplyQuote
Re: WAMP Server is not responding.
Posted by: ewanm (---.range86-150.btcentralplus.com)
Date: August 16, 2018 01:44PM

Thanks for your reply,

As I said in my original post, I have already tried with Require local and Require all granted and neither are working for me.
I have looked up the 'Require' parameter and setting it to all granted had no effect.
To access the website from another system I am searching http:// <public ip> /lhscrafts/ should this work or should I be searching for something different?



Edited 3 time(s). Last edit at 08/16/2018 03:39PM by ewanm.

Options: ReplyQuote
Re: WAMP Server is not responding.
Posted by: RiggsFolly (Moderator)
Date: August 16, 2018 03:55PM

It sounds to me that you now need to look at a Dynamic DNS like DYNDNS.COM, or purchase a real domain name and point it at your routers WAN IP Address.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.1.3 32bit & 64bit)
<Apache 2.4.29/2.2.31> <PHP 7.2/7.1/7.0/5.6/5.5/5.4> <MySQL 5.7.19/5.6.39/5.5.28>
<MariaDB 10.2.14> <phpMyAdmin4.8.1> <MySQL Workbench 6.3.10>

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 MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: WAMP Server is not responding.
Posted by: ewanm (---.range86-150.btcentralplus.com)
Date: August 17, 2018 03:47PM

Ok, so I have now managed to get the server online but I now have issues with permissions. When I search http:// <public ip> /lhscrafts/homepage.html I get the following error message:

Forbidden
You don't have permission to access /lhscrafts/homepage.html on this server.
Apache/2.4.33 (Win64) PHP/5.6.35 Server at 86.150.69.48 Port 80

I have searched for and followed guides on how to resolve this and after a day nothing has worked. Setting the httpd.conf and httpd-vhosts.conf to Require all granted has had no effect. The error is present when I search on the host computer and any other systems as well.



Edited 1 time(s). Last edit at 08/18/2018 12:42AM by ewanm.

Options: ReplyQuote
Re: WAMP Server is not responding.
Posted by: RiggsFolly (Moderator)
Date: August 17, 2018 07:19PM

Putting a Web server online to the world can be dangerous.

Doing so when you have a reasonable idea what you are doing can be dangerous, but doing so when you have not got a clue is incredibly dangerous

Can I suggest that you have a think and decide whether you want to take this risk with your PC, and possibly all the PC/Devices you have behind your router before you continue down this path.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.1.3 32bit & 64bit)
<Apache 2.4.29/2.2.31> <PHP 7.2/7.1/7.0/5.6/5.5/5.4> <MySQL 5.7.19/5.6.39/5.5.28>
<MariaDB 10.2.14> <phpMyAdmin4.8.1> <MySQL Workbench 6.3.10>

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 MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: WAMP Server is not responding.
Posted by: ewanm (---.range86-150.btcentralplus.com)
Date: August 18, 2018 12:41AM

Ok



Edited 2 time(s). Last edit at 08/20/2018 01:42PM by ewanm.

Options: ReplyQuote


Sorry, only registered users may post in this forum.