|
|

06-16-2009, 08:15 AM
|
|
Member
|
|
Join Date: Jun 2009
Posts: 12
|
|
litespeed, chmod conf file to 600
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.
It's really important for me and I really hope I will get a solution here. George? Others?
Thanks
Best Regards
|

06-16-2009, 08:23 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
I think PHP is not in suEXEC mode.
double check the PHP command path in the suEXEC template, make sure it uses the right PHP binary.
|

06-16-2009, 09:05 AM
|
|
Member
|
|
Join Date: Jun 2009
Posts: 12
|
|
Quote:
Originally Posted by mistwang
I think PHP is not in suEXEC mode.
double check the PHP command path in the suEXEC template, make sure it uses the right PHP binary.
|
Virtual host is in suEXEC Template, I'm 100% sure. How to check PHP command path and PHP binary?
I installed php 5.2.9 with LSAPI and suhosin patch + sendmail patch from this paper
http://nix101.com/2007/09/22/setting...for-litespeed/
|

06-16-2009, 07:26 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
Just check the external app configuration in the suEXEC vhost template.
|

06-16-2009, 11:05 PM
|
|
Member
|
|
Join Date: Jun 2009
Posts: 12
|
|
|
EX. APP
LSAPI App
$VH_NAME_lsphp
uds://tmp/lshttpd/$VH_NAME_lsphp.sock
SCRIPT HANDLER
Suffix: php5
Type: LiteSpeed API
Name: [VHost Level]: $VH_NAME_lsphp
Does it look ok?
|

06-17-2009, 12:34 AM
|
|
Member
|
|
Join Date: Jun 2009
Posts: 12
|
|
|
Environment is empty, if could be the problem maybe?
And note, I'm using lsws 3.3.24, I haven't updated yet. Litespeed is running as nobody:nobody
If you need any other info let me know, I really need to get it fixed
Last edited by Markovic; 06-17-2009 at 12:42 AM..
|

06-17-2009, 04:50 AM
|
|
Senior Member
|
|
Join Date: Mar 2009
Posts: 119
|
|
Quote:
Originally Posted by Markovic
SCRIPT HANDLER
Suffix: php5
Type: LiteSpeed API
Name: [VHost Level]: $VH_NAME_lsphp
|
this is for .php5, how about .php ?
|

06-17-2009, 06:22 AM
|
|
Member
|
|
Join Date: Jun 2009
Posts: 12
|
|
Quote:
Originally Posted by auser
this is for .php5, how about .php ?
|
Yes, by default there was .php but I changed to .php5 because with .php the server recognizes as php version 4. phpinfo shows I'm running 5.2.9, php -v too but php shell shows I'm running php version 4 and phpmyadmin is not working, guess what, error like it's not compatible with php4 :O
For .php there was:
SCRIPT HANDLER
Suffix: php
Type: LiteSpeed API
Name: [VHost Level]: $VH_NAME_lsphp
Also, I asked about it at WHT forum and I got interesting reply.
I have a couple of lsws5 processes running as nobody:nobody, but with suEXEC they should be running as user:user, isn't it?
Thanks
|

06-17-2009, 06:42 AM
|
|
Senior Member
|
|
Join Date: Mar 2009
Posts: 119
|
|
Quote:
Originally Posted by Markovic
Yes, by default there was .php but I changed to .php5 because with .php the server recognizes as php version 4. phpinfo shows I'm running 5.2.9, php -v too but php shell shows I'm running php version 4 and phpmyadmin is not working, guess what, error like it's not compatible with php4 :O
For .php there was:
SCRIPT HANDLER
Suffix: php
Type: LiteSpeed API
Name: [VHost Level]: $VH_NAME_lsphp
|
at the user's phpbb3 forum root, put phpinfo.php, check php version, 4 or 5.2.9?
Quote:
Originally Posted by Markovic
Also, I asked about it at WHT forum and I got interesting reply.
I have a couple of lsws5 processes running as nobody:nobody, but with suEXEC they should be running as user:user, isn't it?
|
yes, should be.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 07:39 AM.
|
|