vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Board Optimization - [DBTech] vB Optimise 2.0.1 (Lite) (https://vborg.vbsupport.ru/showthread.php?t=237325)

DragonByte Tech 06-18-2010 11:25 AM

Quote:

Originally Posted by Super Jinni (Post 2055334)
I'm using Ubuntu 10.04 LTS.
I'm also using the 3.8's mod.
When I was searching about my issue I got to this thread and found the same issue was already reported. So I thought I'd post it here.

I also thought this issue is related to XCache only, but now it's exist with APC.

=) It's not an "issue" as such.

This portion of the mod simply reports whether or not your caching is working correctly - it does not attempt to modify or change anything. This message appearing means there is an issue with your caching - not the mod.

I'm sure Deceptor will try to give you some advice on how to fix your caching when he has a moment =)

Iain

EDIT: Looks like he ninja'd me and beat me to it ^.^

Super Jinni 06-18-2010 11:56 AM

Quote:

Originally Posted by Deceptor (Post 2055379)
Super Jinni - Best alternative to XCache in my mind is Memcache. In regards to your issue it may be a CGI/FastCGI issue, do you know if you're using DSO or SuPHP for the handler? Typically cPanel let's you choose when building apache/php from within WHM.

Memcache would resolve the issues because it's different from your typical opcode cachers, it runs as a dedicated service :)

I don't have cPanel/WHM. I'm in unmanaged VPS hosting, so I don't know whether I'm suing DSO or SuPHP or neither.

What do you think it's the best, Switching to mod_php then use XCache? Or stick with FastCGI and use Memcached?

I read somewhere there are not many advantages using FastCGI over mod_php. And some prefer to use mod_php. That makes me think of switching to mod_php.

Thanks :)


Quote:

Originally Posted by DragonByte Tech (Post 2055381)
=) It's not an "issue" as such.

This portion of the mod simply reports whether or not your caching is working correctly - it does not attempt to modify or change anything. This message appearing means there is an issue with your caching - not the mod.

I'm sure Deceptor will try to give you some advice on how to fix your caching when he has a moment =)

Iain

He already did :D
Quote:

EDIT: Looks like he ninja'd me and beat me to it ^.^
^.^

Super Jinni 06-18-2010 02:16 PM

OK, I got XCache to work after switching to mod_php. It turned out that it was CGI/FastCGI issue.
I just hope it was right choice to ditch FastCGI.

Thanks Deceptor :)

ndL 06-18-2010 07:13 PM

after 2hours of reading manuals, without any knowledge of linux - i finally made it!

thanks.

Deceptor 06-18-2010 07:39 PM

Glad you got it working, I'm not sure what the advantages are to mod_php or FastCGI myself but it was obviously the issue :)

ndL 06-18-2010 07:50 PM

was a pain in the ass to correctly install memcache on my centos 5.4

if i had already known what to do, it would have taken about 5mins.

http://www.vbulletin.com/forum/showt...servers./page3

this should be the main article to read who cant imagine how to begin. but i must say that you should get newest memcache version, the one above is quite old

Deceptor 06-18-2010 07:59 PM

Yeah Memcached is the hardest to install of them all really, but worth it in my opinion :)

Fungsten 06-19-2010 06:48 PM

When trying to run the System Test an error message comes back saying "vB Optimise is currently offline. Please enable and configure vB Optimise to run a system test."

However the system is online. TIA.

VB 4.0.4

rajubd 06-19-2010 08:18 PM

Quote:

Originally Posted by Super Jinni (Post 2055450)
OK, I got XCache to work after switching to mod_php. It turned out that it was CGI/FastCGI issue.
I just hope it was right choice to ditch FastCGI.

Thanks Deceptor :)

brilliant work brother my problem also solved
thanks a lot again...

Deceptor 06-20-2010 12:04 PM

Quote:

Originally Posted by Fungsten (Post 2055983)
When trying to run the System Test an error message comes back saying "vB Optimise is currently offline. Please enable and configure vB Optimise to run a system test."

However the system is online. TIA.

VB 4.0.4

Make sure you have selected a cache system too, if it's set to None then there is nothing to test :)

Fungsten 06-20-2010 05:03 PM

Quote:

Originally Posted by Deceptor (Post 2056317)
Make sure you have selected a cache system too, if it's set to None then there is nothing to test :)

How can I find out which cache system I have? Where would I select that?

On Edit:

I see it!

Deceptor 06-21-2010 12:00 PM

Quote:

Originally Posted by Fungsten (Post 2056509)
How can I find out which cache system I have? Where would I select that?

On Edit:

I see it!

:)

Just incase anyone else is unclear, it's within Main Settings under the vB Optimise menu (within the ACP).

TeknoSounds 06-22-2010 10:52 PM

Had a duh moment the other day, I realized after I had installed everything a month ago or so ago and had been using this mod; that there were configs within vbulletin's config file that set to use xcache (or other opcode cacher) in there as well.

Deceptor 06-23-2010 11:58 AM

Yeah you can set vB to use similar systems too which I recommend you'd do, it'll cache the datastore which reduces a global query in most places :)

rajubd 06-23-2010 03:28 PM

Vb optimize work with fastcgi + eacelarator?
Because dso creating upload problem in my site. So i have to move back fastcgi. If eacelarator work i will remove xcache.

Super Jinni 06-24-2010 01:12 PM

Hi Deceptor,

I got some questions in mind:
  • - Does XCache has its own folder to store data which is totally separated from vBulletin datastore folder? As I see, your mode works with XCache whether I enabled the datastore in the includes/config.php file or not, which is not the case with Memcached as it requires enabling the datastore in config.php file, so I thought it might has nothing to do with vBulletin datastore or the config.php file?

  • - If XCache has its own folder for sorting cached data, is it OK to configure the datastore cache to use Memcahched whild your mode works with XCache? in theory, if XCache use a different folder to store cached data other than vBulleitn datasotre which is required by Memcached, and as XCache and Memcached do a quite different jobs, then performance will be much better when using both in the same time, XCache with your mode, and Memcached with vBulletin datastore, am I correct?

    Or

  • - It is a bad idea using both, and there will be some conflicts when using both XCache and Memcached as mentioned above?

  • - If XCache has its own folder for cached data, then what happens if enabled datastore in the config.php file to use XCache? Will XCache stop caching to its own folder and only caches to the datastore folder? or it will cache to both folders?

  • - How to find where XCache store data in? and how can I change it if I want to? I tried to figure that out but couldn't.

Regards :)

Deceptor 06-24-2010 02:03 PM

@rajubd - You'd have to test, I'm not 100% sure. If it doesn't, I'd recommend using Memcache personally over APC.

@Super Jinni
1. XCache stores data in ram, not in the file system. We don't require any connection settings to XCache so it doesn't have to be filled in the config.php - however Memcached requires IP/port settings, plus you can have multiple memcached servers so we require you fill those settings within config.php for vBO to fetch and use them for connection. In either case, the datastore is not linked to vBO in anyway, vbulletin has a folder for its datastore but that is only used if you set the datastore to use file cache within config.php

2. You can use 2 systems if you want, though I'd recommend using the same so runtime doesn't require the use of using 2 extensions for cache - just the 1.

3. No conflicts using both, just might use a little extra runtime memory/processing

4. As said XCache stores data in ram

5. Only way you can change data stored in xcache is through their API functions like xcache_get() and xcache_set().

Let me know if you have any further questions :)

Super Jinni 06-24-2010 03:50 PM

Thanks Deceptor for your helpful answers.
The reason to use Memcached with XCache is that I've set Nginx in front of Apache for static files, and read somewhere that it's good to set Memached behind Nginx so Nginx will check Memcashed for request firs, if not found there then it will pass the request to Apache. So I set Memcashed behind Nginx, but I couldn't make it to store data, so I thought I'd use vBulletin datastore, and it seems that works so Memcashed now is cashing data while Nginx is pulling data from Memcashed if they are existed.

I'm not sure if what I'm doing the currect thing (Nginx (as font-end for static contents) + Memcashed (to cache for Nginx) + Apache (as back-end to deal with PHP) + PHP (mod_php) + XCache (with your vBO))

I'm worried about performance and server usage, so if you have any suggestions or ideas regarding what I use and how I use it, please let me know.

Thanks :)

Deceptor 06-25-2010 12:44 AM

Well personally If I had nginx running I'd drop apache altogether, nginx itself can work with php in FastCGI and works a lot faster than apache due to its event/async driven codebase.

Depends what apache modules you need really, but the most common things done in apache can be done with nginx - I'd do a little research on it and see what you can find :)

Super Jinni 06-25-2010 02:44 AM

Yeah, I thought about getting rid of Apache but I use mod_rewrite quite a lot, and I still couldn't figure out how to do the rewriting in Nginx. That's what holding me off.

I also did some researches about Nginx, Apache and PHP and found that Apache is faster than Nginx when it comes to PHP, but Nginx is light and a lot faster when it comes to static contents, so I thought why not to take advantages of both's strength.

But I do still need to do a LOT of homework to get the best results.

Thanks again, mate :)

Deceptor 06-25-2010 02:48 AM

No problem :) Good luck with your optimisations!

Xencored 07-03-2010 03:24 AM

Running Test: Store Cache
Your Opcache Operator extension is functioning, however it is unable to store data. Please check your extension configuration.
Running Test: Fetch Cache
Your Opcache Operator extension is functioning, however it is unable to store data. Please check your extension configuration.

Whats this mean mate :/ i get this with memcache

mahz 07-03-2010 07:21 PM

To those receiveing the Opcache Operator error with xCache:

Quote:

Your Opcache Operator extension is functioning, however it is unable to store data. Please check your extension configuration.
This might happen if you are using SuPHP as your PHP handler instead of DSO (mod_php) or FastCGI.

If you don't know what your PHP handler is but you have ssh access, you can run this command if you have cPanel (or just ask your host):

Code:

/usr/local/cpanel/bin/rebuild_phpconf --current
And this will be the output (if you're SuPHP is your handler):

Code:

Available handlers: suphp dso cgi none
DEFAULT PHP: 5
PHP4 SAPI: suphp (or cgi)
PHP5 SAPI: suphp
SUEXEC: enabled

If DSO is your PHP handler, you'll see something like:

Code:

Available handlers: suphp dso cgi none
DEFAULT PHP: 5
PHP4 SAPI: cgi
PHP5 SAPI: dso
SUEXEC: enabled

Why does SuPHP produce this error?

PHP optcode caching doesn't work 100% with SuPHP because SuPHP doesn't use a shared user when processing PHP files.

I'd definitely talk to your webhost before making any changes or get an individual opinion on your particular configuration. FastCGI on the limited resources (like limited cloud hosting) many forum owners are hosted on will usually outperform even DSO with an accelerator.

Xencored 07-03-2010 08:13 PM

Quote:

Originally Posted by mahz (Post 2063976)
Code:

/usr/local/cpanel/bin/rebuild_phpconf --current

cpanel mate
not everyone uses that :D

but thanks for the info ill check it out
as for asking to the host thats no good to me my server comes unmanaged and raw

Xencored 07-04-2010 02:30 PM

Deceptor Helped me fix my problems top mod top guy and top support <3

Thanks muchyyy mate :3

Deceptor 07-04-2010 02:40 PM

Animemike was missing the libevent 1.4 library for Memcached, I helped him reinstall it and initialise the memcached instance - everythings working good now :)

mahz 07-04-2010 08:51 PM

Quote:

Originally Posted by Animemike (Post 2064013)
cpanel mate
not everyone uses that :D

but thanks for the info ill check it out
as for asking to the host thats no good to me my server comes unmanaged and raw

Yeah, there are other commands to check your PHP handler like speccing the php.ini, but I'm unfamiliar with them.

My post is mainly aimed at anybody frustrated with Xcache in particular, as it will cache but it wont allow cache fetching. They'd be looking for a long time if they weren't aware of suPHP's lack of optcode support. :)

Hornstar 07-08-2010 04:59 AM

Quote:

Originally Posted by mahz (Post 2064516)
Yeah, there are other commands to check your PHP handler like speccing the php.ini, but I'm unfamiliar with them.

My post is mainly aimed at anybody frustrated with Xcache in particular, as it will cache but it wont allow cache fetching. They'd be looking for a long time if they weren't aware of suPHP's lack of optcode support. :)

I am also getting the errors. This is what I get:
Code:

Available handlers: dso cgi none
DEFAULT PHP: 5
PHP4 SAPI: none
PHP5 SAPI: none
SUEXEC: enabled

Can you guys see anything wrong here? and if so what do you guys recommend?



Edit never mind. Deceptor helped me get memcached installed. He is a great guy!

MikeWarner 07-08-2010 04:51 PM

Since installing this, I'm asked to give my xcache login details when editing a users usergroup. How can I stop this from happening?

Deceptor 07-09-2010 12:44 PM

MikeWarner - You either need to disable XCache authentification in php.ini, or enable XCache Authentification within the vB Optimise options and edit /vboptimise/config.php and enter your XCache username/password (in plain text) so vBO can automatically log in for you.

monstermunch 07-21-2010 03:26 PM

does this work ok with 4.05?

Deceptor 07-25-2010 06:54 AM

Yes this works on 4.0.5 :)

StonePilot 07-27-2010 09:31 PM

WOW! Night-and-Day difference. Installed on www.GMTruckClub.com with 4.0.5 and it appears to have helped me to cut load-time in half. :-) I may stick with VB4 after all now.

Good work, I'll take a look at the pro version.

Deceptor 07-28-2010 01:52 AM

Glad it's made a difference :)

StonePilot 07-28-2010 12:40 PM

-->> FIVE STARS <<-- by the way. Will buy two pro versions later today.

GONUMBER6 07-28-2010 02:05 PM

DB Tech, yet another wonderful mod from you guys! Tagged for install!

Deceptor 07-29-2010 02:37 AM

:) Enjoy you two

GONUMBER6 07-29-2010 01:35 PM

That was a nice easy install, no problems here.

How can I tell how many queries are being saved? Where can I view this information? Thx :)

Deceptor 07-29-2010 03:32 PM

I'm afraid that information isn't logged in the Lite version gonumber6.

apokphp 08-01-2010 05:21 AM

I'm on a shared server. I don't have any of the extensions installed. I chose the filecache.

Made the changes it suggested...not sure if it is any faster though.

Install went well.


All times are GMT. The time now is 10:21 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01777 seconds
  • Memory Usage 1,837KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete