Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

PHP and MySQL don't work after moving localhost location in virtual host (no replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>