Labs/Joey/ServerSetup: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
WORKING ON THIS NOW. ;-)
This page is the How To on setting up a Joey Server
This page is the How To on setting up a Joey Server


So, basically, you need to setup linux apache mysql and php (hmm.... LAMP, right.)  From a basic linux setup, you will need:


ImageMagick
up2date install ImageMagick
apr      (?)
up2date install httpd
apr-util (?)
up2date install mod_ssl
httpd
up2date install mysql
mod_ssl
up2date install mysql-server
mysql
 
mysql-server
up2date install subversion
php (5)
 
php-mysql
 
php-pdo (?)
You will need to setup FFMPEG if you want to play with videos at all.  Directions are here.  We offer absolutely NO support, so don't send any emails to me about "how do I build ffmpeg".  Heck, we barely know how to do it.
php-pear (?)
 
php-xml
http://ffmpeg.mplayerhq.hu/download.html
subversion
 
You might wanna try this configure option "--enable-gpl --enable-memalign-hack --enable-amr_nb".
 
 
Pull the Joey Server code:
 
For anonymous browsing and checkout, use http://svn.mozilla.org. This should be put somewhere where apache can see it.
 
 
After a checkout, we have something that looks like:
 
<pre>
[dougt@sm-mobile02 joey.labs.mozilla.com]$ pwd
/data/joey.labs.mozilla.com
[dougt@sm-mobile02 joey.labs.mozilla.com]$ ls -al
total 36
drwxr-xr-x  7 dougt root  4096 Apr  6 10:28 .
drwxr-xr-x  4 dougt root  4096 Apr  6 10:20 ..
drwxr-xr-x  11 dougt users 4096 Apr  6 10:28 app
drwxr-xr-x  6 dougt users 4096 Apr  6 10:28 cake
drwxr-xr-x  3 dougt users 4096 Apr  6 10:28 docs
-rw-r--r--   1 dougt users  139 Apr  6 10:28 .htaccess
-rw-r--r--  1 dougt users 2666 Apr  6 10:28 index.php
drwxr-xr-x  7 dougt users 4096 Apr 6 10:28 .svn
drwxr-xr-x  3 dougt users 4096 Apr  6 10:28 vendors
</pre>
 
 
Read over app/config/config.php-dist, and make your copy here:


(?) -- you might not need to directly install this as it might be a dependent package.
app/config/config.php
(5) -- PHP 5 is required.


Both apache and PHP needs  a few modules.  I will get you the complete list.
This will contain some interesting and important settings.


You will need to create a /data/uploads directory owned by the apache user.


You will need to setup the database (will get you the schema url)
You will need to setup the database (will get you the schema url)
Make sure that sqld is running:
sudo /sbin/service mysqld start
cd app/config/sql
mysql


Then you need to have apache point to the joey php code (you will be able to check this out of svn) and have it be owned by apache
Then you need to have apache point to the joey php code (you will be able to check this out of svn) and have it be owned by apache


You will then need to download and compile ffmpeg (http://ffmpeg.mplayerhq.hu/).
You will then need to download and compile ffmpeg (http://ffmpeg.mplayerhq.hu/).
Confirmed users
1,031

edits