Setup Your Portable Dev Environment on Windows with PHP 8 & MySQL 8

Download Apache Web server
C:
+- wamp
+- apache
+- all the apache stuff like bin, conf, etc...
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 8 (RC) up and running
C:
+- wamp
+- apache
+- htdocs
+- mysql
+- php
+- tmp
C:\wamp\mysql\bin\my_print_defaults.exe
[mysqld]
port=3306
innodb_buffer_pool_size=998M
character-set-server=utf8
transaction_isolation = READ-COMMITTED
[client]
port=3306
mysql\bin\mysqld.exe --defaults-extra-file="my.ini"
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';
C:
+- wamp
+- apache
+- htdocs
+- mysql
+- php
+- tmp
+- vscode
+- my.ini
+- mysqld.bat

That’s it.

--

--

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