View Issue Details

IDProjectCategoryView StatusLast Update
0005014mantisbtadministrationpublic2013-10-01 16:05
ReporterHA-Software Assigned Toatrol  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionduplicate 
Product Version0.19.2 
Summary0005014: Automated editing of config_inc.php
Description

Mantis should provide admins the ability to configure the system via web interface instead of manual editing by connecting to server and edit the file manualy.
IMHO this would be usefull because other bugtrackers already provide this functionality.

TagsNo tags attached.

Relationships

duplicate of 0004416 closedthraxisp Roadmap - Move configurations to database 
has duplicate 0013569 closedatrol add on-line customitzarion 
has duplicate 0013578 closedatrol add on-line customitzarion 

Activities

guideweb

guideweb

2005-01-11 16:13

reporter   ~0008943

I am ready do do an instalation/configuration script, Admin(s) can you assing this issue to me please.

Script structure :
1.When file config_inc.php is not found core redirect admin to a instalation page.
2.This page will scan config_inc.php.sample to detect all PHP variables (like $g_hostname, $g_db_username...)

3.The script will try to connect to database if error occur the data will not be saved into config_inc.php , user will be prompt to verefy DB connexion parameter

4.If DB connexion success, the script will try to see if already instalation is found in the database if yes it will upgrade DB else it will create new tables.

ralfiii

ralfiii

2005-01-11 16:26

reporter   ~0008946

Although I was wandering why there is no such utility when I had my first contact with Mantis, I now think it's better that way. (I know for myself, as a windows user I was not used to be forced to look through such a config file - and it took some time until I realized that I only have to write the changes into the config.inc, so nothing is lost when upgrading to a newer version)

Everything is very well commented in config_defaults_inc.php, creating an application to set up mantis, you would double the work because you would have to maintain the desctiption in the .inc file and you would have to update the configurator.

guideweb

guideweb

2005-01-11 17:11

reporter   ~0008950

Last edited: 2005-01-11 17:12

"you would double the work because you would have to maintain the desctiption in the .inc file and you would have to update the configurator."

We only have to use a standard syntax for variable syntax so the configurator will be able to analyse comments and assosiate it with the good variable !

I think that it will be a great feature and it will help a lot(i hope ) of people that dont want to learn how php work to instal a bugTracker

ivix

ivix

2005-01-24 13:11

reporter   ~0009072

Last edited: 2005-01-24 13:14

I was thinking about attempting something like this as well. config_inc.php should be used to specify db connection parameters, etc., while the rest of the configuration can be stored in the database and accessible through an administrative interface. That way the configuration of the software can be separated from the administration of the software, since the Mantis maintainer might not be the system administrator (as in my case).

Edit: It looks like this is already in the works: bug 0004416

guideweb

guideweb

2005-01-24 17:03

reporter   ~0009080

I think it is a great idea.