[Resolved] [HELP] Can't chmod file from PHP Litespeed 4.2.19

Status
Not open for further replies.

b0ngma01

Active Member
#1
Hi,

I'm use Litespeed 4.2.19 (TRAIL) for new server. With same code, on old server use Litespeed v4.2.17 I can use function chmod file to 777 and edit file. But on new server I can't chmod file => can't edit file.
Please help me.
I'm using CentOS 7 x64 & LiteSpeed 4.2.19

Thanks & Best regards,
 

NiteWave

Administrator
#2
please compare what user the lsphp process run as.
and the file's ownership/permission(and it's parent directory)

it's a unix ownership/permission issue, should not relate to litespeed version.
 

b0ngma01

Active Member
#3
I run lsphp with user nobody (uid: 99) and the file's ownership is user ID 501. How to setup lsws to chmod all folders/files of other users?
 

NiteWave

Administrator
#4
if virtual host is from apache's httpd.conf,
lsws web admin->Server->General->
PHP suEXEC:Yes
PHP suEXEC Max Conn:10 (or 15, 20, 30 ...)
 

NiteWave

Administrator
#6
in native virtual host case, please refer
lsws web admin->Configuration->Virtual Host Templates->PHP_SuEXEC

how this template archive that goal.
I think 2 necessary settings:
1. Security->ExtApp Set UID Mode: DocRoot UID
2. External App -> define $VH_NAME_lsphp
then "Script Handler", map .php to this $VH_NAME_lsphp

you can utilize this template to create your virtual host as well.
 
Last edited by a moderator:

b0ngma01

Active Member
#7
in native virtual host case, please refer
lsws web admin->Configuration->Virtual Host Templates->PHP_SuEXEC

how this template archive that goal.
I think 2 necessary settings:
1. Security->ExtApp Set UID Mode: DocRoot UID
2. External App -> define $VH_NAME_lsphp
then "Script Handler", map .php to this $VH_NAME_lsphp

you can utilize this template to create your virtual host as well.
Hi,

I've tried and it's still happen after I've changed Security->ExtApp Chroot Mode to Virtual Host Root and now it's work well.

Thanks & Best regards,
 
Last edited by a moderator:
Status
Not open for further replies.
Top