Changes between Version 7 and Version 8 of Installing MediaMosa

Show
Ignore:
Timestamp:
02/28/11 17:05:53 (2 years ago)
Author:
forgacs
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Installing MediaMosa

    v7 v8  
    3232Create a mount point with read / write rights for Apache user (www-data), eg. /srv/mediamosa 
    3333 
     34== Apache == 
     35Insert the vhost setup below into the new file /etc/apache2/sites-available/your-site, where your-site is the name of your MediaMosa site: 
     36 
     37{{{ 
     38<VirtualHost *:80> 
     39    ServerName !server_name_clean 
     40    ServerAlias admin.!server_name_clean www.!server_name_clean 
     41    ServerAdmin webmaster@!server_name_clean 
     42    DocumentRoot !document_root 
     43    <Directory !document_root> 
     44        Options FollowSymLinks MultiViews 
     45        AllowOverride All 
     46        Order allow,deny 
     47        allow from all 
     48    </Directory> 
     49 
     50    ErrorLog /var/log/apache2/!server_name_clean_error.log 
     51    CustomLog /var/log/apache2/!server_name_clean_access.log combined 
     52    ServerSignature On 
     53 
     54    Alias /server-status !document_root 
     55    <Directory !document_root/serverstatus> 
     56        SetHandler server-status 
     57        Order deny,allow 
     58        Deny from all 
     59        Allow from 127.0.0.1 
     60     </Directory> 
     61 
     62    # ticket 
     63    Alias /ticket !mount_point/links 
     64    <Directory !mount_point/links> 
     65      Options FollowSymLinks 
     66      AllowOverride All 
     67      Order deny,allow 
     68      Allow from All 
     69    </Directory> 
     70</VirtualHost> 
     71 
     72<VirtualHost *:80> 
     73    ServerName app1.!server_name_clean 
     74    ServerAdmin webmaster@!server_name_clean 
     75    DocumentRoot !document_root 
     76    <Directory !document_root> 
     77        Options FollowSymLinks MultiViews 
     78        AllowOverride All 
     79        Order allow,deny 
     80        allow from all 
     81    </Directory> 
     82 
     83    ErrorLog /var/log/apache2/app1.!server_name_clean_error.log 
     84    CustomLog /var/log/apache2/app1.!server_name_clean_access.log combined 
     85    ServerSignature On 
     86</VirtualHost> 
     87 
     88<VirtualHost *:80> 
     89    ServerName app2.!server_name_clean 
     90    ServerAdmin webmaster@!server_name_clean 
     91    DocumentRoot !document_root 
     92    <Directory !document_root> 
     93        Options FollowSymLinks MultiViews 
     94        AllowOverride All 
     95        Order allow,deny 
     96        allow from all 
     97    </Directory> 
     98 
     99    ErrorLog /var/log/apache2/app2.!server_name_clean_error.log 
     100    CustomLog /var/log/apache2/app2.!server_name_clean_access.log combined 
     101    ServerSignature On 
     102</VirtualHost> 
     103 
     104<VirtualHost *:80> 
     105    ServerName upload.!server_name_clean 
     106    ServerAdmin webmaster@!server_name_clean 
     107    DocumentRoot !document_root 
     108    <Directory !document_root> 
     109        Options FollowSymLinks MultiViews 
     110        AllowOverride All 
     111        Order allow,deny 
     112        allow from all 
     113    </Directory> 
     114 
     115    <IfModule mod_php5.c> 
     116        php_admin_value post_max_size 2008M 
     117        php_admin_value upload_max_filesize 2000M 
     118        php_admin_value memory_limit 128M 
     119    </IfModule> 
     120 
     121    ErrorLog /var/log/apache2/upload.!server_name_clean_error.log 
     122    CustomLog /var/log/apache2/upload.!server_name_clean_access.log combined 
     123    ServerSignature On 
     124</VirtualHost> 
     125 
     126<VirtualHost *:80> 
     127    ServerName download.!server_name_clean 
     128    ServerAdmin webmaster@!server_name_clean 
     129    DocumentRoot !document_root 
     130    <Directory !document_root> 
     131        Options FollowSymLinks MultiViews 
     132        AllowOverride All 
     133        Order allow,deny 
     134        allow from all 
     135    </Directory> 
     136 
     137    ErrorLog /var/log/apache2/download.!server_name_clean_error.log 
     138    CustomLog /var/log/apache2/download.!server_name_clean_access.log combined 
     139    ServerSignature On 
     140</VirtualHost> 
     141 
     142<VirtualHost *:80> 
     143    ServerName job1.!server_name_clean 
     144    ServerAdmin webmaster@!server_name_clean 
     145    DocumentRoot !document_root 
     146    <Directory !document_root> 
     147        Options FollowSymLinks MultiViews 
     148        AllowOverride All 
     149        Order allow,deny 
     150        allow from all 
     151    </Directory> 
     152 
     153    ErrorLog /var/log/apache2/job1.!server_name_clean_error.log 
     154    CustomLog /var/log/apache2/job1.!server_name_clean_access.log combined 
     155    ServerSignature On 
     156</VirtualHost> 
     157 
     158<VirtualHost *:80> 
     159    ServerName job2.!server_name_clean 
     160    ServerAdmin webmaster@!server_name_clean 
     161    DocumentRoot !document_root 
     162    <Directory !document_root> 
     163        Options FollowSymLinks MultiViews 
     164        AllowOverride All 
     165        Order allow,deny 
     166        allow from all 
     167    </Directory> 
     168 
     169    ErrorLog /var/log/apache2/job2.!server_name_clean_error.log 
     170    CustomLog /var/log/apache2/job2.!server_name_clean_access.log combined 
     171    ServerSignature On 
     172</VirtualHost> 
     173}}} 
     174 
     175=== Enable the website: === 
     176{{{ 
     177sudo a2ensite your-site 
     178}}} 
     179 
     180=== Restart Apache: === 
     181{{{ 
     182sudo /etc/init.d/apache2 restart 
     183}}} 
     184 
    34185== Other == 
    35186 * Load your new site, chose the Mediamosa profile and follow the instruction.