Running SBBS 3.17c Feb 21 2020 from, cvs update on Win_x86
Error with php-cgi.exe
3/10 09:54:59a 37132 Request: GET /cgi/test.php HTTP/1.1
3/10 09:54:59a 37132 Executing FastCGI: C:\sbbs\etrucker\cgi\test.php
3/10 09:55:00a 37132 Failure to send to FastCGI socket!
3/10 09:55:00a 37132 !ERROR: 500 Internal Server Error (line 5876)
test.php
<?php
echo "Hello World!";
sbbs.ini, web_handler.ini, cgi_env.ini and webctrl.ini all setup as per http://wiki.synchro.net/howto:php
Any ideas?
Re: php-cgiC:\sbbs\etrucker\cgi\test.php
By: Mortifis to All on Tue Mar 10 2020 10:01 am
Running SBBS 3.17c Feb 21 2020 from, cvs update on Win_x86
Error with php-cgi.exe
3/10 09:54:59a 37132 Request: GET /cgi/test.php HTTP/1.1
3/10 09:54:59a 37132 Executing FastCGI:
3/10 09:55:00a 37132 Failure to send to FastCGI socket!
3/10 09:55:00a 37132 !ERROR: 500 Internal Server Error (line 5876)
test.php
<?php
echo "Hello World!";
sbbs.ini, web_handler.ini, cgi_env.ini and webctrl.ini all setup as per http://wiki.synchro.net/howto:php
Any ideas?
Do you have php-fpm running?
digital man
5876)Re: php-cgi
By: Mortifis to All on Tue Mar 10 2020 10:01 am
Running SBBS 3.17c Feb 21 2020 from, cvs update on Win_x86
Error with php-cgi.exe
3/10 09:54:59a 37132 Request: GET /cgi/test.php HTTP/1.1
3/10 09:54:59a 37132 Executing FastCGI: C:\sbbs\etrucker\cgi\test.php
3/10 09:55:00a 37132 Failure to send to FastCGI socket!
3/10 09:55:00a 37132 !ERROR: 500 Internal Server Error (line
test.php
<?php
echo "Hello World!";
sbbs.ini, web_handler.ini, cgi_env.ini and webctrl.ini all setup as per http://wiki.synchro.net/howto:php
Any ideas?
Do you have php-fpm running?
No, it isn't in my php7 distro
assbbs.ini, web_handler.ini, cgi_env.ini and webctrl.ini all setup
per http://wiki.synchro.net/howto:php
Any ideas?
Do you have php-fpm running?
No, it isn't in my php7 distro
Then your system doesn't support Fast CGI-PHP.
digital man
Hmmm... something to look into, just thought about it since I saw the support thread about php-cgi .. I have been using exec('php some-script.php'); calls from *.xjs scripts successfully ... just always assumed sbbs->php->mysql just worked because of the way I use it ...
Deuce has just fixed the cgi method, there was a problem there (which is what I'm trying to use). It works, and I followed the wiki too. You'll need to recompile SBBS from today for those fixes.
Re: Re: php-cgiit
By: Mortifis to Digital Man on Tue Mar 10 2020 11:33 pm
Hmmm... something to look into, just thought about it since I saw the support thread about php-cgi .. I have been using exec('php some-script.php'); calls from *.xjs scripts successfully ... just always assumed sbbs->php->mysql just worked because of the way I use
...
There are two ways to run php:
* php-cgi - this is like exec "php script.php" and is quite expensive. IE: Each time a php scripted that needs to executed, sbbs would need to exec it (an expensive OS operation).
* php-fpm - this is like having php in daemon mode - where it is ready to run a php script. Its called over a socket or a TCP connection (normally to port 9000).
php-fpm is by far the better way, its more effecient and way more scalable, but takes memory and (a little) cpu while waiting for work. But SBBS can do both.
Deuce has just fixed the cgi method, there was a problem there (which is what I'm trying to use). It works, and I followed the wiki too. You'll need to recompile SBBS from today for those fixes.
...deon
Well, there are actually several ways to run php... as for SBBSrelated,
there is a 3rd way ... for many years I have been executing php scripts from *.js, ssjs, xjs scripts using ... some php scripts I have run as timed events ie: SCFG->... COMMAND LINE php /sbbs/mods/blacklist.php ... just sayin
Re: Re: php-cgi
By: Mortifis to alter ego on Wed Mar 11 2020 09:48 pm
Well, there are actually several ways to run php... as for SBBS related, there is a 3rd way ... for many years I have been executing php scripts from *.js, ssjs, xjs scripts using ... some php scripts I have run as timed events ie: SCFG->... COMMAND LINE php /sbbs/mods/blacklist.php ... just sayin
COMMAND LINE php, is php-cgi.
COMMAND LINE php, is php-cgi.
COMMAND LINE php, is php-cgi.command line php is php-cli it's definitely different.
Re: Re: php-cgi
By: Mortifis to Digital Man on Tue Mar 10 2020 08:03 pm
Re: php-cgi
By: Mortifis to All on Tue Mar 10 2020 10:01 am
Running SBBS 3.17c Feb 21 2020 from, cvs update on Win_x86
Error with php-cgi.exe
3/10 09:54:59a 37132 Request: GET /cgi/test.php HTTP/1.1
3/10 09:54:59a 37132 Executing FastCGI: C:\sbbs\etrucker\cgi\test.php
3/10 09:55:00a 37132 Failure to send to FastCGI socket!
3/10 09:55:00a 37132 !ERROR: 500 Internal Server Error (line 5876)
test.php
<?php
echo "Hello World!";
assbbs.ini, web_handler.ini, cgi_env.ini and webctrl.ini all setup
per http://wiki.synchro.net/howto:php
Any ideas?
Do you have php-fpm running?
No, it isn't in my php7 distro
Then your system doesn't support Fast CGI-PHP.
digital man
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 412 |
Nodes: | 16 (2 / 14) |
Uptime: | 00:39:35 |
Calls: | 8,633 |
Calls today: | 19 |
Files: | 13,238 |
Messages: | 5,936,909 |
Posted today: | 1 |