Web loads just sometimes.
Posted by: Trond (---.bb.online.no)
Date: May 23, 2019 04:17PM

I run a wamp server where I have several sites I'm working on to make new sites. Most of them is running Wordpress with the theme Avada. One site I'm supposed to work on is not loading, and I cant find any information of why its not working. I have other webs that works just fine so the problem is somhow related to the web. Yesterday it all of a sudden just worked, a little. Tried to run a backup but it ended in same message as ever, "the web is not available"(translated from norwegian).

I have tried to run readme.html and that file runs just fine.
I have enabled define('WP_DEBUG', true); But get no errormessages. Many years ago when I was writing asp code I always had an errormessage I could use to debug.

Below is apache_error.log. I have trouble understanding how to figure out how to read that.

Would love if anyone could help me on the way.

[Thu May 23 16:17:51.518331 2019] [mpm_winnt:notice] [pid 11892:tid 752] AH00428: Parent: child process 11884 exited with status 3221225725 -- Restarting.
AH00112: Warning: DocumentRoot [D:/wamp64/bin/apache/apache2.4.37/dr] does not exist
[Thu May 23 16:17:51.664329 2019] [mpm_winnt:notice] [pid 11892:tid 752] AH00455: Apache/2.4.37 (Win64) PHP/7.2.12 configured -- resuming normal operations
[Thu May 23 16:17:51.664329 2019] [mpm_winnt:notice] [pid 11892:tid 752] AH00456: Apache Lounge VC15 Server built: Nov 21 2018 11:51:35
[Thu May 23 16:17:51.664329 2019] [core:notice] [pid 11892:tid 752] AH00094: Command line: 'd:\\wamp64\\bin\\apache\\apache2.4.37\\bin\\httpd.exe -d D:/wamp64/bin/apache/apache2.4.37'
[Thu May 23 16:17:51.689329 2019] [mpm_winnt:notice] [pid 11892:tid 752] AH00418: Parent: Created child process 13784
AH00112: Warning: DocumentRoot [D:/wamp64/bin/apache/apache2.4.37/dr] does not exist
AH00112: Warning: DocumentRoot [D:/wamp64/bin/apache/apache2.4.37/dr] does not exist
[Thu May 23 16:17:52.372321 2019] [mpm_winnt:notice] [pid 13784:tid 708] AH00354: Child: Starting 64 worker threads.

Re: Web loads just sometimes.
Posted by: RiggsFolly (Moderator)
Date: May 23, 2019 04:21PM

Does this line in the output you show us give you any clues

AH00112: Warning: DocumentRoot [D:/wamp64/bin/apache/apache2.4.37/dr] does not exist

Note: you should not be placing your Virtual Hosts in that location, if in fact that is a VH.

But you should definitely be using Virtual Hosts.
See the sticky post about Virtual Hosts.

---------------------------------------------------------------------------------------------
(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 2 time(s). Last edit at 05/23/2019 04:27PM by RiggsFolly.

Re: Web loads just sometimes.
Posted by: Trond (---.81-167-166.customer.lyse.net)
Date: May 24, 2019 10:27AM

Thanks for your reply. I have seen that error but didnt realize it could be a virtual host case. I actually had a virtual host that dontained just the name DR and not the whole path that probable created this error. My problem isnt however with that site, it actually workes just fine. I also have another site called "afys" that is correctly set up with virtual host. That site is still not loading.

Re: Web loads just sometimes.
Posted by: RiggsFolly (Moderator)
Date: May 24, 2019 10:43AM

Hi

Please show us your httpd-vhosts.conf and your HOSTS files.

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

Re: Web loads just sometimes.
Posted by: Trond (---.bb.online.no)
Date: May 24, 2019 12:53PM

How can I include those two files here?

Re: Web loads just sometimes.
Posted by: RiggsFolly (Moderator)
Date: May 24, 2019 12:54PM

Copy paste

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

Re: Web loads just sometimes.
Posted by: Trond (---.bb.online.no)
Date: May 24, 2019 01:31PM

Must mention something here to. I mostly operates thw web computer as a server and connects trough the local network. I have made manual changes to my laptops host file aswell to make this work. There I have added the local ip for the "webserver" and connected that to a domain name so I can operate the web by usin a doman name.

What I have added to my laptop is: 192.168.1.39 web.prosite.no

By doing this I have also been able to connect to the webs trough the internet. When a web is finished I make a backup and restores it at their new home and domain name.

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 all granted
  </Directory>
</VirtualHost>
<VirtualHost *:80>
	ServerName dev
	DocumentRoot "d:/wamp64/www/ps"
	<Directory  "d:/wamp64/www/ps/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
<VirtualHost *:80>
	ServerName Test
	DocumentRoot "d:/wamp64/www/test"
	<Directory  "d:/wamp64/www/test/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
<VirtualHost *:80>
	ServerName Test2
	DocumentRoot "d:/wamp64/www/test2"
	<Directory  "d:/wamp64/www/test2/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>

<VirtualHost *:80>
	ServerName YF
	DocumentRoot "d:/wamp64/www/YF"
	<Directory  "d:/wamp64/www/YF/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>

<VirtualHost *:80>
	ServerName afys
	DocumentRoot "d:/wamp64/www/afys"
	<Directory  "d:/wamp64/www/afys/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
<VirtualHost *:80>
	ServerName asdyr
	DocumentRoot "d:/wamp64/www/asdyr"
	<Directory  "d:/wamp64/www/asdyr/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
<VirtualHost *:80>
	ServerName Skoklefald
	DocumentRoot "d:/wamp64/www/skoklefald"
	<Directory  "d:/wamp64/www/skoklefald/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
<VirtualHost *:80>
	ServerName wpBasis
	DocumentRoot "d:/wamp64/www/wpbasis"
	<Directory  "d:/wamp64/www/wpbasis/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
<VirtualHost *:80>
	ServerName ByggT
	DocumentRoot "d:/wamp64/www/byggt"
	<Directory  "d:/wamp64/www/byggt/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
#
<VirtualHost *:80>
	ServerName askarate
	DocumentRoot "d:/wamp64/www/askarate"
	<Directory  "d:/wamp64/www/askarate/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
#
<VirtualHost *:80>
	ServerName Allidrett
	DocumentRoot "d:/wamp64/www/allidrett"
	<Directory  "d:/wamp64/www/allidrett/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
#
<VirtualHost *:80>
	ServerName Dikter
	DocumentRoot "d:/wamp64/www/dikter"
	<Directory  "d:/wamp64/www/dikter/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
#
<VirtualHost *:80>
	ServerName BHVF
	DocumentRoot "d:/wamp64/www/bhvf"
	<Directory  "d:/wamp64/www/bhvf/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
#
<VirtualHost *:80>
	ServerName PCI
	DocumentRoot "d:/wamp64/www/pci"
	<Directory  "d:/wamp64/www/pci/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
#
<VirtualHost *:80>
	ServerName ms
	DocumentRoot "d:/wamp64/www/ms"
	<Directory  "d:/wamp64/www/ms/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
#
<VirtualHost *:80>
	ServerName binders
	DocumentRoot "d:/wamp64/www/binders"
	<Directory  "d:/wamp64/www/binders/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
#
<VirtualHost *:80>
	ServerName Marshmallow
	DocumentRoot "d:/wamp64/www/marshmallow"
	<Directory  "d:/wamp64/www/marshmallow/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
#
<VirtualHost *:80>
	ServerName Fantin
	DocumentRoot "d:/wamp64/www/fantin"
	<Directory  "d:/wamp64/www/fantin/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
#
#
<VirtualHost *:80>
	ServerName mm
	DocumentRoot "d:/wamp64/www/mm"
	<Directory  "d:/wamp64/www/mm/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
#
<VirtualHost *:80>
	ServerName Elise
	DocumentRoot "d:/wamp64/www/elise"
	<Directory  "d:/wamp64/www/elise/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
#
<VirtualHost *:80>
	ServerName JML
	DocumentRoot "d:/wamp64/www/jml"
	<Directory  "d:/wamp64/www/jml/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>


#
<VirtualHost *:80>
	ServerName DR
	DocumentRoot "d:/wamp64/www/dr"
	<Directory  "d:/wamp64/www/dr/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>


<------end of file------>


HOSTS file:

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

127.0.0.1	dev
::1	dev

127.0.0.1	Test
::1	Test

127.0.0.1	Test2
::1	Test2

127.0.0.1	YF
::1	YF
127.0.0.1	afys
::1	afys

127.0.0.1	asdyr
::1	asdyr

127.0.0.1	Skoklefald
::1	Skoklefald

127.0.0.1	wpBasis
::1	wpBasis

127.0.0.1	ByggT
::1	ByggT

127.0.0.1 localhost
::1 localhost

127.0.0.1	askarate
::1	askarate

127.0.0.1	Alliett
::1	Alliett

127.0.0.1	Dikter
::1	Dikter

127.0.0.1	BHVF
::1	BHVF

127.0.0.1	PCI
::1	PCI

127.0.0.1	ms
::1	ms

127.0.0.1	binders
::1	binders

127.0.0.1	Marshmallow
::1	Marshmallow

127.0.0.1	Fantin
::1	Fantin

127.0.0.1	mm
::1	mm

127.0.0.1	Elise
::1	Elise

127.0.0.1	JML
::1	JML

127.0.0.1	DR
::1	DR


<----- end of file --->



Edited 1 time(s). Last edit at 05/24/2019 01:41PM by RiggsFolly.

Re: Web loads just sometimes.
Posted by: RiggsFolly (Moderator)
Date: May 24, 2019 02:07PM

Ok.

So which site does not work?

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

Re: Web loads just sometimes.
Posted by: Trond (---.bb.online.no)
Date: May 24, 2019 02:39PM

The site called afys is the one that I was goint to work on that doesn work.

Another site that WORKS is MS wich is on hold for the moment although I've updated it and done som small stuff there. When that site loads I know at least that the server is up and running. Sometimes there is updates on windows 10, and I have to manually start wampserver when the pc has been booted.

Re: Web loads just sometimes.
Posted by: RiggsFolly (Moderator)
Date: May 24, 2019 03:14PM

On the Laptop you will need to tell that laptop where to find this site.

You do that by adding to the HOSTS file on the Laptop. But you use the sites ServerName `afys` in this case.

So the hosts file on the laptop should be

192.168.1.39  afys

I am assuming WAMPServer is running on `192.168.1.39` and also that you do not have an IPV6 network, but if you want you could also add

192.168.1.39  afys
::1        afys

In the browser you would also use the address

http://afys

This ensures that you are attempting to load a domain name that Apache understands so it loads the site from the correct DocumentRoot.

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

Re: Web loads just sometimes.
Posted by: Trond (---.bb.online.no)
Date: May 24, 2019 08:59PM

Doing this results in a 403 Forbidden error. Its saying I doesnt have permission to access / on this server.

Re: Web loads just sometimes.
Posted by: Trond (---.bb.online.no)
Date: May 24, 2019 09:23PM

Just tried to switch php version from 7.2.12 to 7.0.23 and then the site just loaded at web.prosite.no/afys adress. Is there some fault in the php perhaps?

Re: Web loads just sometimes.
Posted by: RiggsFolly (Moderator)
Date: May 27, 2019 08:53AM

Did you check if that version of WordPress runs on PHP7.2?

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

Re: Web loads just sometimes.
Posted by: Trond (---.bb.online.no)
Date: May 27, 2019 11:11AM

No, that never thougth about that. But, I have several other almost identical Wordpress sites that actually worked on that version to.

Re: Web loads just sometimes.
Posted by: RiggsFolly (Moderator)
Date: May 27, 2019 11:21AM

Check the actual version of WordPress that each site is using!

Then check what version of PHP is recomended for that version of WordPress.

You might also like to upgrade all your WordPress versions to the latest versions, for simple PHP compatibility and security reasons

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

Sorry, only registered users may post in this forum.