zeichen / phpdesktop

Automatically exported from code.google.com/p/phpdesktop
0 stars 0 forks source link

server: php.exe or mongoose with php-cgi.exe #100

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
First let me say thanks to you, for you wonderful art of phpdesktop.

I have encountered a problem. When use mongoose as server with pho-cig.exe is 
good until I put php_wincache.dll on, I found there is always only one cache 
file of wincache.php. So, I put a run.bat, below is the content:
E:\phpdesktop-6de71bd0217a\phpdesktop-6de71bd0217a\phpdesktop-chrome\out\php\php
.exe -S 127.0.0.1:29
in www directory, when I run this bat, of course it uses php.exe not 
pho-cig.exe, and in wincache.php I can find more cached file in www dir.

So, I don't know why, when I use mongoose with pho-cgi.exe I can only see one 
cached file in wincache.php.

I found php_server.h php_server.cpp in your code, and I put it on replace 
web_server.h web_server.cpp , so there is a more php.exe process, and wincache 
can cache more php file.

But I want to know how to make mongoose with php-cgi.exe right work with 
php_wincache.dll, cache more php files.

Original issue reported on code.google.com by atWil...@gmail.com on 31 Mar 2014 at 3:50

GoogleCodeExporter commented 8 years ago
There is only php-cig.exe in php dir, so I put a php.exe in the dir of php.

Original comment by atWil...@gmail.com on 31 Mar 2014 at 3:58

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I download mongoose-free-5.3.3.exe and put it on with php/php-cgi.exe, and I 
find it also has only one php file cached.

Original comment by atWil...@gmail.com on 31 Mar 2014 at 4:14

GoogleCodeExporter commented 8 years ago
So I put a issue to cesanta / mongoose:
https://github.com/cesanta/mongoose/issues/361

Original comment by atWil...@gmail.com on 31 Mar 2014 at 4:18

GoogleCodeExporter commented 8 years ago
I find a staus, when I delete php-cgi.exe there is a problem, like below:
Error 500: Internal Server Error
Cannot spawn CGI process 
[E:\phpdesktop-6de71bd0217a\phpdesktop-6de71bd0217a\phpdesktop-chrome\out\www/do
wnload.php]: No such device or address

but when I recover the php-cgi.exe, it's all right.
So, does it mean mongoose fire php-cgi.exe every time when request and closed 
after request, that's why always only one php file be cached?

Original comment by atWil...@gmail.com on 31 Mar 2014 at 5:10

GoogleCodeExporter commented 8 years ago
Please use PHP Desktop Forum.

Original comment by czarek.t...@gmail.com on 31 Mar 2014 at 7:35