Setup Your Dev Environment on Windows - with PHP 7 & MySQL 5.7

Time goes by and newer PHP / MySQL versions are available. We updated our story to include versions 8 here.

Download Options for Apache
C:
+- wamp
+- apache
+- all the apache stuff like bin, conf, etc...
Download Options for VC14 Redistributables
C:
+- wamp
+- apache
+- all the apache stuff like in, conf, etc...
+- htdocs (still empty)
+- php
+- all the php stuff like ext, extras and logs
+- tmp (still empty)
cd c:\wamp\apache\bin
httpd
<?php phpinfo(); ?>
PHP Version 7.0.1
Congratulations on a PHP 7 powered web server
C:
+- wamp
+- apache
+- htdocs
+- mysql
+- php
+- tmp
bin\mysqld --initialize --console
bin\mysqld --initialize --basedir=c:\wamp\mysql --datadir=c:\wamp\mysql\data --console
bin\mysql -uroot -p
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'YourPassword';

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store