wenv - An all in one web environment(nginx + mysql/mariadb + php) supporting both windows, ubuntu, macos
- ✅ Windows
- ✅ Ubuntu
- ✅ macOS (You need install brew first)
- Install powershell 7 and open pwsh terminal
- Clone https://github.com/simdsoft/wenv.git and goto to root directory of wenv
./wenv install./etc/certs/gen.sh, on windows, please enter wsl to execute scriptgen.sh./wenv start
- Add domain
sandbox.wenv.devto your system hosts - Install
./etc/certs/ca-cer.crttoTrusted Root Certificate Authoritiesof current user - visit web on your browser
- http:
- http://localhost/phpinfo.php to check does php works
- http://localhost/phpmyadmin to manage database
- https
- https://sandbox.wenv.dev/phpinfo.php to check does php works
- https://sandbox.wenv.dev/phpmyadmin to manage database
visit by curl.exe:
curl -v --ssl-no-revoke https://sandbox.wenv.dev/phpinfo.phpNote:
- http:
if wenv was moved to other location or you modify domain name in local.properties,
then please re-run wenv init nginx -f and restart nginx by wenv restart nginx
wenv action_name targets
action_name:install,start,stop,restarttargets(optional): possible values:all,nginx,php,phpmyadmin,mysql
examples:
wenv install: install WNMP on windows or LNMP on ubuntu linuxwenv start: start nginx, mysqld, php-cgiwenv stop: stop nginx, mysqld, php-cgiwenv restart: restart nginx, mysqld, php-cgiwenv passwd mysql: reset mysqld password
Note:
- nginx, mysql runas current user
- php runas root
-
Use aliyun DMS, ensure follow option was checked
- Data And Structure
- Compress insert statements
-
Aliyun website control console
- Delete:
FOREIGN_KEY_CHECKSstatements at HAED and tail - Delete UTF-8 BOM of file
- Delete: