File manager editor fails to Save

SRQ_civicrm

Active Member
Feb 27, 2021
29
3
3
Daw5:U5a
cPanel Access Level
Root Administrator
Edits are not saving and the error messages are not helping. I've checked owner, group and permissions for the files and containing folders, all are correct. The error message upon hitting Save is "Your login session has expired." Except it has not, the session remains able to perform any function except Save. Besides, the error happens even when attempting the edit and Save immediately upon login. The error popup offers OK and Cancel buttons, on Cancel it pops another dialogue saying "HTTP ERROR 403: Forbidden." See attachments.

CentOS v7.9.2009 STANDARD hyper-v
cPanel Version 110.0.10
 

Attachments

quietFinn

Well-Known Member
Feb 4, 2006
2,109
580
493
Finland
cPanel Access Level
Root Administrator
I suspect that error is caused by ModSecurity
Do you have root access, or just cPanel?
 

quietFinn

Well-Known Member
Feb 4, 2006
2,109
580
493
Finland
cPanel Access Level
Root Administrator
Search for your IP address in WHM Home / Security Center / ModSecurity Tools and see if anything shows up.
 
  • Like
Reactions: cPRex

quietFinn

Well-Known Member
Feb 4, 2006
2,109
580
493
Finland
cPanel Access Level
Root Administrator
I'd think that is caused by PHP's upload_max_filesize and/or post_max_siz setting.
 

quietFinn

Well-Known Member
Feb 4, 2006
2,109
580
493
Finland
cPanel Access Level
Root Administrator
Maybe you see something useful in /usr/local/cpanel/logs/error_log
 
  • Like
Reactions: cPRex

SRQ_civicrm

Active Member
Feb 27, 2021
29
3
3
Daw5:U5a
cPanel Access Level
Root Administrator
Good thought. Looking at the times when I was experiencing the problem, all I see is a repetition (see below) of what looks like normal stuff:

[2023-09-23 07:45:02 -0400] info [cpsrvd] version 11.110.0.10 online
==> cpsrvd 11.110.0.10 started
==> cpsrvd: loading security policy....Done
==> cpsrvd: Setting up SSL support ... Done
==> cpsrvd: transferred port bindings: 10,11,12,3,4,5,6,7,8,9
==> cpsrvd: bound to ports
[2023-09-23 07:50:09 -0400] info [cpsrvd] version 11.110.0.10 online
==> cpsrvd 11.110.0.10 started
==> cpsrvd: loading security policy....Done
==> cpsrvd: Setting up SSL support ... Done
==> cpsrvd: transferred port bindings: 10,11,12,3,4,5,6,7,8,9
==> cpsrvd: bound to ports
[2023-09-23 07:54:23 -0400] info [cpsrvd] version 11.110.0.10 online
==> cpsrvd 11.110.0.10 started
==> cpsrvd: loading security policy....Done
==> cpsrvd: Setting up SSL support ... Done
==> cpsrvd: transferred port bindings: 10,11,12,3,4,5,6,7,8,9
==> cpsrvd: bound to ports
[2023-09-23 07:57:25 -0400] info [cpsrvd] version 11.110.0.10 online
==> cpsrvd 11.110.0.10 started
==> cpsrvd: loading security policy....Done
==> cpsrvd: Setting up SSL support ... Done
==> cpsrvd: transferred port bindings: 10,11,12,3,4,5,6,7,8,9
==> cpsrvd: bound to ports
[2023-09-23 08:05:09 -0400] info [cpsrvd] version 11.110.0.10 online
==> cpsrvd 11.110.0.10 started
==> cpsrvd: loading security policy....Done
==> cpsrvd: Setting up SSL support ... Done
==> cpsrvd: transferred port bindings: 10,11,12,3,4,5,6,7,8,9
==> cpsrvd: bound to ports
[2023-09-23 08:07:13 -0400] info [cpsrvd] version 11.110.0.10 online
==> cpsrvd 11.110.0.10 started
==> cpsrvd: loading security policy....Done
==> cpsrvd: Setting up SSL support ... Done
==> cpsrvd: transferred port bindings: 10,11,12,3,4,5,6,7,8,9
==> cpsrvd: bound to ports
 

SRQ_civicrm

Active Member
Feb 27, 2021
29
3
3
Daw5:U5a
cPanel Access Level
Root Administrator
Monitored error_log while replicating both failure modes - unable to save from the editor and unable to upload from the file manager. Neither case added any lines to the log. For grins I tried to Go to a non-existent directory and that was caught in the log.
 

SRQ_civicrm

Active Member
Feb 27, 2021
29
3
3
Daw5:U5a
cPanel Access Level
Root Administrator
Since it looks like this server has gotten corrupted somehow, a potential follow-up is to accelerate the move from CentOS to AlmaLinux. Elevate won't work because of dependence on software that's not PHP 8 ready, according to phan. In order to set up a separate server to test with alternative software, I've followed up on the recommendation from this thread.
 

quietFinn

Well-Known Member
Feb 4, 2006
2,109
580
493
Finland
cPanel Access Level
Root Administrator
Can you create & save any file as that cPanel user, in command line?
 

SRQ_civicrm

Active Member
Feb 27, 2021
29
3
3
Daw5:U5a
cPanel Access Level
Root Administrator
Yes, the command line (Terminal tool) is unaffected for both WHM and cPanel users. The cPanel user even resorted to vim for some critical tweaks and it worked, it's just painful beyond all reason.
 

quietFinn

Well-Known Member
Feb 4, 2006
2,109
580
493
Finland
cPanel Access Level
Root Administrator
problem! Are you certain that command will reinstall 110.0.10?
Yes, it will install the version you have selected in WHM / Home / Server Configuration / Update Preferences

So apparently you have LTS there.