Server / Website Permission Issue

Hi,

I am using CentOS 7 and OpenliteSpeed Panel. I am getting permission issue in GRAV whereas same account when used for OpenCart Open Source Ecommerce all permissions are perfect.

I tried using all forums or referances to correct it but nothing working. I am not sure what needs to be done to fix this issue.

SELinux is already disabled.

I am using the script to fix this which is tested and working but not for GRAV.


sudo chown -R $USERNAME.$USERNAME $HOMEDIR
sudo find $HOMEDIR/ -type f -exec chmod 664 {} ; && sudo find $HOMEDIR/ -type d -exec chmod 775 {} ;

Can anyone guide?

I think your script should read like this:

sudo chown -R $USERNAME:$USERNAME $HOMEDIR
sudo find $HOMEDIR/ -type f -exec chmod 664 {} \; && sudo find $HOMEDIR/ -type d -exec chmod 775 {} \;

YES. But permission issues not fixed.

is the value of $HOMEDIR correct ?

YES. There is no issue that . I also observed that if I put 777 for cache … then cache folder permission fixed else GRAV CRM show write issue.

Same setup working perfectly on shared hosting but not on VPS.