<p dir="ltr">Here is how I have done it in the past<br>
I will start from number one place..</p>
<p dir="ltr">apt-get update</p>
<p dir="ltr">apt-get install apache2 php5 libapache2-mod-php5 php5-mcrypt</p>
<p dir="ltr">nano /etc/apache2/sites-enabled/000-default.conf    <- Make sure you put the correct doc root folder <br></p>
<p dir="ltr">Htaccess file this is very important..<br></p>
<p dir="ltr">nano /var/www/audio/.htaccess<br></p>
<p dir="ltr"> basic compression</p>
<p dir="ltr"><IfModule mod_gzip.c></p>
<p dir="ltr">        mod_gzip_on Yes</p>
<p dir="ltr">        mod_gzip_dechunk Yes</p>
<p dir="ltr">        mod_gzip_item_include file \.(html?|txt|css|js)$</p>
<p dir="ltr">        mod_gzip_item_include mime ^text/.*</p>
<p dir="ltr">        mod_gzip_item_include mime ^application/x-javascript.*</p>
<p dir="ltr">        mod_gzip_item_exclude mime ^image/.*</p>
<p dir="ltr">        mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*</p>
<p dir="ltr"></IfModule></p>
<p dir="ltr"># Protect files and directories</p>
<p dir="ltr"><FilesMatch "(\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)? |xtmpl)|code-style\.pl|Entries.*|R$</p>
<p dir="ltr">        Order allow,deny</p>
<p dir="ltr"></FilesMatch></p>
<p dir="ltr"># DO show directory listings</p>
<p dir="ltr">Options +Indexes</p>
<p dir="ltr"># Basic rewrite rules, stop unneeded PERL bot, block subversion directories</p>
<p dir="ltr"><IfModule mod_rewrite.c></p>
<p dir="ltr">        RewriteEngine On</p>
<p dir="ltr">        RewriteRule ^(.*/)?\.svn/ - [F,L]</p>
<p dir="ltr">        ErrorDocument 403 "Access Forbidden"</p>
<p dir="ltr">        RewriteCond %{HTTP_USER_AGENT} libwww-perl.*</p>
<p dir="ltr">        RewriteRule .* – [F,L]</p>
<p dir="ltr"></IfModule><br><br><br><br></p>
<p dir="ltr">#File ends above this line Do not add this line..<br><br></p>
<p dir="ltr">The next step is crontab -e<br></p>
<p dir="ltr">Add these two lines below..</p>
<p dir="ltr">*/01 * * * *  chown -R www-data:www-data /var/www/audio/</p>
<p dir="ltr">*/01 * * * *  chmod -R 775 /var/www/audio/<br></p>
<p dir="ltr">#File ends above this line Do not add this line..</p>
<p dir="ltr">Save it now add the info into your rpt.conf<br></p>
<p dir="ltr">archivedir=/var/www/audio<br><br></p>
<p dir="ltr">In the paragraph just before the allstarlink status reporting page..<br><br></p>
<p dir="ltr">This should help you make it web based like i have it just go to the ip or sub-domain name pointed at the ip..</p>
<p dir="ltr">Example <a href="http://uhf.lorentedford.com/">uhf.lorentedford.com</a><br><br><br></p>
<p dir="ltr">Loren Tedford (KC9ZHV) <br>
Email: <a href="mailto:lorentedford@gmail.com">lorentedford@gmail.com</a><br>
Phone: <br>
Fax: <br>
<a href="http://www.lorentedford.com">http://www.lorentedford.com</a><br>
<a href="http://kc9zhv.com">http://kc9zhv.com</a></p>
<p dir="ltr">Sent from Droid Turbo from Verizon wireless network</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Jul 21, 2016 1:39 PM, "Tom Hayward" <<a href="mailto:tom@tomh.us">tom@tomh.us</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I setup archivedir and am successfully getting recordings. I want to allow access to these recordings on a web server. The recordings are in the web root and I can browse them. When I try to download a recording, I get permission denied because the recording files do not have world-read and are owned by root. A chmod solves this, but only for old recordings. New files still get mode 0600. How can I change the mode of new files?<div><br></div><div>Tom KD7LXL</div></div>
<br>_______________________________________________<br>
App_rpt-users mailing list<br>
<a href="mailto:App_rpt-users@ohnosec.org">App_rpt-users@ohnosec.org</a><br>
<a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer" target="_blank">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a><br>
<br>
To unsubscribe from this list please visit <a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer" target="_blank">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a> and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"<br>
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem. <br></blockquote></div></div>