Labs/Joey/ServerSetup: Difference between revisions
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
<pre> | <pre> | ||
up2date | up2date ImageMagick | ||
up2date | up2date httpd | ||
up2date | up2date mod_ssl | ||
up2date | up2date mysql | ||
up2date | up2date mysql-server | ||
up2date | up2date php | ||
up2date | up2date php-mysql | ||
up2date | up2date php-domxml | ||
up2date | up2date subversion | ||
</pre> | </pre> | ||
Revision as of 19:52, 6 April 2007
WORKING ON THIS NOW. ;-)
This page is the How To on setting up a Joey Server.
I am using a Red Hat Enterprise Server using the rhel-i386-as-4-webapp-1-beta feed for php5.
up2date ImageMagick up2date httpd up2date mod_ssl up2date mysql up2date mysql-server up2date php up2date php-mysql up2date php-domxml up2date subversion
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.
http://ffmpeg.mplayerhq.hu/download.html
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:
[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
Read over app/config/config.php-dist, and make your copy here:
app/config/config.php
This will contain some interesting and important settings.
Setup apache.
There are some changes you need to make to a standard apache install. In http.conf,
change:
DocumentRoot to /data/joey.labs.mozilla.com (or wherever you have checked out the Joey Server code)
Add these types:
AddType application/x-xpinstall .xpi AddType video/3gpp .3gp AddType text/xml .rdf
Also setup any virtual hosts that you might need:
NameVirtualHost *:80 NameVirtualHost *:443 <VirtualHost *:80> ServerName joey.labs.mozilla.com RewriteEngine On RewriteRule ^/joey\.xpi$ - [L] RewriteRule ^/update\.rdf$ - [L] RewriteRule ^/(.*)$ https://joey.labs.mozilla.com/$1 [R=301,L] </VirtualHost> <VirtualHost *:443> ServerName joey.labs.mozilla.com DocumentRoot /data/joey.labs.mozilla.com SSLEngine On php_value apc.enabled off <Directory /data/joey.labs.mozilla.com> AllowOverride All </Directory> RewriteEngine On </VirtualHost>
Also, you want to make sure that your server speaks SSL. Without going into too much detail about this.
You will need to setup the database (will get you the schema url)
Make sure that sqld is running:
sudo /sbin/service mysqld start
Then setup the user. It can be anything as long as it matches what you put in config.php above.
mysqladmin -u root password 'passwordyouwant' cd app/config/sql mysql -u root -p 'passwordyouset' create database joey; use joey; source joey.sql;