Recent Topics

1 Dec 21, 2009 16:52    

My b2evolution Version: 3.3.2

Ok so I'm doing some research and trying to find out if I can use nginx to run my webserver instead of apache, because I'm getting a lot of traffic/and apache is a memory hog. The alternative, Lighttpd isn't a memory hog but a memory leak prone server, and it also needs a lot to function with b2evo. I was wondering if anyone here is running nginx as a webserver.

1) any comments, praises etc?
2) what does your rewrite look like?
3) how much third party, or "special" configuration needed to make b2evo work?

Any help would be greatly appreciated. Also I'm sure someone in Russian B2 must be running it!

2 Dec 22, 2009 08:36

Never tried nginx, however I didn't know there were issues with lighttpd. Any handy pointers on that?

3 Dec 23, 2009 01:12

the problem is that you have to have lighttpd compiled with LUA support. Not availiable in the repos at the moment. See documentaion here: http://manual.b2evolution.net/Appearance_of_my_permalinks#lighttpd_webserver

then you have do all the script nonesense. But what isn't told is that you have to install so many things to get to compile Lighttpd with the LUA support.

Such as the most up to day pcre lib, the zlib, and thing here and there that I don't remember. I gave up after three hours of this. The memory leak might have been fixed, I don't know yet. However I have 8 gigs or memory and it somehow leaked nearly 4 gigs of it somewhere in it's worker processes but it's not showing there are any processes currently running nor using the memory. It's in essence hogging the memory and not sending it back to the processor to let the processor know that it's done with it. I don't know how to explain it, I just realized that I might as well be running apache if it's gonna hog memory and I'll have to restart the server.

5 Dec 24, 2009 05:54

thanks sam2kb but i don't see too much info for b2evo. I'll keep trying and when I do I'll try to post something about it. I'm determined to make this work

7 Dec 24, 2009 18:39

it does have a rewrite engine but the problems I'm having now seem to have more to do with the php socket sadly. here is the debug info:

Warning: require_once(/home/vhosts/light.mheadley.com/htdocs/inc/files/model/_resourcebundles.class.php) [function.require-once]: failed to open stream: No such file or directory in /home/vhosts/light.domain1.com/htdocs/inc/_core/_class5.funcs.php on line 57

Fatal error: require_once() [function.require]: Failed opening required '/home/vhosts/light.dmain1.com/htdocs/inc/files/model/_resourcebundles.class.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/vhosts/light.domain1.com/htdocs/inc/_core/_class5.funcs.php on line 57

8 Dec 24, 2009 19:08

This sounds like some files are missing.

9 Dec 24, 2009 20:41

missing from the server config? or from the b2 system?

10 Dec 24, 2009 20:50

Failed opening required '/home/vhosts/light.dmain1.com/htdocs/inc/files/model/_resourcebundles.class.php'

Are you sure this file actually exists?

11 Dec 24, 2009 21:18

it doesn't actually exist at all. The B3 3.x installation requires on some php functions that are version php 5.2.5 and above. They need to make note of this in the files. This file is called from who knows where! Still trying to figure it out, I might just end of porting back all my posts to 2.4.7. Testing it out now, will see wat's going on later. It wasn't Nginz by the way, it was spawn-fcgi that got the proxy pass and dropped it because of an internal error when it couldn't access all native functions.

13 Dec 25, 2009 01:34

I started off in the beta, then upgraded to stable and didn't do the last update.

I think I might try whissip next, see if it really does work faster!

well I'm running php 5.1.6 and seeing this error. there IS a new function and method for including the php files needed by the core because I'm running version 2.4.2 right now (old installation) with no problems at all, even the rewirte engine is working perfectly for the pretty permalinks. However the 3.x is giving me an error. It would be nice if the developer could tell me what changed and how I could change it back.

It is also very weird that it's asking for a file that does not exist. Don't think it's a bug because apache+mod_fcgid handles it perfectly but lighttpd+spawn-fcgi and nginx+spawn-fcgi get this error. i wonder if there is a problem with the memory handling and that's whats hanging the program. It could be a bottleneck and memory isn't allocated so it doesn't build the entire script and the includes are just one jump short.

Does anyone know what happened in this file from 2.4.2 -> 3.3: what's the change and how can I change it back? I would like to be able to use 3.3 on my server

/inc/_core/_class5.funcs.php

Because it seems the method you guys are employing to call the different classes and load the files aren't coming together when using spawn-fcgi and the 3.3

If anyone is using 3.3 and has lighttpd/nginx please let me know how you did it!

15 Dec 25, 2009 02:01

update:

I installed the new version 3.3.3 successfully. Maybe I forgot a file before. no errors so I guess there might be a problem only if you ran the beta version and did upgrades like that. I really think I became an old man and forgot a few files so it didn't work. Thanks for being a springboard but I got it all. I will write the rewrite rule for nginx in the next few hours or after the holiday so that others can use it. Who do I talk to about putting it in the manual?

16 Dec 25, 2009 02:08

Cool :)

I will write the rewrite rule for nginx in the next few hours or after the holiday so that others can use it. Who do I talk to about putting it in the manual?

Just create an account and put your nginx manual somewhere in Install/Upgrade section http://manual.b2evolution.net/Install_Upgrade

17 Dec 26, 2009 11:48

To this day, b2evo never ever tried to include a file named _resourcebundles.class.php

What you are running is *not* a clean b2evo install.

18 Dec 28, 2009 04:05

yes, I figured i must have been running whissip or something of the sort. Still don't know what the problem was, did discover that whissip is a little faster however in the initial loading, might want to ask how that's done.

19 Jul 21, 2010 00:46

yes, _resourcebundles.class.php is from whissip (but should exist then, of course) - maybe some php opcode cache messed up?

anyway, I am running nginx myself, works fine. There are others, too.

this is my config basically (I am using php5-fpm from dotdeb.org):


server {
        listen   80 default;
        server_name  .example.com;

        access_log  /var/log/nginx/access.log;

        set_real_ip_from 10.122.1.80;

        set $my_https "off";
        if ($http_x_forwarded_proto = "https") {
                set $my_https "on";
        }

        location /install { return 403; }
        location / {
                root   /var/www/web;
                index  index.php index.html index.htm;
                try_files $uri $uri/ $uri/index.php @php;
        }
        location ~ ^(.+\.php)(.*)$ {
                root   /var/www/web;
                fastcgi_pass   127.0.0.1:9000;
                include fastcgi_params;
                fastcgi_param  HTTPS    $my_https;
        }
        location @php {
                root   /var/www/web;
                fastcgi_pass   127.0.0.1:9000;
                include fastcgi_params;
                fastcgi_param  SCRIPT_FILENAME  $document_root/index.php;
        }
}


Form is loading...