Re: [users@httpd] Can I serve CLI Applications using Apache

2022-06-23 Thread Ahmad Ismail
Thank you very much. My problem is solved. *Thanks and Best Regards,Ahmad Ismail* On Thu, Jun 23, 2022 at 7:52 PM Eric Covener wrote: > > My question is, can I give apache ADD_HTTP_RESPONSE_MESSAGE instead of > writing it on my own. > > IIUC this is a component that adds headers based on the o

Re: [users@httpd] Slow web site response..PHP-8/CSS/Apache/

2022-06-23 Thread Daniel Ferradal
you need to share the basics of your configuration and incoming hits for people to get an idea of what you really have or could be the problem. The way you describe it sounds like you have the typical quick to deploy but slow to scale combo: httpd with prefork mpm + mod_php plugin loaded. httpd w

Re: [users@httpd] Can I serve CLI Applications using Apache

2022-06-23 Thread Eric Covener
> My question is, can I give apache ADD_HTTP_RESPONSE_MESSAGE instead of > writing it on my own. IIUC this is a component that adds headers based on the output of ADD_UI. I don't see any way to avoid writing it yourself one place or another, and I don't see the upside of embedding it inside of A

[users@httpd] Slow web site response..PHP-8/CSS/Apache/

2022-06-23 Thread KK CHN
List, I am facing a slow response for a hosted PHP8 web site.. It takes 30 seconds to load the website fully . The application and database( postgresql ) both are separately running on two Virtual Machines in OpenStack cloud. in two 10.184.x.221 and 10.184.y.221 networks respectively. When

Re: [users@httpd] Can I serve CLI Applications using Apache

2022-06-23 Thread Ahmad Ismail
Thank you all. After working on my architecture, I have one more requirement. Request | Web_Server | CLI_APP --output json | ADD_UI --output web | ADD_HTTP_RESPONSE_MESSAGE | Web_Server > Response It is the ADD_HTTP_RESPONSE_MESSAGE . I am using it to add HEADERS, response code etc. This is becau

Re: [users@httpd] Can I serve CLI Applications using Apache

2022-06-23 Thread Yehuda Katz
You still have a bunch of options. Some possibilities using your own code: - Your CGI script or binary called by HTTPD is a wrapper which handles the piping and output capture of the other program. - Your CGI script or binary uses the available environment variables to determine where it is runnin

Re: [users@httpd] Can I serve CLI Applications using Apache

2022-06-23 Thread Eric Covener
On Thu, Jun 23, 2022 at 1:15 AM Ahmad Ismail wrote: > > I have already bumped into CGI (after asking the question here). > > However, I have some issues with CGI. For example, I have to add HEADERS > maintaining CRLF etc in the output. However, I want the CLI app to be totally > independent. I m

Re: [users@httpd] Can I serve CLI Applications using Apache

2022-06-23 Thread Ruben Safir
On Thu, Jun 23, 2022 at 11:15:13AM +0600, Ahmad Ismail wrote: > I have already bumped into CGI (after asking the question here). > > However, I have some issues with CGI. For example, I have to add HEADERS > maintaining CRLF etc in the output. However, I want the CLI app to be > totally independen