suPHP not reading .htaccess

Discussion in 'Install/Configuration' started by Razva, Aug 9, 2014.

  1. Razva

    Razva Member

    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
  2. NiteWave

    NiteWave Administrator

    check if "nobody" have the permission to read .htaccess under virtual host's document root.
  3. Razva

    Razva Member

    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?
  4. NiteWave

    NiteWave Administrator

    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.

Share This Page