Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Windows Not Working #11

Open
ArunPatal opened this issue Jul 26, 2020 · 1 comment
Open

In Windows Not Working #11

ArunPatal opened this issue Jul 26, 2020 · 1 comment

Comments

@ArunPatal
Copy link

Hi,
I tried it on windows. In example_server.php i set following settings.
But when going to browser 127.0.0.1:8003, am getting Internal Server Error: php-cgi\php-cgi.exe was not found error.
function __construct() { parent::__construct(array( 'addr' => "127.0.0.1", 'port' => 8003, 'php_cgi' => "php-cgi\php-cgi.exe", )); }

In httpserver i changed $cgi_stream = fopen("cgi://{$this->php_cgi}", 'rb', false, $context); to $cgi_stream = fopen("$this->php_cgi", 'rb', false, $context); and am getting output somthing like binary data.

Can you please advice me how to setup it. Am using PHP 5.6 & win10

@ArunPatal
Copy link
Author

ArunPatal commented Jul 26, 2020

Path to cgi was not correct. After giving absolute path it work.
Is there a way to use cgi as fast-cgi? I found response time little bit slow.
Also is there a way to restart or stop server?
Thanks for great script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant