PHP Questions

Discussion in 'General' started by robdiablo, Nov 29, 2007.

  1. robdiablo

    robdiablo New Member

    We are thinking of getting LiteSpeed Enterprise for a new dual core dual processor server but have a few questions about how we set up the new configuration.

    We planned on using Plesk as our control panel but want the best performance out of LiteSpeed and PHP as possible and from what I can read, using the LSAPI version of PHP would result in the best performance. So my question is, if we use Plesk, we have to use phpsuexec and drop in litespeed in place of apache so does this not allow us to use LSAPI and does it decrease in performance?

    We don't need to use Plesk but would rather if it doesn't make a difference in performance by having to use phpsuexec.

    Hope that makes sense.

    PS. We are going to eventually rebuild the website using Ruby on Rails but in the meantime we'll continue to use the php version.
  2. mistwang

    mistwang LiteSpeed Staff

    You do not have to use PHP suEXEC with our LSAPI version of PHP, using suexec will not affect the performance with LSAPI PHP.
    If you host only one large website, whether to use suEXEC is really up to you. LSWS should work well with plesk no matter what.
  3. felosi

    felosi New Member

    On client's servers I have that hosts one big website i always run lsws as apache or nobody. I dont think it makes a difference though as far as performance. And to be honest I have seen the phpsuexec on latest lsws versions to use only a fraction more resources as usual.

    Here is some reasons you may wanna run a one site server as nobody or apache

    IN case the site is exploited and php shell is got on the site, they would only have read/write access to directories and files which are world readable and writable. With common chmod they would be able to read but not write to files and dirs unless they are world writable.

    So if you dont have any world writable directories then they would not be able to delete your site or overwrite files.

    With suphp if they have shell they now own the files and can write, modify, and delete at will but the benefits on shared hosting with this is that they most likely will not be able to affect other users and you can keep secure permissions on files and directories.

    So if you do not have any other users on your server then there should be no problem running as apache/nobody. As far as speed increase or performance increase I think it would be the same.

    And thats my logic on selecting suexec or nobody/apache. I think its just common sense, although I have brought up this subject before at webhostingtalk and turned into a huge argument so I think its a thing of preference.
  4. robdiablo

    robdiablo New Member

    This server hosts several websites thus the reason for using Plesk. It sounds like there won't be much of a difference then dropping LSWS in place of apache.

    Thanks for the info.

Share This Page