suPHP not reading .htaccess

Razva

Active Member
#1
Hey,

I've setup LSWS to run as "nobody", as usual. Next I've compiled PHP 5.4 and created a new Virtual Host by using the "Virtual Hosts Templates".

The server is showing content, but it's not reading any .htaccess file (posting an "Access denied - cannot read .htaccess" at Home).

Can you please give me a hand here?

Thanks,
Razva
 

Razva

Active Member
#3
Well isn't the purpose of suPHP to run the processes under each user? So the processes should be executed with the local user when using suPHP, not the "nobody" user. Right?
 

NiteWave

Administrator
#4
you are right. but .htaccess is read by litespeed web server process -- lshttpd or litespeed, .htaccess is read and parsed by it.
on WHM/cPanel, the solution is public_html(document root) with user/group user1:nobody, and permission is 750. so nobody user can read public_html/.htaccess, but can't write.
 
Top