I'm running WampServer 3.2.6 64-bit and I modified the virtual host for servername "localhost" to point to a different folder (eh__coding) that was not a subfolder of wamp64/ folder.
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "Z:\EHW_CUSTOM\eh__coding"
<Directory "Z:\EHW_CUSTOM\eh__coding/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
I moved all the files that were in "www/" folder into eh__coding and restarted WampServer. The index.php file for the localhost interface renders, but PHP doesn't work and neither does MySQL. There are some XDebug errors as well.
A SAMPLING OF ERRORS:
Notice: Trying to access array offset on value of type null in
Z:\EHW_CUSTOM\eh__coding\index.php on line 529
Notice: Undefined variable: langues in Z:\EHW_CUSTOM\eh__coding\index.php
on line 468
Notice: Trying to access array offset on value of type bool in
C:\wamp64\scripts\config.inc.php on line 13
Call Stack
# Time Memory Function Location
1 0.2596 369368 {main}( ) ...\index.php:0
2 0.2608 373912 require( 'C:\wamp64\scripts\config.inc.php ) ...\index.php:12
Then at the bottom of localhost page it gives this error:
*** ERROR *** The PHP configuration loaded file is: c:/wamp64/bin/apache/apache2.4.51/bin/php.ini - should be: /bin/apache/apache// or /bin/php/php/phpforapache.ini
You must perform: Right-click icon Wampmanager -> Refresh
I refreshed but it didn't solve anything.
Thanks so much
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "Z:\EHW_CUSTOM\eh__coding"
<Directory "Z:\EHW_CUSTOM\eh__coding/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
I moved all the files that were in "www/" folder into eh__coding and restarted WampServer. The index.php file for the localhost interface renders, but PHP doesn't work and neither does MySQL. There are some XDebug errors as well.
A SAMPLING OF ERRORS:
Notice: Trying to access array offset on value of type null in
Z:\EHW_CUSTOM\eh__coding\index.php on line 529
Notice: Undefined variable: langues in Z:\EHW_CUSTOM\eh__coding\index.php
on line 468
Notice: Trying to access array offset on value of type bool in
C:\wamp64\scripts\config.inc.php on line 13
Call Stack
# Time Memory Function Location
1 0.2596 369368 {main}( ) ...\index.php:0
2 0.2608 373912 require( 'C:\wamp64\scripts\config.inc.php ) ...\index.php:12
Then at the bottom of localhost page it gives this error:
*** ERROR *** The PHP configuration loaded file is: c:/wamp64/bin/apache/apache2.4.51/bin/php.ini - should be: /bin/apache/apache// or /bin/php/php/phpforapache.ini
You must perform: Right-click icon Wampmanager -> Refresh
I refreshed but it didn't solve anything.
Thanks so much