Can't upload file via php in Jailed Shell account
Hi, I have a problem loading a file via php when the cpanel user has shell access set to "Jailed Shell", the php call goes into error 400 without php errors, but with an apache error:
ModSecurity: Failed to open temporary file for reading: /var/imunify360/tmp_modsec/20240724-102950-ZqC7ful4atLhSh-vQAf-1AAAAAY-request_body-S2rU78 .
I have already tried to change the permissions on the /var/imunify360/tmp_modsec folder to 777 but the error remains.
Obviously when I set the shell access from "Jailed" to "Normal" the problem disappears and the file is loaded correctly, but I need the user to have the Jailed shell
-
Thanks, it works now!
1 -
Hey there! Can you try disabling this option on the server to see if that gets things working? https://support.cpanel.net/hc/en-us/articles/1500011542302-How-to-turn-off-Jail-Apache-Virtual-Hosts
0 -
I'm glad that's all it was!
0
Please sign in to leave a comment.
Comments
3 comments