MultiPHP The system failed to release the lock on the file

KalaniSanders

Registered
Jul 15, 2017
2
0
1
So Cal
cPanel Access Level
Root Administrator
Hello, I'm getting an error when trying to apply php changes in Multi PHP Manager.

It seems to be a permissions issue.

The system failed to release the lock on the file "[REMOVED].htaccess” because of an error: Permission denied at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 389.

Here's the permissions of the current directory and the .htaccess:

drwxr-xr-x. 2 wwwrun wwwrun 16384 Jul 15 13:26 .
-rw-r--r--. 1 wwwrun wwwrun 0 Jul 15 13:26 .htaccess

I've tried deleting the file outright so it could be recreated. I also tried setting permissions to 777 for it, but MultiPHP just hangs after applying.

Changing ownership to "nobody" causes this error:
The system failed to set the permissions on one or more inodes to “0644” (as EUID: 1000, EGID: 1002 1002) because of the following error: Permission denied

And assistance would be appreciated.
 

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
807
160
168
New Jersey
cPanel Access Level
DataCenter Provider
Can you provide the output of:

Code:
lsattr .htaccess
make sure you run that in the directory where the .htaccess resides
 

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
807
160
168
New Jersey
cPanel Access Level
DataCenter Provider
Ah that's probably why, definitely a good thing to note in your original post ;) cPanel doesn't support NFS so not sure how much help you'll get even if its a bug within
a cPanel script.

Just as a test, are you able to delete the .htaccess using File Manager? Just curious.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
This particular folder is on NFS.
Hello,

While network-based filesystems are often configured for backup purposes, we actually don't support it for home directories. This is mentioned under the Filesystem Requirements section in our installation documentation:

We only develop and test cPanel & WHM on filesystems that support flock. Some network filesystems (for example, NFS) may require additional configuration in order to function properly. However, these configurations are difficult to implement successfully and we do not support them.
Thank you.