Litespeed Standard Version query

Discussion in 'General' started by Mahesh, Aug 5, 2014.

  1. Mahesh

    Mahesh New Member

    I was wondering, how this 1 worker process feature in standard version impacts a decent site, I am newbie and no idea what is this. Please somebody guide me. Usually how many worker processes are needed for a 200 to 300 visitors per day cms based site.
  2. NiteWave

    NiteWave Administrator

  3. Mahesh

    Mahesh New Member

    Thank you for reply. I read that, but how it is related to traffic in terms of how much 1 process can handle, how many visitors per day or soemthing with which I can compare my requirement.
  4. NiteWave

    NiteWave Administrator

    1 process can handle many many requests, for example in benchmark, it can server thousands of requests per second. You needn't worry about worker's number at all when the traffic is very low. any web server should handle it very well, include apache. if you only have 1 or a few virtual hosts, you can try standard version. the real-time stats will tell you if it works well during the peak hour.
    lsws web admin->Actions->Real-Time Stats
  5. Mahesh

    Mahesh New Member

    Thank you for this. I am testing with standard version. By the way, do you offer LSCache as standlone subscription for standard version
  6. NiteWave

    NiteWave Administrator

    while this is question for sales, I'd say it looks not possible in near future. that'll go open litespeed.
  7. Mahesh

    Mahesh New Member

    Please help me. I have installed magento on the server and it always gives 503 error. I checked log and there is no error in it. I have enabled rewrite, .htaccess, index.php etc. Please help me. I am just stuck with, trying for hours to solve this issue, I installed LS twice and recompiled php many times, but it wont give an error in log.
  8. Mahesh

    Mahesh New Member

    My stedr.lgo

    2014-08-06 09:10:39.991 [STDERR] Child process with pid: 2014 was killed by signal: 11, core dump: 0
    2014-08-06 09:10:39.992 [STDERR] Child process with pid: 2015 was killed by signal: 11, core dump: 0
    2014-08-06 09:10:39.993 [STDERR] Child process with pid: 2016 was killed by signal: 11, core dump: 0

    I enabled
  9. Mahesh

    Mahesh New Member

    2014-08-06 09:19:03.304 [NOTICE] [AdminPHP] stop worker processes
    2014-08-06 09:19:08.972 [INFO] [198.50.233.48:33619-0#wotdshop.in] connection to [/tmp/lshttpd/lsphp5.sock.760] on request #0, confirmed, 1, associated process: 2190, running: 1, error: Connection reset by peer!
    2014-08-06 09:19:08.973 [INFO] [198.50.233.48:33619-0#wotdshop.in] connection to [/tmp/lshttpd/lsphp5.sock.760] on request #0, confirmed, 1, associated process: 2190, running: 1, error: Connection reset by peer!
    2014-08-06 09:19:08.974 [INFO] [198.50.233.48:33619-0#wotdshop.in] connection to [/tmp/lshttpd/lsphp5.sock.760] on request #0, confirmed, 1, associated process: 2190, running: 1, error: Connection reset by peer!
    2014-08-06 09:19:08.974 [NOTICE] [198.50.233.48:33619-0#wotdshop.in] Max retries has been reached, 503!
    2014-08-06 09:19:08.974 [NOTICE] [198.50.233.48:33619-0#wotdshop.in] oops! 503 Service Unavailable^M
    2014-08-06 09:19:08.974 [NOTICE] [198.50.233.48:33619-0#wotdshop.in] Content len: 0, Request line: 'GET / HTTP/1.1'
    2014-08-06 09:19:08.974 [INFO] [198.50.233.48:33619-0#wotdshop.in] abort request..., code: 4
    2014-08-06 09:19:31.365 [INFO] [198.50.233.48:33620-0#wotdshop.in] connection to [/tmp/lshttpd/lsphp5.sock.760] on request #0, confirmed, 1, associated process: 2190, running: 1, error: Connection reset by peer!
    2014-08-06 09:19:31.366 [INFO] [198.50.233.48:33620-0#wotdshop.in] connection to [/tmp/lshttpd/lsphp5.sock.760] on request #0, confirmed, 1, associated process: 2190, running: 1, error: Connection reset by peer!
    2014-08-06 09:19:31.367 [INFO] [198.50.233.48:33620-0#wotdshop.in] connection to [/tmp/lshttpd/lsphp5.sock.760] on request #0, confirmed, 1, associated process: 2190, running: 1, error: Connection reset by peer!
    2014-08-06 09:19:31.367 [NOTICE] [198.50.233.48:33620-0#wotdshop.in] Max retries has been reached, 503!
    2014-08-06 09:19:31.367 [NOTICE] [198.50.233.48:33620-0#wotdshop.in] oops! 503 Service Unavailable^M
    2014-08-06 09:19:31.367 [NOTICE] [198.50.233.48:33620-0#wotdshop.in] Content len: 0, Request line: 'GET /~greatval/watches/n-z/spalding/spalding-men-s-silicon-strap-sp45-watch-choose-any-color.html HTTP/1.1'
    2014-08-06 09:19:31.367 [NOTICE] [198.50.233.48:33620-0#wotdshop.in] Redirect: #1, URL: /index.php
    2014-08-06 09:19:31.367 [INFO] [198.50.233.48:33620-0#wotdshop.in] abort request..., code: 4
  10. Michael

    Michael Administrator Staff Member

  11. Mahesh

    Mahesh New Member

    I have gone through that wiki page and enabled LSAPI_ALLOW_CORE_DUMP=1 in enviornment and I dont know where this dump is created. I dont see it in webroot and html folder. I see error log there, which I have posted.
  12. Mahesh

    Mahesh New Member

    The problem solved, I never was able to see the core dump but the problem was with permissions to cgi-bin and fcgi-bin folders in default location. They were for root and i changed to nobody and it fixed the problem of error 503. But still not able to find the core dump file.
  13. Mahesh

    Mahesh New Member

    Everything looks fine now, but again an issue, file permissions adn user group everything is default, nobody, but still getting this error
    Warning: Your Magento folder does not have sufficient write permissions. which appears when both above issues are not correct.
  14. bettinz

    bettinz Member

    Because if you enable phpsuexec, folders and files need user permission:
    For example
    chown -R username:group public_html/
    :)
  15. Mahesh

    Mahesh New Member

    Okay, I was doing inside html, not html. tx.
  16. Mahesh

    Mahesh New Member

    RewriteBase /

    The above rewrite is not working, it is giving error
    Invalid rewrite directive: RewriteBase /
  17. NiteWave

    NiteWave Administrator

    if the whole .htaccess not big, please paste here.
  18. Mahesh

    Mahesh New Member

    RewriteBase /

    ############################################
    ## Uncomment out the next line to enable light API calls processing

    # RewriteRule ^/api/([a-z][0-9a-z_]+)/?$ api.php?type=$1 [QSA,L]

    ############################################
    ## Rewrite API2 calls to api.php (by now it is REST only)

    RewriteRule ^/api/rest api.php?type=rest [QSA,L]

    ############################################
    ## Workaround for HTTP authorization in the CGI environment

    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    ############################################
    ## TRACE and TRACK HTTP methods disabled to prevent XSS attacks

    RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
    RewriteRule .* - [L,R=405]

    ############################################
    ## Redirect for mobile user agents

    #RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$
    #RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
    #RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]

    ############################################
    ## Always send 404 for missing files in these folders

    RewriteCond %{REQUEST_URI} !^/magento/(media|skin|js)/

    ############################################
    ## Never rewrite for existing files, directories, and links

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l

    ############################################
    ## Rewrite everything else to index.php

    RewriteRule .* /index.php [L]
  19. Mahesh

    Mahesh New Member

    There is nothing wrong in these rules, they are from openlitespeed magento quick installation guide and they are working fine, but it is showing error in logs always, I guess I can ignore that.

    I am also testing openlitespeed but could not make the cache module work, it is installed fine but just wont work, i have enabled it at server level, virtual level as shown in wiki, but it wont work, i.e, I am looking at headers and it wont show litespeed cache.
  20. Michael

    Michael Administrator Staff Member

Share This Page