- Install powershell 7 and open pwsh terminal
- Clone https://github.com/simdsoft/xweb.git and goto to root directory of xweb
./xweb install
./etc/certs/gen.sh
, on windows, please enter wsl to execute scriptgen.sh
./xweb start
- Add domain
sandbox.xweb.dev
to your system hosts - Install
./etc/certs/ca-cer.crt
toTrusted Root Certificate Authorities
of current user - visit web on your browser
- https://sandbox.xweb.dev/phpinfo.php to check does php works
- https://sandbox.xweb.dev/phpmyadmin to manage database
Note:
if xweb was moved to other location or you modify domain name in local.properties
,
then please re-run xweb.ps1 init nginx -f
and restart nginx by xweb.ps1 restart nginx
xweb.ps1 action_name targets
action_name
:install
,start
,stop
,restart
targets
(optional): possible values:all
,nginx
,php
,phpmyadmin
,mysql
examples:
xweb.ps1 install
: install WNMP on windows or LNMP on ubuntu linuxxweb.ps1 start
: start nginx, mysqld, php-cgixweb.ps1 stop
: stop nginx, mysqld, php-cgixweb.ps1 restart
: restart nginx, mysqld, php-cgixweb.ps1 passwd mysql
: reset mysqld password
- Windows: ready
- Ubuntu Linux: testing
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_CHECKS
statements at HAED and tail - Delete UTF-8 BOM of file
- Delete: