wsl install lamp

sudo apt-get updatephp

sudo apt-get install lamp-server^html

 

/etc/init.d/apache2 startmysql

/etc/init.d/mysql startsql

 

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

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-mbstringjson

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

 

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

 phpenmod  mcryptcurl

 

# enable moduleside

sudo a2enmod rewrite expires vhost_aliasui

 

/var/www/html/

 

nano test.local.conf

 

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

相關文章
相關標籤/搜索