wsl install lamp

sudo apt-get update

sudo apt-get install lamp-server^

 

/etc/init.d/apache2 start

/etc/init.d/mysql start

 

sudo apt-get -y install mysql-client mysql-server

sudo apt-get -y install php7.0 php7.0-cli php7.0-common php7.0-curl php7.0-mysql php7.0-mcrypt php7.0-json php-mbstring

sudo apt-get -y install apache2 libapache2-mod-php

 

apt-get install php5.6 php5.6-mcrypt
apt-get install php5.6-bcmath

 phpenmod  mcrypt

 

# enable modules

sudo a2enmod rewrite expires vhost_alias

 

/var/www/html/

 

nano test.local.conf

 

<VirtualHost *:80>
DocumentRoot /mnt/c/b2ke_com
ServerName b2ke.local
</VirtualHost>
<Directory /mnt/c/b2ke_com>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>

posted @ 2018-01-21 10:33 meetrice 阅读(...) 评论(...) 编辑 收藏