How to Develop Drupal 8, PHP and MySQ on Windows 10 Linux Subsystem
This document is still in edit
When developing using PHP7.2-fpm (A highly PHP Engine for high traffic PHP Sites) make sure that you have enabled Status Page to help you determine the health of PHP. This is very useful, to do this: open up php7.2/fpm/pool.d/www.config and uncomment pm/status_path = /status
After the above is done, type; sudo php-fpm -t (to see if the configuration has no errors)
Then restart PHP-fpm Server by typing: sudo systemctl restart php-fpm
sudo service mysql start (to start the database)
sudo service php7.2-fpm start (to start the PHP server for processing PHP files)
sudo service nginx start (for starting nginx server)
sudo service memcached start (to start Memcached server)
How to Uninstall PHP7.2-fpm if it gives you problems
sudo apt-get autoremove --purge php-fpm
sudo apt-get clean (to the clean the apt system)
sudo apt-get autoclean (to rebuilt the apt system)
sudo apt-get autoremove (to remove installation that never succeeded)
MySQL
ps aux | grep mysqld (to see mysqld processes just in case you want to kill all processes and reset the root password)
killall mysqld mysqld_safe (Kills all processes for mysqld and mysqld_safe [This command does not work sometimes make sure you check if there are any MySQL process hanging])
After 9 and 10 are performed, you can now restart MySQL or do whatever you wanted to do in the first place.