Allow edit of cfg files

TheKiller

Verified User
Joined
Sep 10, 2009
Messages
39
Location
Romania
Hello, i am a phpbb user and this has troubled me from when i started my forum and got into the web stuff in 2009.
Okay so phpbb uses cfg files to store text about their styles. style version, name etc. So, .cfg files only contain text.

Direct Admin does not provide an option to Edit these files sadly, and to edit them, you have to either rename its extension to .txt and edit it, then switch back to .cfg... or do it by FTP.

I suggest that DirectAdmin threats these files the same as they treat a regular .txt file.

Im only a DA user and i would really like this feature. Even if the people i host my site with can change this in thir permissions and please let me know if they can so i may ask them to, i still think this should be added in the default settings of DA. Thank you.
 
Hello,

Directadmin as far as I know bases on your system mime file (mime.types). So you should add .cfg into "text/plain".
It must be one of these:

/etc/mime.types
/etc/httpd/conf/mime.types

or even both.
 
But dont you think DirectAdmin should treat .cfg files as plaintext files by default?
I think they should specify in this in their default settings because .cfg files are used into some web softwares to store settings.
 
I quite rare use FileManger in Directadmin to edit files, so I've never worried about .cfg files. I've provided a way to get a quick fix. If you want a solution built-in Directadmin, that's OK. I hope you'll get what you want.
 
I thought thats the purpuse of this forum. For developers to look into and give a final decision based on what they think, on or what the users think. The description of these files states clearely that they are plain text and DA should treat them as such, providing the option to edit them from their cp.
 
I'm not a Directadmin developer and don't work for Directadmin either. I'm a 3rd party supporter who uses Directadmin for hosting purposes like you. I've shared my solution, that's it. So if you need it to be a part of Directadmin I'm not the right guy to ask it from.
 
I was aware of that. I was only asking if you think its useful to include. Like a vote for the devs to see that it is wished by a group of people to include it. Thats all. I guess i will forward this topic to my hosting provider to configure it. Thanks.
 
I don't recall any recent changed in FileManager, probably if more guys here use actively phpbb forums (which as far as I know have admin interface to edit .cfg files, right?) and want the same feature then it will be implemented. So please share your ideas.

For me personally it's much handy to use putty or a (s)FTP program to modify files.
 
No, phpbb doesnt have an interface to edit files in its acp. It used to have an option to edit template files, but that has been removed a few versions back because it was not used, and if you were to use it, after you refreshed the cache, the changes would have been gone as the changes were done to the cached files and not the actual files.

The format itself is known as plain txt. I think Direct Admin should simply set it to be treated as such. No matter what.
The File editor should have a list of all possible web files to know how to treat them like.
 
I've just read this thread from the beginning. Twice. I'm still not sure which cfg files you're writing about.

Are you discussing various configuration files under public_html? Or system configuration files? Or DirectAdmin configuration files?

Jeff
 
I've just read this thread from the beginning. Twice. I'm still not sure which cfg files you're writing about. Are you discussing various configuration files under public_html? Or system configuration files? Or DirectAdmin configuration files?
They mean any file extension that can be edited, like they need to edit, eg. .cfg, files from the file manager other than .txt/.html/.php/etc that are recognised editable...

If its just the case of adding extra extensions to Apache/etc's MIME file, then it's fine (if people know how that is).
 
Back
Top