Portal Home > Knowledgebase > Articles Database > litespeed suexec


litespeed suexec




Posted by Markovic, 06-17-2009, 04:21 AM
Hello, 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: LSAPI App $VH_NAME_lsphp uds://tmp/lshttpd/$VH_NAME_lsphp.sock SCRIPT HANDLER settings: Suffix: php5 Type: LiteSpeed API Name: [VHost Level]: $VH_NAME_lsphp It's really important for me and I really hope I will get a solution here. Thanks Best Regards

Posted by ClaudiuPopescu, 06-17-2009, 06:30 AM
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.

Posted by Markovic, 06-17-2009, 06:42 AM
No, lsws is installed as nobody:nobody but all files and dirs of the user are chowned to user:user, so user should have access to file chowned to him, no?

Posted by ClaudiuPopescu, 06-17-2009, 07:01 AM
cPanel server with: suEXEC + suPHP you get the error: (13)Permission denied: file permissions deny server access: The correct permissions for files under public_html is 644 and 755 for dir. I don't see how a apache server running under nobody.nobody could access a file owned by a user with permissions 600. Maybe I'm wrong tho.

Posted by KnownSRV, 06-17-2009, 07:17 AM
He said he is using lsws(LiteSpeed)

Posted by supportexpertz, 06-17-2009, 08:26 AM
Please check the user as which lsphp is running on the server.

Posted by Markovic, 06-17-2009, 09:15 AM
There are a couple of lsphp5 processes running by nobody:nobody, it looks like the problem, in suEXEC it should be running as user:user, for every user, no? How to do it?

Posted by supportexpertz, 06-17-2009, 09:32 AM
It seems that you have compiled the LiteSpeed API without suexec. You may want to recompile your lsphp (lsphp5 in this case) with suexec enabled.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Account suspension (Views: 611)
Serverboost.nl down?? (Views: 620)
Bandcon Outage (Views: 635)