michal-kocarek / PhpOnWindows

Bridge to PHP installed in Bash on Ubuntu on Windows
MIT License
76 stars 15 forks source link

Doesn't work without "sudo" on Windows 10 1803 #14

Open denistrator opened 6 years ago

denistrator commented 6 years ago

Just workaround for the ones who's facing the issues like me. Need to change php-bridge.php::150 line to $linuxCmd = ($envValues ? $envValues . ' ' : '') . 'echo 1111 | sudo -S php ' . implode(' ', $arguments);$linuxCmd = ($envValues ? $envValues . ' ' : '') . 'echo YOUR_SU_PASSWORD sudo -S php ' . implode(' ', $arguments);