All Questions
Tagged with windows-subsystem-for-linux php
125
questions
1
vote
2
answers
97
views
MySQL docker container stuck reloading
My stack is win10/wsl2/ubuntu/docker desktop.
I'm stuck on running a MySQL docker container.
This is a part of my docker-compose.yml:
mysql:
hostname: a-mysql
container_name: a-...
0
votes
0
answers
48
views
Xdebug is not working CLI debugging way, but WEB debugging works
My setup is Windows + WSL2 + Ubuntu + Docker, I'm running a Symfony project. Web debugging works fine, for example when I open some page and trigger some function, it works. However, when I run some ...
1
vote
2
answers
52
views
How to install IBM DSR Client and some extensions for PHP in WSL
Im currently trying to install the IBM Data Server Runtime Client and some extensions, pdo_ibm and ibm_db2, to use in a PHP / Laravel project.
For now, I have installed WSL 2, to have a Ubuntu ...
0
votes
0
answers
37
views
How to debug a Magento 2 project on Visual Studio or PhpStorm in Windows 10 with WSL2 Environment using Nginx and PHP 8.1?
I'm currently working on a Magento 2 project and need guidance on debugging it effectively within a Windows 10 environment utilizing WSL2, Nginx, and PHP 8.1. My primary development tools are Visual ...
0
votes
0
answers
51
views
Problems writing data with empty lines to a .htaccess File on Ubuntu WSL
I have problems with writing data to a .htaccess file on a Ubuntu WSL with PHP.
The following is the case:
If i replace the empty lines of the following string:
#BEGIN BLOCK1
#END BLOCK1
#BEGIN ...
0
votes
0
answers
182
views
Could not read package.json: Error: ENOENT: no such file or directory in ubuntu wsl
Issue
'\\wsl.localhost\Ubuntu-22.04\home\test\example-app'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
npm ERR! ...
0
votes
1
answer
60
views
Bespoke Docker setup in WSL2
Just started a six-month contract where the entire system appears to be a mono-repo. Docker PS PORTS: 0.0.0.0:3306->3306/tcp, 0.0.0.0:5601->5601/tcp, 0.0.0.0:9090->9090/tcp, 0.0.0.0:9200->...
0
votes
1
answer
476
views
SQLSTATE[08006] [7] connection to server at "pgsql" (172.20.0.2), port 5432 failed: FATAL: password authentication failed for user Laravel Sail
I'm using Laravel Sail with WSL 2 and pgSQL, and I'm facing issues connecting to the databases and running migrations. It has worked on other devices and for my colleagues, but now I'm encountering ...
1
vote
1
answer
586
views
How to run PHPStan in PhpStorm on Windows through WSL?
I run PhpStorm 2023.1 on Windows 11. On the Windows machine, I have an Ubuntu WSL enabled, so that I can develop a PHP project, which works fine.
Now I wanted to enable PHPStan support yet I get the ...
-3
votes
1
answer
206
views
Unable to run WSL commands from a PHP with IIS environment
I'm making a website about 3D printing, and I want to be able to slice a 3D model with a php backend, as an instant quote system, to determine the amount of filament used, time taken, etc. I found ...
0
votes
1
answer
240
views
nwidart/laravel-modules not finding modules on Windows WSL but works fine on OSX
Here's the issues
The environment is a fresh install of Laravel using Sail. The project is using modules and everything works pretty much as advertised for us on OSX. There are several modules created ...
0
votes
1
answer
44
views
I am getting tonnes of errors relating to permissions - using WSL2 laravel project. The issue specifically relates to pdo_mysql
A bit of backstory -
I have a work laptop where my project works totally fine. I have quit my job to pursue expanding my own business, that has become large enough that I can no longer maintain a full ...
0
votes
1
answer
51
views
Extensions listed more than once in my VS Code v1.79+ profile
I'm using VS Code with PHP and added a number of extensions to help with my PHP development and deployment to my k3d cluster. Somehow I have multiple extensions listed twice (duplicated) in the ...
0
votes
0
answers
197
views
Laravel routes showing 404 when run in windows but ok when run in docker
I have a laravel project which I cloned from Bitbucket which I think is intended to be run in docker. Problem is, when I run it in docker, the pages load very slowly (like 3-5 minutes load speed). I ...
0
votes
1
answer
250
views
Docker Windows wsl/Ubuntu autoloader issue
I'm running my application in Docker Windows wsl/Ubuntu, using PHP 8.1. Docker looks into my working directory, not in the root directory to get the autoloader. However, the vendor folder is in the ...