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
{{ message }}
Repository navigation
Display friendly error message when spawning CGI process fails #127
I got this error with both the previous version and the v130 test release in Windows 11 24H2. The previous version did work up to a point in time. I suspect it could be related to an update of a .net framework runtime or similar? Any clues?
@timint Are you sure your www/ and php/ folders are correct and settings are proper? Can you download default unmodified binaries once again and test them?
From your logs I can see error code 193 for spawn_process which means "is not a valid win32 app" (googled), so something wrong is with the php-cgi.exe binary, or maybe path is wrong?
I think I am on to something. The v130 download works when executed from C:\Users\Me\Downloads\phpdesktop-chrome-130.0-php-8.3.
But it doesn't when I copy it to D:\Projects\Folder with space char\phpdesktop-chrome-130.0-php-8.3. So could it be the space character in the path? Funny thing is it used to work from this path until it just one day stopped.
There are only a-z chars in my path. The settings file have the relative path "cgi_interpreter": "php/php-cgi.exe", and the log window shows this:
- 15:13:38.625 WARNING: spawn_process: CreateProcess(D:\Projects\Folder with space char\phpdesktop-chrome-130.0-php-8.3\php\php-cgi.exe "D:\Projects\Folder with space char\phpdesktop-chrome-130.0-php-8.3\www\index.php"): 193
The path to .exe does not wrap around quotes ". But maybe that's just the way the debug text is output?
Activity
okobsamoht commentedon Sep 10, 2015
hi! i'm having the same problem!
timint commentedon Jan 15, 2025
I got this error with both the previous version and the v130 test release in Windows 11 24H2. The previous version did work up to a point in time. I suspect it could be related to an update of a .net framework runtime or similar? Any clues?
cztomczak commentedon Jan 15, 2025
@timint Try launching php-cgi.exe process manually from command line and see if it throws any errors.
timint commentedon Jan 15, 2025
Thank you for replying.
No errors, I get the rendered HTML output.
cztomczak commentedon Jan 15, 2025
@timint Are you sure your www/ and php/ folders are correct and settings are proper? Can you download default unmodified binaries once again and test them?
From your logs I can see error code 193 for spawn_process which means "is not a valid win32 app" (googled), so something wrong is with the php-cgi.exe binary, or maybe path is wrong?
timint commentedon Jan 15, 2025
I think I am on to something. The v130 download works when executed from
C:\Users\Me\Downloads\phpdesktop-chrome-130.0-php-8.3.But it doesn't when I copy it to
D:\Projects\Folder with space char\phpdesktop-chrome-130.0-php-8.3. So could it be the space character in the path? Funny thing is it used to work from this path until it just one day stopped.cztomczak commentedon Jan 16, 2025
Hmm looks like a bug. Please create an issue for that.
PHP doesn't support paths with unicode characters [1], but spaces should work fine.
[1] https://github.com/cztomczak/phpdesktop/wiki/Knowledge-Base#error-when-application-is-placed-in-a-path-that-contains-unicode-characters
timint commentedon Jan 16, 2025
There are only a-z chars in my path. The settings file have the relative path
"cgi_interpreter": "php/php-cgi.exe",and the log window shows this:The path to .exe does not wrap around quotes ". But maybe that's just the way the debug text is output?
cztomczak commentedon Jan 16, 2025
You are right, the quotes around path are missing. The source code in question is here: https://github.com/cztomczak/phpdesktop/blob/chrome130/mongoose.c#L1378
I am not sure how it worked earlier. I recall installing phpdesktop to program files which has a space and it worked fine in the past hmm.
Please create an issue in the tracker.