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

How to create a fastCGI in Pascal ? #55

Open
Mat-Hac opened this issue May 2, 2022 · 4 comments
Open

How to create a fastCGI in Pascal ? #55

Mat-Hac opened this issue May 2, 2022 · 4 comments

Comments

@Mat-Hac
Copy link

Mat-Hac commented May 2, 2022

Hello,

I want to adapt ExtPascal to fCGI2.

But the doc is not enough. Can you upgrade the doc we to use not only in C ? Can you upgrade the doc with the new examples ?

@Mat-Hac
Copy link
Author

Mat-Hac commented May 2, 2022

Can you create a doc for nginx or apache ?

@mcarbonneaux
Copy link
Member

mcarbonneaux commented May 4, 2022

i'm not maintenaing extpascal but archives of fastcgi.com.

if you speak about this project : https://github.com/farshadmohajeri/extpascal

i think you use the documentation of the project in : https://github.com/farshadmohajeri/extpascal/tree/master/docs

or https://www.freepascal.org/~michael/articles/extpascal/extpascal.pdf

in fact extpascal not use fcgi2, seem to support natively fastcgi protocol.

@Mat-Hac
Copy link
Author

Mat-Hac commented May 4, 2022

I want to use your fascgi project in pascal.
I know how to link to your project.
But i do not find where tu put cgi-fcgi exe.

@mcarbonneaux
Copy link
Member

extpascal has native fastcgi in document i sent that not need cgi to fastcgi convertion (cgi-fcgi).

cgi-fcgi is to convert old cgi mode (using fork) program to fastcgi is not the prefered and performante solution to do fastcgi, prefer native fastcgi mode in process prefork or pool of thread.

php for exemple now start in prefork mode with php_fpm.
lighttpd has a prefork fcgi spawn daemon for cgi compatible program (more performante that cgi-fcgi): https://redmine.lighttpd.net/projects/spawn-fcgi/wiki
apache and with the old mod_fastcgi support apache to fastcgi.
apache now has fastcgi integrated mod_fastcgi.

nginx also has integrated fastcgi support :

you need to start your process standalone in fastcgi mode (fastcgi native or with cgi-fcgi), and configure nginx/apache to talk with it in fastcgi protocol (with tcp or unix socket) with there respective fastcgi module.

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

2 participants