Is there a way to get current Apache settings from a PHP script? All happens on the same server.
I have tried running
apache2ctl -DDUMP_CONFIG | grep LimitRequestLine from within PHP. It kind of works but also wants to start Apache, bind it to a port. It sometimes fails very slowly. Also, it requires enabling the mod_info module.
Background: The JS library DataTables sends very long URLs as GET requests. They are longer than the default for LimitRequestLine. Setting LimitRequestLine to a large enough value fixes this. I'd like to provide an install verification checklist that warns about potential issues after installing our PHP application.