-
Notifications
You must be signed in to change notification settings - Fork 0
How to Install LAMP Stack Server on Windows Subsystem Linux (WSL Windows 10)
ssharizal edited this page Jan 2, 2018
·
3 revisions
Now with windows 10 (anniversary edition), you can install the windows subsystem for Linux, which provides an environment for a Linux userspace to operate.
Requirements:
windows 10 (64 bit) anniversary edition or later
install windows subsystem linux
Guide to installing WSL -> Link
Update the system:
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install lamp-server^
remember the caret (^) at the end of the command.
add these 2 lines in /etc/apache2/apache2.conf :
Servername localhost
AcceptFilter http none
then you can start apache :
/etc/init.d/apache2 start
http://127.0.0.1 or http://localhost
<?php
phpinfo();
?>
Open Web Browser and type this URL:
http://127.0.0.1/info.php or http://localhost/info.php
service mysql start
mysql -uroot -ppassword