I installed lsws without apache conf file(httpd.conf). Then I created a new virtual host in "suEXEC" Template. I added a new user via SSH and made home dir for him and chowned his home dir + all his files to hisusername:hisusername. His home dir(/home/user/) is chmoded to 755 and his /public_html to 711. It worked fine but after that I installed phpbb3 forum and when I tried to chmod config.php to 600 I got an error on the forum:
Fatal error: require() [function.require]: Failed opening required './config.php' (include_path='.:/usr/local/lib/php') in /home/username/public_html/common.php on line 127
When I was using lsws with apache conf file and I had configured suEXEC + suPHP for apache I was able to chmod config file to 600 and it worked fine. I have no idea what could be the problem now.
It works fine when I chmod config.php to 755 but for security reasons I would need a way to configure it to 600.
LiteSpeed si running as nobody:nobody.
EX. APP settings:
chmod 600 looks like: -rw-------
Meaning that only the owner can read and write to/from this file.
Since LiteSpeed is running as nobody, it won't have access to that file.
You need a way to make LiteSpeed run as the actual user that owns the files.
Get a second opinion tho.
PidginHost.com - Managed dedicated servers, cloud servers and software development.
█ KnownSRV.com - Fast, Quality and Secure MANAGED VPS with fast SSD drives in h/w RAID10
█ Full network and hardware customization possible - let's talk your needs. Optional 500gbps DDoS protection!
█ PayPal, Credit Cards, Skrill, Payza, PerfectMoney, WebMoney and BitCoins accepted