[App_rpt-users] archivedir permissions
Loren Tedford
lorentedford at gmail.com
Thu Jul 21 18:52:15 UTC 2016
Here is how I have done it in the past
I will start from number one place..
apt-get update
apt-get install apache2 php5 libapache2-mod-php5 php5-mcrypt
nano /etc/apache2/sites-enabled/000-default.conf <- Make sure you put
the correct doc root folder
Htaccess file this is very important..
nano /var/www/audio/.htaccess
basic compression
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js)$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
# Protect files and directories
<FilesMatch
"(\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?
|xtmpl)|code-style\.pl|Entries.*|R$
Order allow,deny
</FilesMatch>
# DO show directory listings
Options +Indexes
# Basic rewrite rules, stop unneeded PERL bot, block subversion directories
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*/)?\.svn/ - [F,L]
ErrorDocument 403 "Access Forbidden"
RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
RewriteRule .* – [F,L]
</IfModule>
#File ends above this line Do not add this line..
The next step is crontab -e
Add these two lines below..
*/01 * * * * chown -R www-data:www-data /var/www/audio/
*/01 * * * * chmod -R 775 /var/www/audio/
#File ends above this line Do not add this line..
Save it now add the info into your rpt.conf
archivedir=/var/www/audio
In the paragraph just before the allstarlink status reporting page..
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..
Example uhf.lorentedford.com
Loren Tedford (KC9ZHV)
Email: lorentedford at gmail.com
Phone:
Fax:
http://www.lorentedford.com
http://kc9zhv.com
Sent from Droid Turbo from Verizon wireless network
On Jul 21, 2016 1:39 PM, "Tom Hayward" <tom at tomh.us> wrote:
> 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?
>
> Tom KD7LXL
>
> _______________________________________________
> App_rpt-users mailing list
> App_rpt-users at ohnosec.org
> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
>
> To unsubscribe from this list please visit
> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down
> to the bottom of the page. Enter your email address and press the
> "Unsubscribe or edit options button"
> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.keekles.org/pipermail/app_rpt-users/attachments/20160721/103b8d68/attachment.html>
More information about the App_rpt-users
mailing list