logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: php dll status page?
Author
sailor



Joined: 17 Apr 2015
Posts: 82
Location: US

PostPosted: Thu 21 Dec '23 19:47    Post subject: php dll status page? Reply with quote

Is it possible to get status page from the php dll? If so how?

I know I shouldn't be using the dll though...
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 27 Dec '23 17:37    Post subject: Reply with quote

What is a php dll status page?
Back to top
sailor



Joined: 17 Apr 2015
Posts: 82
Location: US

PostPosted: Wed 27 Dec '23 17:57    Post subject: Reply with quote

James Blond wrote:
What is a php dll status page?


I use in httpd.conf:
LoadModule php7_module C:\PHP7\php7apache2_4.dll

The php status page is where you can go to url https://myhost/php-fpm/status?full or ?html or ?json

https://www.php.net/manual/en/fpm.status.php


But that's for php cgi executable. Is there something for the DLL?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 27 Dec '23 18:20    Post subject: Reply with quote

The apache module from php doesn't offer that since the memory is handled by apache. There are some functions[1], but nothing like the fpm status page. mod_status[2] has some information, but it is for all requests, not only PHP. The lua implementation[3] has some more information, but relies on mod_status.
The ExtendedStatus[4] from mod_status slows apache down by a lot. On high traffic sites I disabled mod_status. Even without ExtendedStatus there is CPU and memory usage for that information required.

If you run PHP with mod_fcgid the fcgid status will be on the mod_status page if ExtendedStatus is enabled.

There are some scripts to get the status from PHP's OP cache, It might be useful.



[1] https://www.php.net/manual/en/book.apache.php
[2] https://httpd.apache.org/docs/2.4/mod/mod_status.html
[3] https://github.com/Humbedooh/server-status
[4] https://httpd.apache.org/docs/2.4/mod/core.html#extendedstatus
Back to top


Reply to topic   Topic: php dll status page? View previous topic :: View next topic
Post new topic   Forum Index -> Other Software