Re: read apache settings



massimo.sala escribió:
is it possible from a php script to read the apache settings ?
for example
DirectoryIndex
ServerAdmin

As far as I know there's not direct way.

Depending in the security settings, you might be able to parse the output of several sources:

- The *.conf files themselves (you'd need to follow the included files chain)
- The /server-info page generated by mod_info
- The output of the "httpd -S" command (which is fairly incomplete)

The second possibility looks quite promising:

http://localhost/server-info?config

But, of course, this Apache module is not something you're allowed to enable in a shared hosting.


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--
.