need help with vbulletin / litespeed settings

#1
Can someone please suggest optimal vBulletin + DBSEO settings to work alongside Lite Speed?

My htaccess as of now:

Note: I had these 3 lines originally in my htaccess <ifModule mod_expires.c> section and the site zipped through every page, but I always had to F5 refresh to see actual new content I've posted or others posted.

Code:
ExpiresActive On
ExpiresDefault "access plus 1 year"
ExpiresByType text/html "access plus 1 year"
Code:
RewriteEngine On

RewriteBase /

RewriteCond %{HTTP_HOST} !^www\.mydomain\.com
RewriteRule (.*)  http://www.mydomain.com/$1 [L,R=301]

RewriteCond %{REQUEST_URI} !(adminxxxxx/|modsxxxxx/|cron)
RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ dbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(adminxxxxx|modsxxxxx|clientscript|cpstyles|images|gallery)/
RewriteRule ^(.+)$ dbseo.php [L,QSA]

## Rewrites
<ifmodule mod_rewrite.c>
  RewriteEngine on
  Options +FollowSymlinks

  RewriteCond %{REQUEST_FILENAME} -s [OR]
  RewriteCond %{REQUEST_FILENAME} -l [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^.*$ - [NC,L]

  # Media Library
  ReWriteRule ^media/m(\d+).*/tags$ media.php?do=tags_edit&mid=$1 [QSA]
  ReWriteRule ^media/m(\d+).*/edit$ media.php?do=details_edit&mid=$1 [QSA]
  ReWriteRule ^media/m(\d+).*/report$ media.php?do=report&mid=$1 [QSA]
  ReWriteRule ^media/m(\d+).*/c(\d+)$ media.php?do=comment_edit&cmt=$2 [QSA]
  ReWriteRule ^media/m(\d+).*/p(\d+).*$ media.php?do=details&mid=$1&pid=$2 [QSA]
  ReWriteRule ^media/m(\d+).* media.php?do=details&mid=$1 [QSA]
  ReWriteRule ^media/p(\d+).*/edit$ media.php?do=playlist_edit&pid=$1 [QSA]
  ReWriteRule ^media/p(\d+).* media.php?do=playlist&pid=$1 [QSA]
  ReWriteRule ^media/c(\d+).* media.php?do=category&cid=$1 [QSA]
  ReWriteRule ^media/u(\d+).* media.php?do=user&uid=$1 [QSA]
  ReWriteRule ^media/tag/(.*) media.php?do=tag&tid=$1 [QSA]
  ReWriteRule ^media/results/(.*) media.php?do=results&query=$1 [QSA]
  ReWriteRule ^media/advresults/(.*) media.php?do=advresults&query=$1 [QSA]
  ReWriteRule ^media/letter/(.*) media.php?do=letter&query=$1 [QSA]
  ReWriteRule ^media/browse.* media.php?do=browse [QSA]
  ReWriteRule ^media/search.* media.php?do=search [QSA]
  ReWriteRule ^media/random.* media.php?do=random [QSA]
  ReWriteRule ^media/submit.* media.php?do=submit [QSA]
  ReWriteRule ^media/tagcloud.* media.php?do=tagcloud [QSA]
  ReWriteRule ^media/playlists.* media.php?do=playlists [QSA]
  ReWriteRule ^media/pcreate.* media.php?do=playlists_create [QSA]
  ReWriteRule ^media/pmine.* media.php?do=playlists_mine [QSA]
  ReWriteRule ^media/favorites.* media.php?do=favorites [QSA]
  ReWriteRule ^media/subscriptions.* media.php?do=subscriptions [QSA]
  ReWriteRule ^media/admin/edit/s(\d+).* media.php?do=admin_host_edit&sid=$1 [QSA]
  ReWriteRule ^media/admin/delete/s(\d+).* media.php?do=admin_host_delete&sid=$1 [QSA]
  ReWriteRule ^media/admin/export/s(\d+).* media.php?do=admin_host_export&sid=$1 [QSA]
  ReWriteRule ^media/admin/(\w+).* media.php?do=admin_$1 [QSA]

  # Media Library from Video Directory
  RewriteCond %{QUERY_STRING} do=viewdetails&videoid=(\d+)
  RewriteRule ^video\.php$ media.php?do=details&mid=%1
  RewriteCond %{QUERY_STRING} viewcategory&categoryid=(\d+)
  RewriteRule ^video\.php$ media.php?do=category&cid=%1
  RewriteCond %{QUERY_STRING} viewuser&userid=(\d+)
  RewriteRule ^video\.php$ media.php?do=user&uid=%1
  RewriteCond %{QUERY_STRING} viewtag&tag=(.*)
  RewriteRule ^video\.php$ media.php?do=tag&tid=%1
  ReWriteRule ^video\.php$ media.php

  # Forum
  RewriteRule ^threads/.* showthread.php [QSA]
  RewriteRule ^forums/.* forumdisplay.php [QSA]
  RewriteRule ^members/.* member.php [QSA]
  RewriteRule ^blogs/.* blog.php [QSA]
  ReWriteRule ^entries/.* entry.php [QSA]

  RewriteCond %{REQUEST_FILENAME} -s [OR]
  RewriteCond %{REQUEST_FILENAME} -l [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^.*$ - [NC,L]

  # MVC
  RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA]
   
</ifmodule>

## Expires
<ifModule mod_expires.c>
  ExpiresActive On
  ExpiresByType image/gif "access plus 1 year"
  ExpiresByType image/jpeg "access plus 1 year"
  ExpiresByType image/png "access plus 1 year"
  ExpiresByType text/css "access plus 1 year"
  ExpiresByType text/javascript "access plus 1 year"
  ExpiresByType application/javascript "access plus 1 year"
  ExpiresByType application/x-javascript "access plus 1 year"
</ifModule>

#Deny attempts to view the Htaccess file.
<Files .htaccess>
Order allow,deny
Deny from all
</Files>

RewriteCond %{HTTP_HOST} ^mydomain\.org$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.org$
RewriteRule ^/?$ "http\:\/\/www\.mydomain\.com\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^mydomain\.co\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.co\.uk$
RewriteRule ^/?$ "http\:\/\/www\.mydomain\.com\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^mydomain\.us$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.us$
RewriteRule ^/?$ "http\:\/\/www\.mydomain\.com\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^mydomain\.info$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.info$
RewriteRule ^/?$ "http\:\/\/www\.mydomain\.com\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^mydomain\.mobi$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.mobi$
RewriteRule ^/?$ "http\:\/\/www\.mydomain\.com\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^mydomain\.net$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.net$
RewriteRule ^/?$ "http\:\/\/www\.mydomain\.com\/" [R=301,L]
<Files 403.shtml>
order allow,deny
allow from all
</Files>
Litespeed config is default as of now. Running PHP 5.4, vBulletin 4.2 and MySQL 5.5
 

NiteWave

Administrator
#2
litespeed web admin's Actions -> Real-Time Stats is a good place to watch the performance.

install php opcache will drop the server load and make page faster if not yet.

is it a apache virtual host(load from httpd.conf) or lsws native virtual host ?
 
#3
litespeed web admin's Actions -> Real-Time Stats is a good place to watch the performance.

install php opcache will drop the server load and make page faster if not yet.

is it a apache virtual host(load from httpd.conf) or lsws native virtual host ?
I'm running cPanel box which by default uses Apache, so the virtual host is in httpd.conf.

What should I be looking for in the real time stats? I'm looking at it now but not sure what to look for to determine an changes needed.

I want vbulletin to run at lightning speed like before, but the probably is once I removed those lines from the htaccess I mentioned in my OP, it's not fast again.

I don't see any module option for opcache in WHM > Easy Apache.
 

NiteWave

Administrator
#4
you can post a screenshot of Real-Time Stats during the busiest time, to see if anything interesting can be found.

usually WHM/cPanel is used for shared hosting, can manage hundreds or thousands of different user accounts. so for security reason, run php in suEXEC mode:
lsws web admin -> Server -> General -> PHP suEXEC: Yes

if only 1 user account on the server, you can set "PHP suEXEC: No". this will improve the performance, you can try and compare.

there should be XCache option in WHM -> Easy Apache. xcache is one of opcode cache implementations.
 
#5
Thanks. I just compiled with xcache. Any specific xcache config I should use with litespeed?

Does litespeed *automatically* Build Matching LSPHP after I run easy apache? I don't see anything happening as far as that goes right now.
 

NiteWave

Administrator
#6
no special setting for litespeed or lsphp, check if it works by check the phpinfo page.

there is a option for "Build Matching LSPHP": WHM litespeed plugin -> "Enable EasyApache Integration"
if it's not enabled, need manually click "Build Matching LSPHP"
 
Top