문제

In a PHP code I need get the values of Apache's mod_fcgid conf variables like:

  • FcgidMaxRequestLen
  • FcgidBusyScanInterval
  • FcgidAuthenticator

(Full list at http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html)

Is there a way I can get those values?

도움이 되었습니까?

해결책

There's no way of getting Apache configuration directives through the PHP API, other than what's exposed by PHP itself. You would have to parse the Apache config files.

This is not trivial however, if you consider things like conditional settings and inclusion of multiple config files. It may also include security issues such as accidentally revealing config settings that can compromise your server.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top