WampServer3

How to Change the WWW Root Directory on Wampserver 3

Yes, we all want to save our files and documentation from system crash of C Drive. To avoid this issue we generally locate our “WWW” or “htdocs” directory in different location from the default installation directory i.e. C Drive. So it’s very easy to change the “WWW” directory in latest WampServer 3 that comes with PHP 5.6 , 7.x , MySQL as well as MariaDB.  Click on WampServer icon in right side bottom taskbar Select the Apache menu  -> httpd-vhosts.conf from the Pullup menu box. Search (CTRL + F)for the term “DocumentRoot” Change the DocumentRoot path DocumentRoot “${INSTALL_DIR}/www” <Directory “${INSTALL_DIR}/www/”> to your custom directory e.g. DocumentRoot “E:/www” <Directory “E:/www/”> Save your changes and “Restart All Services” When you browse to http://localhost, before the directory change the localhost window looks like this one. And after the change for directory the localhost window looks like this one.

Change PHP version 5.6 to 7.x in WampServer 3

 Click on WampServer icon in right side bottom taskbar Select the PHP menu  ->Version  from the Pullup menu box. Check the version via browsing http://localhost or via command line typing following command php -version Done ! Recommended Readings: https://planetthemes.com/how-to-change-the-www-root-directory-on-wampserver-3/