problem with part of my site when using LiteSpeed

Discussion in 'Install/Configuration' started by buy-host, Jan 16, 2008.

  1. buy-host

    buy-host New Member

    I currently have LiteSpeed installed on a port, so I can test it out before going live. However, I have noticed 1 problem which has puzzled me.

    I will upload 2 images of what it is, as that will explain it clearly. Basically part of the usergroup selection panel in the admincp of vbulletin forums is missing.

    Any idea how to fix this?

    Attached Files:

  2. mistwang

    mistwang LiteSpeed Staff

    We do not have much clue, we run the same version of vB, the admincp works fine.
    Check the html source code, see if it is a partial page?
    Check for PHP errors in lsws/logs/error.log and lsws/logs/stderr.log.
  3. mistwang

    mistwang LiteSpeed Staff

    I think it is a PHP problem, compare the configuration of PHP for LiteSpeed and Apache in phpinfo() page and use the same configuration for LiteSpeed.
  4. buy-host

    buy-host New Member

    Last edited: Jan 17, 2008
  5. buy-host

    buy-host New Member

    Anyway update on the problem:

    doing a view source in LiteSpeed gives me this

    and in Apache

    Used both the latest version of both Fire Fox and Internet Explorer. The admincp works with apache, but does not work with LiteSpeed.

    Not sure if the above helps solve the issue or not, but thought I would post it.
  6. mistwang

    mistwang LiteSpeed Staff

    That's code for the top level frame, does not help.
    check the html code for

    admincp/index.php?do=home
  7. buy-host

    buy-host New Member

    Apache
    Will have to post this in sections as I have entered too many characters.
    Last edited: Jan 20, 2008
  8. buy-host

    buy-host New Member

    Apache continued
    Will have to post this in sections as I have entered too many characters.
    Last edited: Jan 20, 2008
  9. buy-host

    buy-host New Member

    LiteSpeed

    Will have to post this in section as I have entered too many characters.
    Last edited: Jan 20, 2008
  10. buy-host

    buy-host New Member

    LiteSpeed continued


    Also php.ini and PHP configuration are identical to the working one. There are no errors logged in lsws logs.


    hopefully with the above source code you will be able to identify the problem, as my trial is running out, and I have yet to use it while it still has this problem/bug.
    Last edited: Jan 20, 2008
  11. mistwang

    mistwang LiteSpeed Staff

    The URL was wrong, It is the frontpage of admincp.
    the actual URL need to be checked should be

    /admincp/user.php?do=edit&u=1
  12. buy-host

    buy-host New Member

    Okay I will upload a text file of each, (actually a zip of each, as even the txt is to big to upload to here)

    Okay attached is both the apache and the Litespeed source of the link you requested above.

    hopefully this time you will be able to debug the problem.

    Attached Files:

  13. mistwang

    mistwang LiteSpeed Staff

    The output of LiteSpeed shows that the PHP has crashed.

    I have met a problem like that once. Are you using Zend ExtensionManager? Please make sure the additional extension configuration directory and its configuration files inside are readable by nobody user.

    If that is not your problem, you have to use "strace -p <lsphp_pid>" to trace the crashing PHP process.
  14. buy-host

    buy-host New Member

    1. PHP is compiled as a separate install in /usr/lsphp5 with the following parameters to match cPanel's install of easyapache:

    /configure --enable-bcmath --enable-calendar --enable-discard-path --enable-exif --enable-force-cgi-redirect --enable-ftp --enable-gd-native-ttf --enable-libxml --enable-magic-quotes --enable-mbstring --enable-pdo=shared --enable-soap --enable-sockets --enable-wddx --enable-zip --prefix=/usr/lsphp5 --with-bz2 --with-curl=/opt/curlssl/ --with-curlwrappers --with-freetype-dir=/usr --with-gd --with-gettext --with-imap=/opt/php_with_imap_client/ --with-imap-ssl=/usr --with-jpeg-dir=/usr --with-kerberos --with-libexpat-dir=/usr --with-libxml-dir=/opt/xml2 --with-libxml-dir=/opt/xml2/ --with-mcrypt=/opt/libmcrypt/ --with-mhash=/opt/mhash/ --with-mime-magic --with-mm=/opt/mm/ --with-mysql --with-mysqli --with-openssl=/usr --with-openssl-dir=/usr --with-pdo-mysql=shared --with-pdo-sqlite=shared --with-png-dir=/usr --with-pspell --with-sqlite=shared --with-ttf --with-xmlrpc --with-xpm-dir=/usr/X11R6 --with-xsl=/opt/xslt/ --with-zlib --with-zlib-dir=/usr --with-config-file-path=/usr/lsphp5/lib --with-litespeed

    2. There are no log entries in /usr/local/lsws/logs when the forums admin panel is opened. Even with debug logging toggled on.

    3. I have added this vhost manually, with/without chroot in lsws virtual hosts. Whatever I try changing, no change. All else seems to be working but usergroups in admin panel. htaccess inheritance turned on, rewrites turned on, Symlinks IfOwnerMatch on as well.

    What additional information will you need now?
  15. mistwang

    mistwang LiteSpeed Staff

    You really need to "strace" the lsphp process to see what is going on, if you run LiteSpeed in chroot jail, there might be missing libraries that required by lsphp. so, try it without chroot.

    And when using with cPanel, I don't think it is a easy task to make chroot lsws work properly, it is possible, just so many things could go wrong, we do not recommend.
  16. buy-host

    buy-host New Member

    chrooting is off from the beginning

    whatever I do... all same. I am starting to wonder if it has anything to do with VBSEO rewrites:

    -------------------------------------------------------
    2008-01-22 06:46:33.495 INFO [78.0.145.243:4603-0#gamerzneeds.net] [REWRITE] Source URI: 'admincp/index.php' => Result URI: 'vbseo.php?vbseourl=admincp/index.php'
    2008-01-22 06:46:33.515 INFO [78.0.145.243:4604-0#gamerzneeds.net] [REWRITE] Source URI: 'admincp/index.php' => Result URI: 'vbseo.php?vbseourl=admincp/index.php'
    2008-01-22 06:46:33.535 INFO [78.0.145.243:4605-0#gamerzneeds.net] [REWRITE] Source URI: 'admincp/index.php' => Result URI: 'vbseo.php?vbseourl=admincp/index.php'
    2008-01-22 06:46:35.024 INFO [78.0.145.243:4608-0#gamerzneeds.net] [REWRITE] Source URI: 'admincp/newsproxy.php' => Result URI: 'vbseo.php?vbseourl=admincp/newsproxy.php'
    2008-01-22 06:46:47.301 INFO [78.0.145.243:4611-0#gamerzneeds.net] [REWRITE] Source URI: 'admincp/user.php' => Result URI: 'vbseo.php?vbseourl=admincp/user.php'
    2008-01-22 06:46:51.634 INFO [78.0.145.243:4612-0#gamerzneeds.net] [REWRITE] Source URI: 'admincp/user.php' => Result URI: 'vbseo.php?vbseourl=admincp/user.php'
    2008-01-22 06:46:52.023 INFO [78.0.145.243:4613-0#gamerzneeds.net] [REWRITE] Source URI: 'admincp/user.php' => Result URI: 'vbseo.php?vbseourl=admincp/user.php'
    -------------------------------------------------------

    Probably not, as those are only INFO level log entries, but I really don't know where to look anymore.
  17. mistwang

    mistwang LiteSpeed Staff

    That's possible, admincp should be excluded from vbSEO, seems it has the rule to execlude it according to the posts from other users in the past.

    But, anyway, it should not cause PHP to crash, so you need to strace lsphp to find out why PHP crashed in the middle of that request. Just put LiteSpeed on another port so you are the only one who can access it. access the admincp page, then find out the PID of the lsphp process with "ps -ef | grep lsphp", then "strace -p <pid_of_lsphp>", send the request , check the strace output. I believe there should be missing module need to be used by that script.
  18. buy-host

    buy-host New Member

    I'm still having problems, we are still stumped by this. Vbseo works with litespeed the same way it does with apache when refferring to the docs, so there is no missing modules for the script. Have you got any other ideas?

    Also I just got this: Your license key will expire in 3 days, renew your license key before it expires, hurry up!

    Is there a possiblity you can extend that so we can sort this problem/bug out with my installation and then I can finally test it live on my server so I can see the performance difference on my server.


    Last edited: Jan 27, 2008
  19. mistwang

    mistwang LiteSpeed Staff

    You have to trace a PHP process that proces the request that has problem, those are idle processes.
    You can apply another trial, we allow trial for maximum 30-days for each server, and we offer 30-days money back as well.
  20. buy-host

    buy-host New Member

    We think it may be a problem with maybe the httaccess file. I will post both my root httaccess and the forums httaccess and see if you can see any problem with them.

    root httaccess
    Code:
    RewriteEngine On 
    
    RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ forums/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    RewriteCond %{HTTP_HOST} !^www\.gamerzneeds\.net
    RewriteRule (.*) http://www.gamerzneeds.net/$1 [L,R=301]
    RewriteRule ^forumz?(/.*)?$ http://www.gamerzneeds.net/forums/? [L,R=301]
    
    RewriteRule ^vote-([0-9]*).html index.php?page=Vote&id=$1 [L,NS]
    RewriteRule ^poll-([0-9]*).html index.php?page=Poll&id=$1 [L,NS]
    RewriteRule ^poll-([0-9]*)-(.*).html index.php?page=Poll&id=$1 [L,NS]
    RewriteRule ^poll.reportcomment.([0-9]*)-([0-9]*).html index.php?page=Poll&id=$2&op=reportcomment&commentid=$1 [L,NS]
    
    RewriteRule ^polls.html index.php?page=Polls [L,NS]
    RewriteRule ^login.html index.php?page=Login [L,NS]
    RewriteRule ^changepw.html index.php?page=Password [L,NS]
    RewriteRule ^activate/(.*) activate.php?key=$1 [L,NS]
    RewriteRule ^archive-([^/]*)-([^/]*).html index.php?page=Archive&archive_month=$1&tag=$2 [L,NS]
    RewriteRule ^archive-([^/]*).html index.php?page=Archive&archive_month=$1 [L,NS]
    RewriteRule ^archive.html index.php?page=Archive [L,NS]
    
    RewriteRule ^faq-([0-9]*)-(.*).html index.php?page=FAQ&id=$1 [L,NS]
    
    RewriteRule ^articles.html index.php?page=Articles [L,NS]
    RewriteRule ^article-([0-9]*).html index.php?page=Articles&action=showarticle&id=$1 [L,NS]
    RewriteRule ^article-([0-9]*)-(.*).html index.php?page=Articles&action=showarticle&id=$1 [L,NS]
    RewriteRule ^articlenav-(.*)-page-(.*).html index.php?page=Articles&action=showarticle&id=$1&nav=$2 [L,NS]
    RewriteRule ^articletype-(.*)-(.*).html index.php?page=Articles&action=cat&type=$1&p=$2 [L,NS]
    RewriteRule ^articlesearch.html index.php?page=Search&exec=Search&t=articles [L,NS]
    RewriteRule ^articles-(.*).html index.php?page=Articles&action=cat&type=$1 [L,NS]
    RewriteRule ^([^/]*)-([0-9]*)-articlenav.html index.php?page=Articles&action=cat&type=$1&nav=$2 [L,NS]
    RewriteRule ^([^/]*)-([0-9]*)-articlenav-(.*).html index.php?page=Articles&action=cat&type=$1&nav=$2&p=$3 [L,NS]
    RewriteRule ^article.reportcomment.([0-9]*)-([0-9]*).html index.php?page=Articles&action=showarticle&id=$2&op=reportcomment&commentid=$1 [L,NS]
    
    RewriteRule ^cheats.html index.php?page=Cheats [L,NS]
    RewriteRule ^cheatlist-(.*)-(.*)-(.*).html index.php?page=Cheats&start=$1&cat=$2&nav=$3 [L,NS]
    RewriteRule ^cheat-([0-9]*)-(.*).html index.php?page=Cheats&action=show&game=$1&platform=$2 [L,NS]
    
    RewriteRule ^companylist-(.*)-(.*).html index.php?page=Companies&start=$1&nav=$2 [L,NS]
    RewriteRule ^company-(.*).html index.php?page=Companies&action=show&t=$1 [L,NS]
    RewriteRule ^companies.html index.php?page=Companies [L,NS]
    
    RewriteRule ^linklist-([0-9]*)-([0-9]*).html index.php?page=Links&action=cat&cat_id=$1&nav=$2 [L,NS]
    RewriteRule ^link-([0-9]*).html index.php?page=Links&action=out&id=$1 [L,NS]
    RewriteRule ^links.html index.php?page=Links [L,NS]
    RewriteRule ^linkcat-([0-9]*).html index.php?page=Links&action=cat&cat_id=$1 [L,NS]
    RewriteRule ^linknav-([0-9]*)-([0-9]*).html index.php?page=Links&action=cat&cat_id=$1&nav=$2 [L,NS]
    RewriteRule ^([0-9]*)-([0-9]*)-linknav-(.*).html index.php?page=Links&action=cat&cat_id=$1&nav=$2&orderby=$3 [L,NS]
    RewriteRule ^linksearch.html index.php?page=Search&exec=Search&t=links [L,NS]
    
    RewriteRule ^videolist-(.*)-(.*).html index.php?page=Video&action=cat&cat_id=$1&nav=$2 [L,NS]
    RewriteRule ^video-([0-9]*).html index.php?page=Video&action=showvideo&id=$1 [L,NS]
    RewriteRule ^video-([0-9]*)-(.*).html index.php?page=Video&action=showvideo&id=$1 [L,NS]
    RewriteRule ^video.html index.php?page=Video [L,NS]
    RewriteRule ^videos.html index.php?page=Video [L,NS]
    RewriteRule ^videocat-([0-9]*).html index.php?page=Video&action=cat&cat_id=$1 [L,NS]
    RewriteRule ^([0-9]*)-([0-9]*)-videonav.html index.php?page=Video&action=cat&cat_id=$1&nav=$2 [L,NS]
    RewriteRule ^video.reportcomment.([0-9]*)-([0-9]*).html index.php?page=Video&action=showvideo&id=$2&op=reportcomment&commentid=$1 [L,NS]
    RewriteRule ^videosearch.html index.php?page=Search&exec=Search&t=video [L,NS]
    RewriteRule ^([0-9]*)-([0-9]*)-videonav-(.*).html index.php?page=Video&action=cat&cat_id=$1&nav=$2&orderby=$3 [L,NS]
    
    RewriteRule ^medialist-(.*)-(.*).html index.php?page=Media&action=cat&cat_id=$1&nav=$2 [L,NS]
    RewriteRule ^media-(.*).html index.php?page=Media&action=showfile&id=$1 [L,NS]
    RewriteRule ^media.html index.php?page=Media [L,NS]
    RewriteRule ^mediacat-(.*).html index.php?page=Media&action=cat&cat_id=$1 [L,NS]
    RewriteRule ^([0-9]*)-([0-9]*)-medianav.html index.php?page=Media&action=cat&cat_id=$1&nav=$2 [L,NS]
    RewriteRule ^media.reportcomment.([0-9]*)-([0-9]*).html index.php?page=Media&action=showfile&id=$2&op=reportcomment&commentid=$1 [L,NS]
    RewriteRule ^mediasearch.html index.php?page=Search&exec=Search&t=screenshots [L,NS]
    
    RewriteRule ^gamestatadd-(.*)-(.*).html index.php?page=Games&action=showgame&id=$1&add=$2 [L,NS]
    RewriteRule ^gamestatrem-(.*)-(.*).html index.php?page=Games&action=showgame&id=$1&remove=$2 [L,NS]
    RewriteRule ^gamemedia-(.*)-(.*).html index.php?page=Games&action=showgame&id=$1&show=Media&nav=$2 [L,NS]
    RewriteRule ^gamelist-([^/]*)-([^/]*)-([0-9]*)-([^/]*).html index.php?page=Games&start=$1&cat=$2&nav=$3&genre=$4 [L,NS]
    RewriteRule ^games.html index.php?page=Games [L,NS]
    RewriteRule ^game-([0-9]*).html index.php?page=Games&action=showgame&id=$1 [L,NS]
    RewriteRule ^game-([0-9]*)-(.*).html index.php?page=Games&action=showgame&id=$1 [L,NS]
    
    RewriteRule ^game.articles-(.*)-(.*).html index.php?page=Games&action=showgame&id=$1&show=articles [L,NS]
    RewriteRule ^game.faq-(.*)-(.*).html index.php?page=Games&action=showgame&id=$1&show=faq [L,NS]
    RewriteRule ^game.achievements-(.*)-(.*).html index.php?page=Games&action=showgame&id=$1&show=achievements [L,NS]
    RewriteRule ^game.files-(.*)-(.*).html index.php?page=Games&action=showgame&id=$1&show=files [L,NS]
    RewriteRule ^game.media-(.*)-(.*).html index.php?page=Games&action=showgame&id=$1&show=media [L,NS]
    RewriteRule ^game.video-(.*)-(.*).html index.php?page=Games&action=showgame&id=$1&show=video [L,NS]
    RewriteRule ^game.cheats-(.*)-(.*).html index.php?page=Games&action=showgame&id=$1&show=cheats [L,NS]
    
    RewriteRule ^topgames.html index.php?page=Top+Games [L,NS]
    RewriteRule ^topgames-(.*).html index.php?page=Top+Games&cat=$1 [L,NS]
    
    RewriteRule ^upcoming-(.*).html index.php?page=Upcoming+Games&cat=$1 [L,NS]
    RewriteRule ^upcoming.html index.php?page=Upcoming+Games [L,NS]
    
    RewriteRule ^members.html index.php?page=Members [L,NS]
    RewriteRule ^memberlist-(.*)-([0-9]*)-(.*).html index.php?page=Members&start=$1&nav=$2&country=$3 [L,NS]
    RewriteRule ^system-(.*) index.php?page=Console&p=$1 [L,NS]
    RewriteRule ^online.html index.php?page=Online [L,NS]
    RewriteRule ^usercp.html index.php?page=User+CP [L,NS]
    RewriteRule ^editprofile-do.html index.php?page=Edit+Profile&edit=do [L,NS]
    RewriteRule ^editprofile.html index.php?page=Edit+Profile [L,NS]
    RewriteRule ^inbox.html index.php?page=User+CP&action=messages [L,NS]
    RewriteRule ^myblog.html index.php?page=User+CP&action=blog [L,NS]
    RewriteRule ^myblog-edit-([0-9]*).html index.php?page=User+CP&action=blog&op=edit&id=$1 [L,NS]
    RewriteRule ^myblog-remove-([0-9]*).html index.php?page=User+CP&action=blog&op=remove&id=$1 [L,NS]
    RewriteRule ^myblog-removeyes-([0-9]*).html index.php?page=User+CP&action=blog&op=remove&id=$1&exec=remove [L,NS]
    RewriteRule ^myblog-add.html index.php?page=User+CP&action=blog&op=add [L,NS]
    
    RewriteRule ^search.html index.php?page=Search&exec=Search [L,NS]
    RewriteRule ^gamesearch.html index.php?page=Search&exec=Search&t=games [L,NS]
    RewriteRule ^cheatsearch.html index.php?page=Search&exec=Search&t=cheats [L,NS]
    RewriteRule ^filesearch.html index.php?page=Search&exec=Search&t=file [L,NS]
    RewriteRule ^forumsearch.html index.php?page=Search&exec=Search&t=forums [L,NS]
    
    RewriteRule ^contact.html index.php?page=Contact [L,NS]
    RewriteRule ^contact-thanks.html index.php?page=Contact&action=thanks [L,NS]
    RewriteRule ^logout.html index.php?page=Logout [L,NS]
    RewriteRule ^logout-yes.html index.php?page=Logout&logmeout=1 [L,NS]
    RewriteRule ^profile-(.*).html index.php?page=User+Profile&u=$1 [L,NS]
    RewriteRule ^allshouts.html shoutbox_all.php [L,NS]
    RewriteRule ^company-(.*).html index.php?page=Company&action=show&t=$1 [L,NS]
    RewriteRule ^register.html index.php?page=Register [L,NS]
    
    RewriteRule ^pages.html index.php?page=Page [L,NS]
    RewriteRule ^page-(.*).html index.php?page=Page&action=showpage&id=$1 [L,NS]
    RewriteRule ^page-(.*)-(.*).html index.php?page=Page&action=showpage&id=$1 [L,NS]
    RewriteRule ^pagenav-(.*).html index.php?page=Page&orderby=$1 [L,NS]
    
    RewriteRule ^blognav-([0-9]*).html index.php?page=Blogs&nav=$1 [L,NS]
    RewriteRule ^blogs.html index.php?page=Blogs [L,NS]
    RewriteRule ^blog-([0-9]*).html index.php?page=Blogs&action=show&id=$1 [L,NS]
    RewriteRule ^blog-([0-9]*)-(.*).html index.php?page=Blogs&action=show&id=$1 [L,NS]
    
    post too long, will post the rest in the next post.

Share This Page