1 - Windows version used (Specify version number AND whether 32 or 64 bit)
windows 7 pro 64bit
2 - Version WampServer (Specify version number AND whether 32 or 64 bit)
WampServer Version 3.1.4 64bit - installed from file wampserver3.1.4_x64.exe downloaded from
[
sourceforge.net]
It was a vanilla install, I changed nothing and specified nothing - I just let it run (in Administrator mode, of course)
3 - Apache Version
2.4.35, as delivered in the WAMP file I installed from
4 - PHP Version
7.2.10, as delivered in teh WAMP file I installed from
5 - MySQL Version
5.7.23, as delivered in WAMP file I installed from
5a - MariaDB version if applicable n/a
6 - What color is the WampServer icon (in the notification area of the taskbar)
GREEN
7 - In the file c:\Windows\System32\drivers\etc\hosts, what are the active lines? * Active means no # at the beginning of the line. --- there are no "actrive" lines, all are comments, i.e., all begin with #
If the WampServer icon is green:
8 - Do you have access to localhost (Homepage WampServer)?
YES
8a - If so, is there an error message at the bottom of the page?
NO
9 - Do you have access to phpMyAdmin?
Yes - I am able to create databases and users, and such.
10 - If you refer to an error message, please include the EXACT wording of the error in your post
As I posted in my orginal message:
-------------------------------
Warning: fopen(C:/Windows/system32/drivers/etc/hosts): failed to open stream: Resource temporarily unavailable in C:\wamp64\www\add_vhost.php on line 446
Call Stack
# Time Memory Function Location
1 0.0000 410920 {main}( ) ...\add_vhost.php:0
2 0.0156 486824 fopen ( ) ...\add_vhost.php:446
( ! ) Warning: fwrite() expects parameter 1 to be resource, boolean given in C:\wamp64\www\add_vhost.php on line 447
Call Stack
# Time Memory Function Location
1 0.0000 410920 {main}( ) ...\add_vhost.php:0
2 0.0156 487440 fwrite ( ) ...\add_vhost.php:447
( ! ) Warning: fclose() expects parameter 1 to be resource, boolean given in C:\wamp64\www\add_vhost.php on line 484
Call Stack
# Time Memory Function Location
1 0.0000 410920 {main}( ) ...\add_vhost.php:0
2 0.0156 487168 fclose ( ) ...\add_vhost.php:484
-------------------------------------------------
11 - If you use an Antivirus and / or Firewall, please include the names of these
AVG ZoneAlarm
12 - What is the full path to the installation of WampServer (eg D:\wamp\)
c:/wamp64
13 - If you have one or more Virtual Hosts defined, please show their definition(s)
Contents of httpd-vhosts.conf (from C:\wamp64\bin\apache\apache2.4.35\conf\extra\)
-------------------------------------
# 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 wpdevelop
DocumentRoot "c:/wamp64/www/wp"
<Directory "c:/wamp64/www/wp/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
<VirtualHost *:80>
ServerName wpdeveloper
DocumentRoot "c:/wamp64/www/wp"
<Directory "c:/wamp64/www/wp/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
<VirtualHost *:80>
ServerName wptheme
DocumentRoot "c:/wamp64/www/wp"
<Directory "c:/wamp64/www/wp/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
<VirtualHost *:80>
ServerName wordpress
DocumentRoot "c:/wamp64/www/wp"
<Directory "c:/wamp64/www/wp/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
------------------------------------------
If I try to load any of the virtual hosts (click on them in the virtual host list), the browser goes after the Internet domains, not local virtual hosts. Which is exactly what it should do since the virtual host configurations did not complete because the host file could not be opened and, thus, was not updated.
And, as I said before, I've run WAMP normally and also "As Administrator" and the results or the same.
In the past, when editing the host files manually for my own purposes, I've never been able to save the hosts file, even running Notepad As Administrator. When I have needed to change hosts, in the past, I had to start Windows in Safe Mode and then run Notepad As Administrator.
The problem I'm having with WAMP is that, for whatever reason, it can't open the hosts file - I don't know if it could update it if the hosts file could be opened - haven't gotten that far yet.
What other information do you want?
If I delete the entries in the httpd-vhosts.conf file for the virutal hosts which failed to be configured completely, will that remove all traces of them?