You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the Installation steps for Windows, downloaded the examples and tried my best to get the php examples running but I get the following error message using this location:
X-Powered-By: PHP/8.2.0
Content-type: text/html; charset=UTF-8
<html><body><h1>Hello from PHP on Wasm!</h1>
Today, Saturday, 2023-9-30, at 21:30:39 we greet you with this message!<h1>Output from phpinfo():</h1><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><styletype="text/css">
body {
background-color: #fff;
color: #222;
font-family: sans-serif;
}
...
The non php exapmles like http-request-viewer run just fine.
I don't know, if this is a bug or a wrong configuration.
Reproduction steps
Download apache httpd version 2.4.57 for Windows
Download the mod_wasm for Windows from the apachelounge website in version 0.12.1
use the provided httpd.conf from this project
Edit the config to match your local filesystem
Start apache httpd.exe
Browse the php-hello website
Expected behavior
The Hello from PHP on Wasm! message and the phpinfo() html is shown
Additional context
I also tried wasmer using this wasmer.toml:
[package]
name = "wasmer/php-hello"version = "0.0.1"description = "A PHP template for WCGI applications"license = "MIT OR Apache-2.0"readme = "README.md"repository = "https://github.com/wasmerio/wcgi-php-template"
[[module]]
name = "php"source = "php-cgi-8.2.0.wasm"abi = "wasi"
[[command]]
name = "php"runner = "wcgi"module = "php"
[command.annotations.wcgi]
dialect = "rfc-3875"
[command.annotations.wasi]
atom = "php"env = ["DOCUMENT_ROOT=/app", "SCRIPT_FILENAME=/app/index.php"]
[fs]
"app" = "app"
Running wasmer with this command
wasmer run-unstable .
returns the expected result.
So php-cgi-8.2.0.wasm is fine but I don't have any idea what causes the issue.
The text was updated successfully, but these errors were encountered:
Describe the bug
First of all, thank you for this awesome project!
I followed the Installation steps for Windows, downloaded the examples and tried my best to get the php examples running but I get the following error message using this location:
Message:
I manged to see a result using this Location with
WasmEnableCGI
=Off
Result (truncated):
The non php exapmles like
http-request-viewer
run just fine.I don't know, if this is a bug or a wrong configuration.
Reproduction steps
Expected behavior
The Hello from PHP on Wasm! message and the phpinfo() html is shown
Additional context
I also tried wasmer using this wasmer.toml:
Running wasmer with this command
wasmer run-unstable .
returns the expected result.
So php-cgi-8.2.0.wasm is fine but I don't have any idea what causes the issue.
The text was updated successfully, but these errors were encountered: