WHMCS - Further Security Steps

Discussion in 'General' started by HostXNow, Dec 9, 2011.

  1. HostXNow

    HostXNow New Member

    Hi,

    Does LiteSpeed not support this? http://docs.whmcs.com/Further_Security_Steps

    Using

    $templates_compiledir = "/home/username/templates_c/";
    $attachments_dir = "/home/username/attachments/";
    $downloads_dir = "/home/username/downloads/";

    does not work

    but using

    $templates_compiledir = "/home/username/public_html/templates_c/";
    $attachments_dir = "/home/username/public_html/attachments/";
    $downloads_dir = "/home/username/public_html/downloads/";

    does work.
  2. webizen

    webizen New Member

    check error log (i.e. /usr/local/apache/logs/error_log) to see any details of the issue.
  3. HostXNow

    HostXNow New Member

    error_log doesn't show any errors for it.
  4. mistwang

    mistwang LiteSpeed Staff

    It should work fine, you need to create those directories and set proper permissions.
  5. HostXNow

    HostXNow New Member

    I'm using suPHP and so 0755 is being used but I get

  6. HostXNow

    HostXNow New Member

    Another user had an issue too

  7. HostXNow

    HostXNow New Member

    Strange... I just installed LiteSpeed on a VPS with the same software that is being used on the dedicated server and everything seems to be working fine. I guess there is issue with dedicated server.
  8. mistwang

    mistwang LiteSpeed Staff

    Maybe you need to check open_basedir setting, LiteSpeed PHP enforce open_basedir while suphp does not.
  9. HostXNow

    HostXNow New Member

    Is there setting in LiteSpeed for that? I couldn't find it.

    Here is another site where I found the index page is no longer loading correctly http://www.jrhosting.org

    Something to do with includes? I have AddOutputFilter INCLUDES .shtml .htm .html in /usr/local/apache/conf/include/pre_main_global.conf

    Is not LiteSpeed not seeing that?

    All other sites are loading fine.
  10. mistwang

    mistwang LiteSpeed Staff

    open_basedir is set for each vhost in httpd.conf by cpanel with php_admin_value. it usually only allow /home/user/public_html directory.

    AddOutputFilter should work with LiteSpeed. could be something else.
    However, it is not recommended to set SSI for htm and html file at global level, it slowdown serving plain html pages. better doing it to specific account need that.
  11. xpressdev

    xpressdev New Member

    In your configuration.php file, ensure that all the added lines are before the closing PHP tag ('?>') so that it falls with the rest of the lines between '<?php' and '?>'.

Share This Page