wo site create portal.local --mysql not working inside WSL2
michaelangelocobo opened this issue · comments
Michael Angelo F. Cobo commented
Inside WSL2:
wo site create portal.local --mysql
Open portal.local and it incorrectly displays the wo backend:
To fix, I need to manually perform the following:
- add the
listen
line inside /etc/nginx/sites-available/portal.local
server {
listen portal.local:80;
server_name portal.local www.portal.local;
...
-
reload nginx
sudo nginx -t && sudo service nginx reload
-
Open portal.local in browser (hard reload if it did not reflect the changes)
System Information
-
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
-
wo info
NGINX (1.24.0 ):
user www-data
worker_processes auto
worker_connections 50000
keepalive_timeout 8
fastcgi_read_timeout 300
client_max_body_size 100m
allow 127.0.0.1 ::1
PHP 7.2 is not installed
PHP (8.2.16):
user
expose_php Off
memory_limit 128M
post_max_size 100M
upload_max_filesize 100M
max_execution_time 300
Information about www.conf
ping.path /ping
pm.status_path /status
process_manager ondemand
pm.max_requests 1500
pm.max_children 50
pm.start_servers 10
pm.min_spare_servers 5
pm.max_spare_servers 15
request_terminate_timeout 300
xdebug.profiler_enable_trigger off
listen php82-fpm.sock
Information about debug.conf
ping.path /ping
pm.status_path /status
process_manager ondemand
pm.max_requests 1500
pm.max_children 50
pm.start_servers 10
pm.min_spare_servers 5
pm.max_spare_servers 15
request_terminate_timeout 300
xdebug.profiler_enable_trigger on
listen 127.0.0.1:9182
MySQL (10.11.7-MariaDB) on localhost:
port 3306
wait_timeout 60
interactive_timeout 28800
max_used_connections 3
datadir /var/lib/mysql/
socket /var/run/mysqld/mysqld.sock
my.cnf [PATH] /etc/mysql/conf.d/my.cnf
-
nginx -V
nginx version: nginx/1.24.0 (WordOps Nginx-wo)
built with OpenSSL 3.0.2 15 Mar 2022
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -ffile-prefix-map=/build/nginx-YgM00t/nginx-1.24.0=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -flto -ffat-lto-objects -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -fPIC -flto -ffat-lto-objects' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --build='WordOps Nginx-wo' --with-debug --with-pcre-jit --with-file-aio --with-threads --with-http_ssl_module --with-http_v2_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-openssl-opt='zlib enable-ec_nistp_64_gcc_128 enable-tls1_3 no-ssl3-method -fPIC' --with-http_addition_module --with-http_geoip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_sub_module --with-http_xslt_module --without-http_memcached_module --add-module=/build/nginx-YgM00t/nginx-1.24.0/debian/modules/headers-more-nginx-module --add-module=/build/nginx-YgM00t/nginx-1.24.0/debian/modules/nginx-auth-pam --add-module=/build/nginx-YgM00t/nginx-1.24.0/debian/modules/nginx-cache-purge --add-module=/build/nginx-YgM00t/nginx-1.24.0/debian/modules/nginx-echo --add-module=/build/nginx-YgM00t/nginx-1.24.0/debian/modules/nginx-upstream-fair --add-module=/build/nginx-YgM00t/nginx-1.24.0/debian/modules/ngx_http_substitutions_filter_module --add-module=/build/nginx-YgM00t/nginx-1.24.0/debian/modules/memc-nginx-module --add-module=/build/nginx-YgM00t/nginx-1.24.0/debian/modules/srcache-nginx-module --add-module=/build/nginx-YgM00t/nginx-1.24.0/debian/modules/HttpRedisModule --add-module=/build/nginx-YgM00t/nginx-1.24.0/debian/modules/redis2-nginx-module --add-module=/build/nginx-YgM00t/nginx-1.24.0/debian/modules/ngx_devel_kit --add-module=/build/nginx-YgM00t/nginx-1.24.0/debian/modules/set-misc-nginx-module --add-module=/build/nginx-YgM00t/nginx-1.24.0/debian/modules/nginx-module-vts --add-module=/build/nginx-YgM00t/nginx-1.24.0/debian/modules/ngx_brotli
-
wo -v
WordOps v3.19.1
Copyright (c) 2024 WordOps.
-
wp cli info --allow-root
OS: Linux 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64
Shell: /bin/bash
PHP binary: /usr/bin/php8.3
PHP version: 8.3.3-1+ubuntu22.04.1+deb.sury.org+1
php.ini used: /etc/php/8.3/cli/php.ini
MySQL binary: /usr/bin/mysql
MySQL version: mysql Ver 15.1 Distrib 10.11.7-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper
SQL modes:
WP-CLI root dir: phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir: phar://wp-cli.phar/vendor
WP_CLI phar path: /var/www
WP-CLI packages dir:
WP-CLI cache dir: /home/pxmike/.wp-cli/cache
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 2.10.0
-
curl -sL git.io/fjAp3 | sudo -E bash -
Here the link to provide in your github issue : https://transfer.vtbox.net/rONqNB/wordops.txt
github-actions commented
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
github-actions commented
This issue was closed because it has been stalled for 5 days with no activity.