Welcome to Geeklog, Anonymous Tuesday, April 23 2024 @ 04:45 pm EDT

Geeklog Forums

Is there a function for editing config.php?


Status: offline

amckay

Forum User
Full Member
Registered: 03/23/02
Posts: 180
Before I go an write one, I'm just wondering if it already exists. I want to make it so that an admin can change the config.php file from the web GUI where the fields of config.php will just show up as fields in the GUI

thanks,
-Alan
 Quote

Status: offline

exaurdon

Forum User
Regular Poster
Registered: 08/13/03
Posts: 107
I have not seen anything like this. I agree it could be convenient, but I hope you understand the security implications this could pose. If anyone gets access to your config.php file, they could cause havoc on your server. In addition to the fact that you will be providing a web interface to the file (which is itself a risk). You will also be forced to give the webserver process write access permissions to the config.php file.

If you want to create a utility of this sort, I would suggest an option that users could choose, which would cause the page to only edit a copy of the config file, and would then require that the user manually replace the existing config file. This would provide a convenient editing environment, without the security implications. (To simplify the process for users, but still provide more security, you could also provide a small php/perl/shell script which had to be run from the command line which would do the replacement)

Exaurdon~
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Didn't Tom Willet write a tool that simply loaded the config.php into an edit field?

I was playing around with a more comfortable approach at one point (with individual edit fields for each setting, even drop-down menus) but, as exaurdon already mentioned, there are security issues with this.

If you have complete control over the environment and know what you're doing, then it is doable, though. Send me an email and I see if I can dig up the remains of my experiments.

bye, Dirk
 Quote

Status: offline

tomw

Forum User
Full Member
Registered: 08/12/02
Posts: 300
Quote by Dirk: Didn't Tom Willet write a tool that simply loaded the config.php into an edit field?


See here for the config editor and other tools I made.


TomW

 Quote

All times are EDT. The time is now 04:45 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content