LSWS and cPanel 11.25 disaster

Discussion in 'Apache Migration/Compatibility' started by ffeingol, Jan 15, 2010.

  1. ffeingol

    ffeingol Well-Known Member

    At lest on our servers there seems to be a major issue between LSWS and the 11.25 version of cPanel. cPanel is restarting LSWS as often as every 15 minutes. This is turning into a major issue. When cPanel issues these restarts (as many as 3 times in a very short time span) LSWS sometimes fails to restart. From what we can see in the logs it looks like the LSWS admin has not released the port and then the new one dies.

    In digging through /usr/local/cpanel/logs/stats_log it looks like the cPanel log process is parsing for something and not liking what it finds. We see things like:

    safeapacherestart is a binay, so we can't see what it's doing.

    Any help / thoughts from the LSWS staff would be appreciated. Is anyone else running cPanel seeing similar things?
  2. mistwang

    mistwang LiteSpeed Staff

    Version of LSWS are you running?
    Are you running LSWS parallel with Apache?
  3. ffeingol

    ffeingol Well-Known Member

    We're running the latest 3.x. So far we've resisted upgrading to 4.x because it simply did not seem stable. Yes, we are running Apache to handle SSI.
  4. ffeingol

    ffeingol Well-Known Member

    Is no one else having this issue (frequent restarts and LSWS failing to start sometimes) or has everyone else upgraded to 4.x? I'm really interested in hearing from others running LSWS and cPanel.
  5. Tony

    Tony Well-Known Member

    We run 4.x and also do not run cPanel 11.25 in fear of all the frequent restarts like you're experiencing.
  6. ffeingol

    ffeingol Well-Known Member

    Yea, we put the servers on manual update and watched the forums etc. for issues. Nothing popped up, so we upgraded. Then we found out about the issues :D
  7. mistwang

    mistwang LiteSpeed Staff

    Tony, are you experiencing the same issue with 11.25 ? I thought it was because running Apache parallel to LiteSpeed.
    The cPanel box in our lab is 11.25, does not show anything like what Frank posted.
  8. mistwang

    mistwang LiteSpeed Staff

    90% of our cPanel users are using 4.x releases. 4.0.7-4.0.9 had some issues, it had been addressed long time ago.
  9. ffeingol

    ffeingol Well-Known Member


    In your lab are you on Release? Have you updated to 11.25? How many sites etc. are on the server. How often are stats/bandwidth set to run (funny that I'm asking you all these questions).

    I'll compare our various boxes with LSWS and see if they are all having similar issues. I believe they all are, however, as we get a LSWS restarted message about every 15 minutes.
  10. anewday

    anewday Moderator

  11. ffeingol

    ffeingol Well-Known Member

    Yea, saw that too late. Prob. is it's not every hour, it's more like every 15 minutes.
  12. sux0r

    sux0r Well-Known Member

    Im on cPanel 11.25.0-E42552 - WHM 11.25.0 -
    The latest EDGE build and use Litespeed 4.0.12.

    I dnt get crashes, but litespeed does restart a little bit often sumtimes.
    Very few times do i see the uptime more than 1 hour.
    As it restarts gracefully i dnt find it as a problem :)

    These are the only things tht shows up regularly on the logs.

    2010-01-16 22:25:52.399 ERROR [config] rewrite: unknown server variable while parsing: XML:/*
    2010-01-16 22:25:52.400 WARN /usr/local/apache/conf/httpd.conf:127: Directive 'TypesConfig' is not allowed in current context.
  13. mistwang

    mistwang LiteSpeed Staff

    We fixed the TypesConfig issue and add tuned the Apache to LSWS adapter script a little in the updated 4.0.12 release package. You can login to LSWS admin console client "force reinstall" to update it under version management page.
  14. sux0r

    sux0r Well-Known Member

    Tried to force an update from the admin console and got the error.

    "Error: Failed to download release 4.0.12!"

    ~THanks :)

    I found in error_log

    2010-01-18 02:14:37.201 [NOTICE] [] [STDERR] PHP Warning: file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: URL file-access is disabled in the server configuration in /usr/local/lsws/admin/html.4.0.12/classes/ws/Service.php on line 537

    2010-01-18 02:14:37.201 [NOTICE] [] [STDERR] PHP Warning: file_get_contents( [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: no suitable wrapper could be found in /usr/local/lsws/admin/html.4.0.12/classes/ws/Service.php on line 537
    Last edited: Jan 18, 2010
  15. mistwang

    mistwang LiteSpeed Staff

    Please edit /usr/local/lsws/admin/conf/php.ini, change allow_url_fopen to "On".
  16. sux0r

    sux0r Well-Known Member

    Done tht, but still getting the error.
  17. mistwang

    mistwang LiteSpeed Staff

    after the change, you need to do "killall admin_php" to apply the change in php.ini .
    If you need get it, you need to download and upgrade manually, should be addressed in the latest build.
  18. ffeingol

    ffeingol Well-Known Member

    So, if we installed 4.0.12 do we need to re-install? Just wan to be clear.
  19. mistwang

    mistwang LiteSpeed Staff

    yes, you need a manual upgrade again.
  20. DanEZPZ

    DanEZPZ Well-Known Member

    4.0.12 doesn't fix this. Any other suggestions? One server is getting hit hard with this.

Share This Page