Problem with editing files in file manager

Locked
User avatar
frajer
Posts: 29
Joined: Thu 23. Apr 2020, 22:00

Problem with editing files in file manager

Post by frajer »

Hello, im on the phone right now, and i have to change something in my forum .htaccess, but after editing, it says "Failed to update file".

I had that problem on KeyHelp 20.0, so i thought its a 20.0 problem, but after upgrading to 20.1 i still cant edit it.

I tried also .html and .php files but still the same problem.

How can i fix it?

EDIT: I forgot to say, i had that issue on DigitalOcean, and i moved to another hosting but still the same problem.
User avatar
Alexander
Keyweb AG
Posts: 3810
Joined: Wed 20. Jan 2016, 02:23

Re: Problem with editing files in file manager

Post by Alexander »

This sounds, that your file permissions aren't correct.

Please check if the files belong to the correct owner and have appropriate file permissions.

(You may want to post a screenshot if you are unsure.)
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
frajer
Posts: 29
Joined: Thu 23. Apr 2020, 22:00

Re: Problem with editing files in file manager

Post by frajer »

What permissions do you mean? 775 or 777?
User avatar
frajer
Posts: 29
Joined: Thu 23. Apr 2020, 22:00

Re: Problem with editing files in file manager

Post by frajer »

Hello, i changed permissions to 777, now it works. Thanks!
User avatar
frajer
Posts: 29
Joined: Thu 23. Apr 2020, 22:00

Re: Problem with editing files in file manager

Post by frajer »

By The Way, does KeyHelp have official Discord server?
User avatar
Jolinar
Community Moderator
Posts: 3560
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: Problem with editing files in file manager

Post by Jolinar »

frajer wrote: Tue 19. May 2020, 22:37 By The Way, does KeyHelp have official Discord server?
No.
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
User avatar
Alexander
Keyweb AG
Posts: 3810
Joined: Wed 20. Jan 2016, 02:23

Re: Problem with editing files in file manager

Post by Alexander »

frajer wrote: Tue 19. May 2020, 21:49 Hello, i changed permissions to 777, now it works. Thanks!
Although it works, the 777 permission is never a good choice. Please check the file owner. I guess the files belongs to root (or somebody else) and not the user it should be.
(You may have copied the files as root when setting up the account.)
All files should belong to the appropriate user account.
If you are logged in as a user "testuser", all files within it's /www/ folder should belong to the user "testuser".
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
prune
Posts: 85
Joined: Thu 14. Nov 2019, 11:22

Re: Problem with editing files in file manager

Post by prune »

Can you please refine the editor? It does not show the full code in 1 screen view. You have to scroll vertically or horizontally.
User avatar
Alexander
Keyweb AG
Posts: 3810
Joined: Wed 20. Jan 2016, 02:23

Re: Problem with editing files in file manager

Post by Alexander »

I have now added a full screen mode for the editor.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Locked