webassembly-language-runtimes icon indicating copy to clipboard operation
webassembly-language-runtimes copied to clipboard

Drupal's PHP demo not working without preopen root directory

Open gzurl opened this issue 2 years ago • 0 comments

Describe the bug

A WasmMapDir / / directive seems needed in mod_wasm Drupal's demo and other PHP demos.

Apparently, the PHP runtime performs some checks during the bootup that require access to the root directory. When removing this permission, PHP doesn't boot up as expected.

Reproduction steps

Run mod_wasm's Drupal demo, and remove the line WasmMapDir / /, restart Apache and try again.

Expected behavior

PHP should be able to boot up even if the root directory is not pre-open.

Additional context

No response

gzurl avatar Jul 24 '23 11:07 gzurl