Fix permission issue script

#1
I am trying to create simple script to fix permission issue for FTP user. I am trying to host opencart ecommerce application but its showing permission issue.

Please help someone to fix it.

Domain - abcd.com

Path - /home/abcd.com/

FTP user - FTP_abcd

What command I run on centos 7 to fix this issue ?

I tried many things to correct it but no luck. Using Openlitespeed.
 

Attachments

Unique_Eric

Administrator
Staff member
#2
Please try restarting PHP or killall php, see if it helps.
May I know it happens after you upgrade openlitespeed? or it happens right away after you installed it?
 
#4
[root@dns13 html]# ls -ald /home/opencart.abcd.com/html/
drwxr-xr-x 7 webrun_ftp webrun_ftp 4096 Nov 8 11:35 /home/opencart.abcd.com/html/
[root@dns13 html]# ls -ald /home/opencart.w3services.com/
drwxr-xr-x 4 webrun_ftp webrun_ftp 4096 Nov 8 10:43 /home/opencart.abcd.com/
[root@dns13 html]# ls -ald /home
drwxr-xr-x. 10 root root 4096 Nov 8 10:43 /home

My files and permissions.
 

Pong

Administrator
Staff member
#5
Do you mean facing issues after cyber panel installation?
If your /home/opencart.abcd.com/ owned by abcd:abcd, the PHP should run as "abcd:abcd". Your ftp user should use the same "abcd", you can not use a different user"webrun_ftp:webrun_ftp".
 
#7
facing same issue on my site my site

drwxr-xr-x 3 nobody nogroup 4096 Jun 3 21:40 cachedata
if nobody nogroup found, what's the solution ?
it should be nobody:nobody right???
 

Pong

Administrator
Staff member
#8
nobody:nogroup looks correct. Different disctro may be slightly different. You can remove the directory completely and restart LSWS to regenerate it with correct permission. cachedata directory is not something you should manually create it. Let web server do it.By the way, OLS should use https://forum.openlitespeed.org/, this is a forum for LiteSpeed Enterprise. The way to achieve the goal may be different between OLS and LSWS.
 
Top