WAMP Warning and Fatal Error messages
Posted by: mycdnprince (---.lb.shawcable.net)
Date: July 09, 2020 02:37AM

Working on a localhost site with a fresh install of WAMP64. Changed c:/wamp64/www to F:/Sites/ and now have the following errors that I can't make heads or tails of....

Warning: require(../scripts/config.inc.php): failed to open stream: No such file or directory in F:\Sites\add_vhost.php on line 10

and

Fatal error: require(): Failed opening required '../scripts/config.inc.php' (include_path='.;C:\php\pear') in F:\Sites\add_vhost.php on line 10

I'm lost here. Any help would definitely be appreciated. Thanks.

Options: ReplyQuote
Re: WAMP Warning and Fatal Error messages
Posted by: Otomatic (Moderator)
Date: July 09, 2020 09:36AM

Hi,

Wampserver has never been defined or presented as a portable application.

On a related zany note, why don't you try replacing c:\windows\system32 with c:\MySystem?

For your local sites, you have to use the VitualHost, as with all hosting providers, and there, you can put your sites wherever you want, even in G:\Sites
See :
The need for Virtual Host
and
Wampserver 3 - Create or add a VirtualHost

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



Edited 1 time(s). Last edit at 07/09/2020 12:00PM by Otomatic.

Options: ReplyQuote
Re: WAMP Warning and Fatal Error messages
Posted by: mycdnprince (---.lb.shawcable.net)
Date: July 09, 2020 05:47PM

Thanks for answering and for the helpful links but still dealing with the error messages that I have no answer for...not even what the messages are saying or most importantly what they want me to do?

Options: ReplyQuote
Re: WAMP Warning and Fatal Error messages
Posted by: RiggsFolly (Moderator)
Date: July 09, 2020 06:32PM

Please describe EXACTLY HOW and WHERE you did Changed c:/wamp64/www to F:/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
Re: WAMP Warning and Fatal Error messages
Posted by: mycdnprince (---.lb.shawcable.net)
Date: July 09, 2020 07:06PM

Went to httpd.conf and changed DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/"> to DocumentRoot "F:/Sites/"
<Directory "F:/Sites/">.
Then I went to httpd-vhosts.conf and entered the following:
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "F:/Sites/"
<Directory "F:/Sites/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>


#
<VirtualHost *:80>
ServerName mr-sport
DocumentRoot "Fconfused smileyites/mr-sport"
<Directory "F:/Sites/mr-sport/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

Hope this helps you help me. Thanks.

Options: ReplyQuote
Re: WAMP Warning and Fatal Error messages
Posted by: RiggsFolly (Moderator)
Date: July 09, 2020 07:41PM

So UNDO this bit. All you need to do is create a VirtualHosts, that VH can live on the moon if you like you DONT need to change the base setting. THATS THE POINT OF A Virtual Host

<Directory "${INSTALL_DIR}/www/"> to DocumentRoot "F:/Sites/"
<Directory "F:/Sites/">.

Then return the VH for locahost to its original glory

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

Leave the `mr-sport` VH as it is and you will have a site called `mr-sport` that will be served from your F drive folder.

---------------------------------------------------------------------------------------------
(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: WAMP Warning and Fatal Error messages
Posted by: mycdnprince (---.lb.shawcable.net)
Date: July 09, 2020 09:01PM

Did as instructed only to now get 2 out of 3 services running (no green light)?

Options: ReplyQuote
Re: WAMP Warning and Fatal Error messages
Posted by: RiggsFolly (Moderator)
Date: July 09, 2020 09:19PM

OK, so which service is not running, I expect its Apache.
Look in the error log \wamp64\logs
and if not there check the Windows Event Viewer for any recent errors form Apache or MySQL or mariaDB

---------------------------------------------------------------------------------------------
(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: WAMP Warning and Fatal Error messages
Posted by: mycdnprince (---.lb.shawcable.net)
Date: July 09, 2020 09:56PM

This is what I have installed per your instructions, followed by the error message I got from Apache.

<Directory "${INSTALL_DIR}/www/"> to DocumentRoot "F:/Sites/"
<Directory "F:/Sites/">.

# 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>
#ErrorDocument 404 /missing.html
</VirtualHost>


#
<VirtualHost *:80>
ServerName mr-sport
DocumentRoot "F:/Sites/mr-sport"
<Directory "F:/Sites/mr-sport/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>


[Thu Jul 09 12:58:20.990467 2020] [access_compat:error] [pid 7076:tid 1264] [client ::1:59692] AH01797: client denied by server configuration: C:/wamp64/www/mr-sport/wp-content/uploads/2019/08/sports_sprite.png, referer: [localhost]
[Thu Jul 09 12:58:21.008094 2020] [access_compat:error] [pid 7076:tid 1264] [client ::1:59693] AH01797: client denied by server configuration: C:/wamp64/www/mr-sport/wp-content/uploads/2019/08/sports_sprite.png, referer: [localhost]
[Thu Jul 09 13:02:58.647149 2020] [mpm_winnt:notice] [pid 8844:tid 804] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Thu Jul 09 13:03:00.651146 2020] [mpm_winnt:notice] [pid 7076:tid 744] AH00364: Child: All worker threads have exited.
[Thu Jul 09 13:03:00.747146 2020] [mpm_winnt:notice] [pid 8844:tid 804] AH00430: Parent: Child process 7076 exited successfully.

Options: ReplyQuote
Re: WAMP Warning and Fatal Error messages
Posted by: mycdnprince (---.lb.shawcable.net)
Date: July 09, 2020 10:17PM

I found my mistake. Changed the following and now everything works. Thank you so much for your help. It is very much appreciated.

DocumentRoot "F:/Sites/"
<Directory "F:/Sites/">.

Sincerely,
John

Options: ReplyQuote
Re: WAMP Warning and Fatal Error messages
Posted by: Otomatic (Moderator)
Date: July 10, 2020 10:09AM

Hi,

Since Apache 2.4.41, the files httpd.conf and httpd-vhosts.conf as they were just after the installation of Wampserver are archived in :
wamp(64)\bin\apache\apache2.4.4x\conf\original\wampserver\httpd.conf
wamp(64)\bin\apache\apache2.4.4x\conf\original\wampserver\httpd-vhosts.conf

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.