LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > How to setup Litespeed LSWS for a shared environment?

Reply
 
Thread Tools Display Modes
  #11  
Old 03-31-2009, 06:24 PM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
Quote:
Originally Posted by IrPr View Post
Welcome dude

About mod_sec rules im using JIT and rootkit right now, but i think Tony is more familar with those rules




system or cPanel PHP, Fantastico uses the main php.ini file located /usr/local/lib/php.ini while LS uses LSPATH/lsphpx/lib/php.ini by default

PS: I strongly suggest disabling Fantastico if you can because of lots of vulnerabilities
Examples: http://www.milw0rm.com/exploits/6461 or http://www.milw0rm.com/exploits/6897
got that!
thanks
Reply With Quote
  #12  
Old 03-31-2009, 06:29 PM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
Quote:
Originally Posted by IrPr View Post
Fantastico uses the main php.ini file located /usr/local/lib/php.ini while LS uses LSPATH/lsphpx/lib/php.ini by default
If the user is using cPanel and used the build matching PHP they'd use /usr/local/lib/php.ini which matches the CLI built by cPanel.

cPanel's PHP which would be used by Fantastico since the installer runs within the cPanel system would be /usr/local/cpanel/3rdparty/etc/php.ini . The cPanel PHP can be found at /usr/local/cpanel/3rdparty/bin/php and is used by anything PHP related ran within WHM or cPanel.
__________________
Hawk Host
Frog Host
Reply With Quote
  #13  
Old 03-31-2009, 06:32 PM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
But... after I edit /usr/local/lib/php.ini, it always changed for the phpinfo() value on /home/user/public_html/phpinfo.php
Is there something wrong with my installation?
I am still using the old php 5.2.8 from cpanel.
Reply With Quote
  #14  
Old 03-31-2009, 06:33 PM
IrPr IrPr is offline
Senior Member
 
Join Date: Jul 2008
Posts: 147
Quote:
Originally Posted by Tony View Post
If the user is using cPanel and used the build matching PHP they'd use /usr/local/lib/php.ini which matches the CLI built by cPanel.

cPanel's PHP which would be used by Fantastico since the installer runs within the cPanel system would be /usr/local/cpanel/3rdparty/etc/php.ini . The cPanel PHP can be found at /usr/local/cpanel/3rdparty/bin/php and is used by anything PHP related ran within WHM or cPanel.
right, thanks for correction

i always build lsphp myself
Reply With Quote
  #15  
Old 03-31-2009, 06:35 PM
IrPr IrPr is offline
Senior Member
 
Join Date: Jul 2008
Posts: 147
Quote:
Originally Posted by DraCoola View Post
But... after I edit /usr/local/lib/php.ini, it always changed for the phpinfo() value on /home/user/public_html/phpinfo.php
Is there something wrong with my installation?
I am still using the old php 5.2.8 from cpanel.
ls -als /usr/local/lib/php.ini /usr/lib/php.ini /opt/lsws/lsphp5/lib/php.ini
i thinks its linked into lsphp's php.ini or vv

Last edited by IrPr; 03-31-2009 at 06:38 PM..
Reply With Quote
  #16  
Old 03-31-2009, 06:37 PM
IrPr IrPr is offline
Senior Member
 
Join Date: Jul 2008
Posts: 147
Quote:
Originally Posted by IrPr View Post
ls -als /usr/local/lib/php.ini /usr/lib/php.ini /opt/lsws/lsphp5/lib/php.ini
i thinks its linked to lsphp's php.ini or vv
Take a look here
http://209.85.129.132/search?q=cache...ient=firefox-a

Damn WHT hacked
Reply With Quote
  #17  
Old 03-31-2009, 06:43 PM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
Quote:
Originally Posted by Tony View Post
If the user is using cPanel and used the build matching PHP they'd use /usr/local/lib/php.ini which matches the CLI built by cPanel.

cPanel's PHP which would be used by Fantastico since the installer runs within the cPanel system would be /usr/local/cpanel/3rdparty/etc/php.ini . The cPanel PHP can be found at /usr/local/cpanel/3rdparty/bin/php and is used by anything PHP related ran within WHM or cPanel.
I check for /usr/local/cpanel/3rdparty/etc/php.ini and found that disable_functions are totally empty there.



@IrPr :

root@xxxxx [/home]# ls -als /usr/local/lib/php.ini /usr/lib/php.ini /opt/lsws/lsphp5/lib/php.ini
/bin/ls: /opt/lsws/lsphp5/lib/php.ini: No such file or directory
0 lrwxrwxrwx 1 root root 22 Feb 15 12:07 /usr/lib/php.ini -> /usr/local/lib/php.ini
40 -rw-r--r-- 1 root root 40218 Apr 1 08:21 /usr/local/lib/php.ini
Reply With Quote
  #18  
Old 03-31-2009, 06:53 PM
IrPr IrPr is offline
Senior Member
 
Join Date: Jul 2008
Posts: 147
Quote:
Originally Posted by DraCoola View Post
I check for /usr/local/cpanel/3rdparty/etc/php.ini and found that disable_functions are totally empty there.



@IrPr :

root@xxxxx [/home]# ls -als /usr/local/lib/php.ini /usr/lib/php.ini /opt/lsws/lsphp5/lib/php.ini
/bin/ls: /opt/lsws/lsphp5/lib/php.ini: No such file or directory
0 lrwxrwxrwx 1 root root 22 Feb 15 12:07 /usr/lib/php.ini -> /usr/local/lib/php.ini
40 -rw-r--r-- 1 root root 40218 Apr 1 08:21 /usr/local/lib/php.ini
Using lsws? whats your loaded php.ini path in phpinfo() ?
Reply With Quote
  #19  
Old 03-31-2009, 07:12 PM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
Quote:
Originally Posted by IrPr View Post
Using lsws? whats your loaded php.ini path in phpinfo() ?
/usr/local/lib/php.ini

But it is super worked now after running /scripts/makecpphp
Thank you for your all of disable_functions values
Reply With Quote
  #20  
Old 03-31-2009, 07:17 PM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
But still curious on how to enable the pure phpsuexec to this LS-Cpanel.
Because I think the security of LS will totally null if any user still can walk around to other users teritories.

It is just as the same as php-DSO (nobody), which username means nothing to php security.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:26 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.