PHP demo setup

312 views
Skip to first unread message

deniro

unread,
Dec 13, 2010, 1:14:54 AM12/13/10
to BigBlueButton-Setup
Hi,
Instead of using jsp demos (demo1.jsp etc..) in the directory
/var/lib/tomcat6/webapps/bigbluebutton/demo/demo1.jsp
I download and try to use PHP demos (demo1.php etc..) from github.

1--
/var/www/bigbluebutton-default/index.html points to /bigbluebutton/
demo/demo1.jsp
Looks like root directory for this is "/var/lib/tomcat6/webapps"
So, where is this root directory defined? any config files?
How does index.html line /bigbluebutton/demo/demo1.jsp
know where(which directory) to look for this file?

2--
If I use PHP demos, where do I put them(under which directory)?
I put demo1.php in same location as demo1.jsp and changed index.html
accordingly
but, it doesn't read demo1.php as it reads demo1.jsp

3--
what about php.ini file?
where to get it? where to put it? and how do I use it to for PHP
demos.

I kindly request more info regarding how to set up for PHP demo use
like demo1.php.

Thx
deniro--


Fred Dixon

unread,
Dec 13, 2010, 11:53:13 AM12/13/10
to bigbluebu...@googlegroups.com
Hi Deniro,

The default installation of BigBlueButton (installed from packages or
VM) doesn't provide PHP. Most people setup PHP with apache, but
BigBlueButton uses nginx on port 80.

We recommend you setup PHP on another server and use your
BigBlueButton server as a stand-alone server (i.e. not run anything
else on the BigBlueButton server). This makes it easy to upgrade
BigBlueButton (or even swap out a new server) without affecting your
PHP code.

Regards,... Fred

> --
> You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
> To post to this group, send email to bigbluebu...@googlegroups.com.
> To unsubscribe from this group, send email to bigbluebutton-s...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/bigbluebutton-setup?hl=en.
>
>

deniro

unread,
Dec 13, 2010, 7:55:31 PM12/13/10
to BigBlueButton-Setup
Fred,
Thanks for pointing that. My bad, I totally couldn't think of
bigbluebutton not coming with php and I need to install php.
I was trying to get demo1.php running instead of demo1.jsp.

I think I should be able to install and use php with nginx on same
bigbluebutton server.
nginx is a webserver as apache.. so, this should be quiete possible.
Are there reasons not to use nginx+php setup for bigbluebutton?
or is it not recommended? and if yes why?

don't wanna put a seperate apache+php installation out there, though
wanna use php code.

if I wanna use nginx+php, are there any points that I should be aware
of from the bigbluebutton perspective?
Are there any documentation about setting up for and running php
demos?

Thx again
deniro--
> > For more options, visit this group athttp://groups.google.com/group/bigbluebutton-setup?hl=en.- Hide quoted text -
>
> - Show quoted text -

Fred Dixon

unread,
Dec 13, 2010, 9:36:16 PM12/13/10
to bigbluebu...@googlegroups.com
Hi deniro

> Are there reasons not to use nginx+php setup for bigbluebutton?

Up to this point, we didn't need to have PHP installed by
BigBlueButton, so we didn't make it a dependency.


> if I wanna use nginx+php, are there any points that I should be aware
> of from the bigbluebutton perspective?

It should work fine. There are some good tutorials on the web for
installing PHP with nginx; it's not something we have documented at
our Google Code site.

Regards,... Fred

Le Nguyen Dang Tuyen

unread,
Dec 14, 2010, 4:04:41 AM12/14/10
to bigbluebu...@googlegroups.com
Hi everybody,
there are 15 point for video conference.
Is the Bigbluebutton good for this ?


Seun Ojedeji

unread,
Dec 14, 2010, 4:30:27 AM12/14/10
to bigbluebu...@googlegroups.com
Hello Dang,
If by 15 point you mean 15 participant then i will say BBB should run that.... though it all depends on your available resource. I have successfully ran 10user with cam and voice on my 2gb ram and 2.4ghz core duo and abundant bandwidth (its run on my LAN). So hope this could help you scale up for yours.

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To post to this group, send email to bigbluebu...@googlegroups.com.
To unsubscribe from this group, send email to bigbluebutton-s...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bigbluebutton-setup?hl=en.



--
------------------------------------------------------------------------
Seun Ojedeji,
System Analyst/Network Administrator
University of Nigeria, Nsukka
web:      http://www.unn.edu.ng
Mobile: +2348035233535
Skype:  seun.ojedeji

Andreas

unread,
Dec 14, 2010, 4:40:23 AM12/14/10
to bigbluebu...@googlegroups.com
Just have a look to the wiki. Somewhere around there isa calculation of the required resources. The most important resources are the bandwidth of the connection and the memory. I run 10 users without problems with a 10 MBit downstream and 100 MBit upstream internet line .... all voice, some webcam. I run a dual Xeon 3,06 GHz with 6 GB memory. But it should work also with smaller computers.
 
Andreas
 


Von: bigbluebu...@googlegroups.com [mailto:bigbluebu...@googlegroups.com] Im Auftrag von Seun Ojedeji
Gesendet: Dienstag, 14. Dezember 2010 10:30
An: bigbluebu...@googlegroups.com
Betreff: Re: [bigbluebutton-setup] PHP demo setup

Cameron Banta

unread,
Dec 14, 2010, 11:15:16 AM12/14/10
to bigbluebu...@googlegroups.com
Hi deniro,

On 12/13/2010 06:55 PM, deniro wrote:
> Fred,
> Thanks for pointing that. My bad, I totally couldn't think of
> bigbluebutton not coming with php and I need to install php.
> I was trying to get demo1.php running instead of demo1.jsp.
>
> I think I should be able to install and use php with nginx on same
> bigbluebutton server.
> nginx is a webserver as apache.. so, this should be quiete possible.
> Are there reasons not to use nginx+php setup for bigbluebutton?
> or is it not recommended? and if yes why?
>
> don't wanna put a seperate apache+php installation out there, though
> wanna use php code.
>
> if I wanna use nginx+php, are there any points that I should be aware
> of from the bigbluebutton perspective?
> Are there any documentation about setting up for and running php
> demos?
>

I would recommend php-fpm, but there are other choices. Something like
this should get you started in the right direction:
http://www.howtoforge.com/installing-nginx-with-php-5.3-and-php-fpm-on-ubuntu-lucid-lynx-10.04-without-compiling-anything

You'll probably have to merge the nginx config in the example with the
bbb nginx config - trying to make sure they both work in the end.

-Cameron

deniro

unread,
Dec 15, 2010, 1:03:52 AM12/15/10
to BigBlueButton-Setup
Hi Cameron
Thanks for the info
The purpose is to set up good PHP5+nginx environment to handle BBB
with php code.

Do you think installing only "php5-fpm" package is enough?
I think more php5 packages needs to be installed.
How about installing below packages as well?
php5-cli
php5-common
php5-mysql
php5-suhosin --security/hardening
php5-gd --graphics
may be some other php5 packages?

after some googling, I see multiple php packages for nginx.
So, I installed several php5 packages including php5-fpm but I am not
exactly sure what is the right php5 package combination with nginx.

Pls let me know what you think.
Thx
deniro--


On Dec 14, 11:15 am, Cameron Banta <cba...@genericconf.com> wrote:
>   Hi deniro,
>
> On 12/13/2010 06:55 PM, deniro wrote:
>
>
>
>
>
> > Fred,
> > Thanks for pointing that. My bad, I totally couldn't think of
> > bigbluebutton not coming with php and I need to install php.
> > I was trying to get demo1.php running instead of demo1.jsp.
>
> > I think I should be able to install and use php with nginx on same
> > bigbluebutton server.
> > nginx is a webserver as apache.. so, this should be quiete possible.
> > Are there reasons not to use nginx+php setup for bigbluebutton?
> > or is it not recommended? and if yes why?
>
> > don't wanna put a seperate apache+php installation out there, though
> > wanna use php code.
>
> > if I wanna use nginx+php, are there any points that I should be aware
> > of from the bigbluebutton perspective?
> > Are there any documentation about setting up for and running php
> > demos?
>
> I would recommend php-fpm, but there are other choices. Something like
> this should get you started in the right direction:http://www.howtoforge.com/installing-nginx-with-php-5.3-and-php-fpm-o...
> >>> For more options, visit this group athttp://groups.google.com/group/bigbluebutton-setup?hl=en.-Hide quoted text -
> >> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -- Hide quoted text -

Cameron Banta

unread,
Dec 15, 2010, 11:43:40 AM12/15/10
to bigbluebu...@googlegroups.com
Hi deniro,

The link I sent you earlier tells you everything you need to get it
working. The package php5-fpm is all you need. All the other packages
available are optional and you don't need to install them unless you're
going to be writing some code that specifically requires them. php
actually comes with quite a bit of functionality built-in.

-Cameron

deniro

unread,
Dec 18, 2010, 10:32:04 PM12/18/10
to BigBlueButton-Setup
Hi Cameron
Thanks for the guidence.
I am able to run php code (demo1.php)
I changed nginx.conf, updated with php5-fpm entries

Now the problem is this;
I am able to run demo1.php from the right location, no problem.
I can print username and action passed to $_REQUEST as a test.
(like username "user1" action "create")
But, when I click "join" to join a meeting
I get to a blank page and the link appears as "http://www.XXX.com/
client/BigBlueButton.html"
so, it is reading "/client/BigBlueButton.html"

Why am I getting a blank page? what else needs to be changed or looked
at?
any change necessary in BigBlueButton.html(don't think so)?
is it the demo1.php code that is unable to create/join meeting?

Pls let me know what needs to be checked to get php code running to
create/join meetings.
Thanks
deniro--
> >>>>> For more options, visit this group athttp://groups.google.com/group/bigbluebutton-setup?hl=en.-Hidequoted text -

Cameron Banta

unread,
Dec 18, 2010, 11:56:56 PM12/18/10
to bigbluebu...@googlegroups.com
On 12/18/2010 09:32 PM, deniro wrote:
> Hi Cameron
> Thanks for the guidence.
> I am able to run php code (demo1.php)
> I changed nginx.conf, updated with php5-fpm entries
>
> Now the problem is this;
> I am able to run demo1.php from the right location, no problem.
> I can print username and action passed to $_REQUEST as a test.
> (like username "user1" action "create")
> But, when I click "join" to join a meeting
> I get to a blank page and the link appears as "http://www.XXX.com/
> client/BigBlueButton.html"
> so, it is reading "/client/BigBlueButton.html"
>
> Why am I getting a blank page? what else needs to be changed or looked
> at?
> any change necessary in BigBlueButton.html(don't think so)?
> is it the demo1.php code that is unable to create/join meeting?
>
> Pls let me know what needs to be checked to get php code running to
> create/join meetings.
> Thanks
> deniro--
>

Sounds like maybe one of your changes to nginx config may have stopped
it from working. You need to leave everything in that file intact.
You're just added one block of code to that file.

This post might help you a little:
http://cbanta.wordpress.com/2010/12/18/enable-php-on-bigbluebutton/

-Cameron

deniro

unread,
Dec 19, 2010, 12:50:23 AM12/19/10
to BigBlueButton-Setup
It runs php, no problem, but it is unable to bring up bigbluebutton
screen, i.e, flash.
I think it is proxy between nginx and tomcat6
I still couldn't find it but I strongly believe it is in nginx.conf
for the php block.
> >>>>>>> For more options, visit this group athttp://groups.google.com/group/bigbluebutton-setup?hl=en.-Hidequotedtext -

deniro

unread,
Dec 19, 2010, 12:58:04 PM12/19/10
to BigBlueButton-Setup
Cameron
It is working now.
minor change though;
instead of fastcgi_pass unix:/var/run/php5-fpm.socket;
it was fastcgi_pass unix:/var/run/php5-fpm.sock;
for me.
Thanks many for the help and guidence.
deniro--

Scott

unread,
Jan 19, 2011, 7:22:22 PM1/19/11
to bigbluebu...@googlegroups.com
Deniro -

I'm currently trying to install php with the bigblue package install, and running into some quirks myself...maybe you can point me in the right direction?

http://www.howtoforge.com/installing-nginx-with-php-5.3-and-php-fpm-on-ubuntu-lucid-lynx-10.04-without-compiling-anything

Following the above directions, I get an error regarding this line -
fastcgi_split_path_info ^(.+\.php)(.*)$;

What did you have to change to get this working correctly? I'd like to have php installed with nginx, instead of
of being on a stand alone server (as I'm much more familiar with php vs java)

deniro

unread,
Jan 19, 2011, 8:24:14 PM1/19/11
to BigBlueButton-Setup
Scott
Follow the instructions here
http://cbanta.wordpress.com/2010/12/18/enable-php-on-bigbluebutton/

deniro--


On Jan 19, 7:22 pm, Scott <swoo...@baker.edu> wrote:
> Deniro -
>
> I'm currently trying to install php with the bigblue package install, and
> running into some quirks myself...maybe you can point me in the right
> direction?
>
> http://www.howtoforge.com/installing-nginx-with-php-5.3-and-php-fpm-o...

Scott

unread,
Jan 19, 2011, 9:50:47 PM1/19/11
to bigbluebu...@googlegroups.com
Thanks for the reply - however, still a  no go. I've followed these instructions to a T a couple times now, and nginx always errors out on restart....currently getting -
"unknown 'fastcgi_script' variable
configuration file /etc/nginx/nginx.conf test failed


This is what I added to nginx.conf (at the bottom, per instructions)
location ~ .php$ {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass   unix:/var/run/php5-fpm.socket;
fastcgi_param SCRIPT_FILENAME /var/www/bigbluebutton-default$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
fastcgi_index index.php;
  }

deniro

unread,
Jan 19, 2011, 10:23:07 PM1/19/11
to BigBlueButton-Setup
to me it sound like you are using
'fastcgi_script' in some files which doesnt exist
can you check if you are using this "'fastcgi_script' in any(php5,
fpm, nginx) config files?

you may try this
find /etc -type f |xargs -i grep fastcgi_script {}

if it shows up somewhere that means you are using this parameter.
if that is the case, look in which file it is.

deniro--

Scott

unread,
Jan 19, 2011, 10:41:23 PM1/19/11
to bigbluebu...@googlegroups.com
Ok - I had to comment out something in nginx/sites-enabled/default that was referring to fastcgi....
fixed that, nginx restarts ok now.
php5-fpm restarts fine.

But, I must still be doing something wrong, as I only get the php code displaying in the browser, still not executing the script. This has been quite the headache, I must admit. Prob something changed when I tried an alternative installation - any ideas to look at now? if nginx and php5 restart with no issues, what else could be causing this issue? Thanks again for the help - I've made more progress tonight than the last week combined.

deniro

unread,
Jan 19, 2011, 10:46:42 PM1/19/11
to BigBlueButton-Setup
have you tried adding index.php in your /etc/nginx/sites-available/
bigbluebutton

# BigBlueButton landing page.
location / {
root /var/www/bigbluebutton-default;
index index.php index.html index.htm;

deniro--

HostBBB.com

unread,
Jan 20, 2011, 7:11:10 AM1/20/11
to BigBlueButton-Setup
From a production standpoint... the control logic of the application
should be a seperate server then BBB... If you need to restart
services in BBB, or even reboot the server your customer facing site
goes down, also this gives you the ability to scale since your
front end can switch and access larger, or multiple BBB instances as
demand increases, my control panel actually launches a BBB server on
demand only when a meeting is needed. Also getting BBB apt-get
updates as the software improves is easily and does not mess with
control logic.

I use a t1-micro Ec2 instance with a lamp server.. Has all the PHP
libraries, can add moodle,joomla,wordpress stacks and when reserved
costs about $8 a month to operate 24/7 yourself. These can front your
BBB servers and provide all the logic you need. If you need more
horsepower get upgrade to a standard, or hi-cpu when needed.

This way you can use PHP to control BBB

I personally would not mess with control logic on a BBB server. You
will spend hours maintaining as BBB evolves.

If you need help getting a control instance going. contact me off
list and i can help you DIY or provide one for you pre configured.

Fred and the developers have done a great job packaging BBB, and
keeping all the logic out of the bbb instance. Spending hours to get
it back in will be futile.

regards,
Stephen
hostbbb.com
> > for the help - I've made more progress tonight than the last week combined.- Hide quoted text -
Reply all
Reply to author
Forward
0 new messages