Hello All !
1° For dbglevel:
if you search in forum there are lots of questions for changing the debug level.
For users who don't know all command for change this level (like USR signal,...). it's very hard.
I propose to simplify the problem with a .ini, .conf file or dbtable for include dbglevel.
users will change the defautlevel in file or by the a web interface.
For example: server with webmin, without SSH, and no acces to keyboard and screen.(a server in a secure room.)
without ssh you can't access to the command line (oucht!!), but you can access to some files with read/write (.conf and .ini files of all process (php, httpd, /var/log/...) with webmin.
2° when i make a beautifull rpm, i do a configure with : --with-webdir=/var/www/html --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache. all is all right
but :
a user want to change the directory must rebuild rpm with his parameters like --webdir/var/www/myprivatesite/html --with-cgidir=/var/www/myprivatesite/cgi-bin
because user have, différent distro linux,or want a secure site and disable link with ln -s in web directory...,
the same things with user/group securewww.
php or other prg are rpms but if you want to change some variables you change only .ini (php.ini) and restart without rebuild rpm
in php.ini
...
error_reporting = E_ALL & ~E_NOTICE
display_errors = Off
display_startup_errors = Off
log_errors = On
error_log = syslog
...
For example /etc/Zm.ini (or dbtable) ZM.ini is only for binary ..
...
#defaut debug level
DBGLevel = -2
#paths storage
Webdir=/var/www/htm
cgidir=/var/www/cgi-bin
#chown
ZMUser= ZMUSER
ZMGroup=apache
...
and /etc/zm/zm.conf (web user don't have access to /etc/, but only /etc/ZM/ (chown /etc/zm) with phpbasedir= /etc/ZM/ not ( /etc or ./)
Zm.conf is only for db access.
I think .ini is better than DBtable for compiling and for secure process.
It's a open proposition, i'm not sure it's a good solution..
I put only DBGlevel webdir cgidir, but specifics ZM paramaters can be add...
What do you think about this?