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>

上一篇:iOS:UIView、UIControl、UIButton、UILabel简单的属性和方法常识


下一篇:windows10 安装wsl子系统 ubuntu进行php开发与调试