vBulletin + LSWS

Discussion in 'Install/Configuration' started by kokl, Dec 7, 2010.

  1. kokl

    kokl New Member

    Hello, we are running litespeed ent. 4.0.17, trial,
    and we wan't to test LSWS with vBulletin, that we are using,
    and to migrate from Apache.

    we are having issues with the attachments ...
    when the user clicks on the attachment he sees nothing, nor he can upload any attach.

    on the Apache there is no such problem

    maybe anyone has ran in to this issue ?

    Thanks in advance!
  2. webizen

    webizen New Member

    Is the running user for lsws the same as apache? Does the lsws running user have the write permission to the upload folder?
  3. kokl

    kokl New Member

    no , it is different server / uid.
    i am running on apache from user www
    LSWS -> nobody.
    i did chown -R nobody:nobody $VH_ROOT/html
    vb_attachments folder has 777 perms.

    i think this is some kind of rewrite issue, maybe ?

    if so , anyone have working rewrite rules for vBulletin + VBSEO + VBET on LSWS ?

    my rewrite rules are pasted below :
    (copied form apache .htaccess), and installed in to vhost rewrite tab.

    #RULES for SEO translation links with vBSEO (have to be included before all rules to vbseo.php)
    RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/ [L,QSA]
    RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/(.*)?$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/$2 [L,QSA]

    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbenterprisetranslator_seo.php [L,QSA]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule $ vbenterprisetranslator_seo.php [L,QSA]


    Options +FollowSymLinks
    RewriteCond %{HTTP_HOST} ^xxx\.site\.name$ [NC]
    RewriteRule ^(.*)$ xxx://site.name/$1 [R=301,L]

    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
  4. NiteWave

    NiteWave Administrator

    per-directory(.htaccess) rewriterule is a bit different with per-server rewrite rule(in vhost). the REQUEST_URI should start with / for per-server rewriterule

    for example the last
    Code:
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    should be
    Code:
    RewriteRule ^/(.+)$ /vbseo.php [L,QSA]
  5. kokl

    kokl New Member

    Thanks, but didn't help :

    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    RewriteBase /

    #RULES for SEO translation links with vBSEO (have to be included before all rules to vbseo.php)
    RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/$ /vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/ [L,QSA]
    RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/(.*)?$ /vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/$2 [L,QSA]

    RewriteCond %{REQUEST_URI} !(/admincp/|/modcp/|/vbseo_sitemap/|/cron)
    RewriteRule ^((/archive/)?(.*\.php(/.*)?))$ /vbenterprisetranslator_seo.php [L,QSA]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule $ /vbenterprisetranslator_seo.php [L,QSA]
    RewriteCond %{HTTP_HOST} ^www\.forexsystems\.ru$ [NC]
    RewriteRule ^/(.*)$ xxx://site.name/$1 [R=301,L]

    RewriteRule ^/((/urllist|/sitemap_).*\.(xml|txt)(\.gz)?)$ /vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

    RewriteCond %{REQUEST_URI} !(/admincp/|/modcp/|/cron|/vbseo_sitemap)
    RewriteRule ^((/archive/)?(.*\.php(/.*)?))$ /vbseo.php [L,QSA]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(/admincp|/modcp|/clientscript|/cpstyles|/images)/
    RewriteRule ^/(.+)$ /vbseo.php [L,QSA]


    sitemap rewrites also incorrectly :
    [REWRITE] Source URI: '/sitemap.xml' => Result URI: '/vbenterprisetranslator_seo.php'

    but it should go to /vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1
    ....


    i am very needing this, we are ready to buy LSWS now, but we need support/ for our vBulletin forum , with our config.
  6. NiteWave

    NiteWave Administrator

    RewriteBase is for per-directory rewrite, not need it in this per-server rewrite.
    I tried to clean up the rewrite rules:
    Code:
    RewriteRule ^/(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is |id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|s r|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/(.*)?$ /vbenterprisetranslator_seo.php?vbet_lang=$1&redire cted=/$2 [L,QSA]
    
    RewriteCond %{REQUEST_URI} !(/admincp/|/modcp/|/vbseo_sitemap/|/cron)
    RewriteRule ^((/archive)?/(.*\.php(/.*)?))$ /vbenterprisetranslator_seo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^/(admincp|modcp|clientscript|cpstyles|images|vbseo_sitemap)/
    RewriteRule ~/$ /vbenterprisetranslator_seo.php [L,QSA]
    
    RewriteCond %{HTTP_HOST} ^www\.forexsystems\.ru$ [NC]
    RewriteRule ^/(.*)$ xxx://site.name/$1 [R=301,L]
    
    RewriteRule ^(/urllist|/sitemap_).*\.(xml|txt)(\.gz)?$ /vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
  7. kokl

    kokl New Member

    it seems like there are problems not only with the rewrite, i have disabled it,
    in general i cannot attach anything or download attach. from forum

    some unknown php error occurs in the log (i am not seeing it on page, empty page)


    this is if posting some attach. :
    <<< 2010-12-08 17:46:44.290 [DEBUG] [94.75.220.142:60227-0#financeforum:lsapi] process STDERR stream 313 bytes, packet left: 313
    2010-12-08 17:46:44.290 [NOTICE] [94.75.220.142:60227-0#financeforum:lsapi] [STDERR] PHP Fatal error: <ul><li>
    what i see if i try to get attach (in debug log) :

    /attachment.php?attachmentid=119&d=1290015026 HTTP/1.1'
    2010-12-08 18:08:22.700 [INFO] [94.75.220.142:60468-0#financeforum] Cookie len: 715, __utma=133389593.1893243780.1284743605.1284743605.1291816272.2; __utmz=133389593.1284743605.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=133389593.usergroup-1-%D0%9D%D0%B5%20%D0%B7%D0%B0%D1%80%D0%B5%D0%B3%D0%B8%D1%81%D1%82%D1%80%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%BD%D1%8B%D0%B5%20%2F%20%D0%BD%D0%B5%20%D0%B2%D0%BE%D1%88%D0%B5%D0%B4%D1%88%D0%B8%D0%B5; __utmc=133389593; bb_lastvisit=1291816268; bb_lastactivity=0; bb_; bb_forum_view=f80d0a5c1a40c2afdccc469564385e7c1fc85e0aa-9-%7Bi-565_i-1291819517_i-632_i-1291816472_i-620_i-1291817041_i-467_i-1291817076_i-516_i-1291817092_i-533_i-1291817103_i-574_i-1291817330_i-576_i-1291817347_i-566_i-1291820799_%7D
    2010-12-08 18:08:22.700 [DEBUG] [94.75.220.142:60468-0#financeforum] processContextPath() return 0
    2010-12-08 18:08:22.700 [DEBUG] [94.75.220.142:60468-0#financeforum] run lsapi processor.
    2010-12-08 18:08:22.701 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] request header is done
    2010-12-08 18:08:22.701 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] Request body done!
    2010-12-08 18:08:22.701 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] processNewReq() return 0.
    2010-12-08 18:08:22.701 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] ExtConn::eek:nRead()
    2010-12-08 18:08:22.701 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] LsapiConn::doRead()
    2010-12-08 18:08:22.701 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] process packet header 8 bytes
    2010-12-08 18:08:22.701 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] process packet header 0 bytes
    2010-12-08 18:08:22.702 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] ExtConn::eek:nRead()
    2010-12-08 18:08:22.702 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] LsapiConn::doRead()
    2010-12-08 18:08:22.702 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] process packet header 8 bytes
    2010-12-08 18:08:22.702 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] process response header 54 bytes
    2010-12-08 18:08:22.702 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] response header finished!
    2010-12-08 18:08:22.702 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] process packet header 8 bytes
    2010-12-08 18:08:22.702 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] [EXT] EndResponse( endCode=0, protocolStatus=0 )
    2010-12-08 18:08:22.702 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] release ExtProcessor!
    2010-12-08 18:08:22.702 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] HttpConnection::flush()!
    2010-12-08 18:08:22.702 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] Written to client: 148
    2010-12-08 18:08:22.702 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] HttpConnection::nextRequest()!
    2010-12-08 18:08:22.702 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] HttpExtConnector::cleanUp() ...
    2010-12-08 18:08:22.702 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] Non-KeepAlive, CLOSING!
    2010-12-08 18:08:22.702 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] Shutting down out-bound socket ...
    2010-12-08 18:08:22.702 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] Available Connections: 4981
    2010-12-08 18:08:22.703 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] HttpIOLink::handleEvents() events=17!
    2010-12-08 18:08:22.703 [DEBUG] [94.75.220.142:60468-0#financeforum:lsapi] Close socket ...

    phpinfo : forexsystems.ru/phpinfo.php
    Last edited: Dec 8, 2010
  8. mistwang

    mistwang LiteSpeed Staff

    Looks like some required PHP modules are missing, you need to compare the phpinfo() page from the working Apache installation with LSWS installation. rebuild PHP accordingly.

    You need to check the complete error message in the error log below
    An easier way to migrate from Apache is to install Apache on the new server, make it work properly, install LSWS using the same user that Apache run as, let LSWS read Apache configuration instead of trying to configure everything natively.

Share This Page