<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">Hi Brian,</div>
<div class=""><br class="">
</div>
<div class="">Check what user apache2 runs as (probably www-data but depends on what distro you use).  Then make sure that user can write to the /opt/rt4/var/mason_data/obj directory (chown -R www-data:www-data /opt/rt4/var/mason_data/obj).</div>
<div class=""><br class="">
</div>
<div class="">To make sure apache2 runs as www-data (or to find out what it does run as) check the output of "ps aux | grep apache2".  There will be one process running as root but the others will run as a different user; that is the one you want.</div>
<div class=""><br class="">
</div>
<div>
<blockquote type="cite" class="">
<div class="">On Oct 31, 2016, at 10:49 AM, Dunbar, Brian <<a href="mailto:Brian.Dunbar@von.ca" class="">Brian.Dunbar@von.ca</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">I was installing RT-Extension-ActivityReports into RT 4.4.0 after the install I ran
<br class="">
rm -rf /opt/rt4/var/mason_data/obj<br class="">
then service apache2 restart<br class="">
<br class="">
Apache restarted ok but RT will not load. I found this error in syslog but not sure what to fix.<br class="">
[40707] mkdir /opt/rt4/var/mason_data/obj/3407077840: Permission denied at /usr/share/perl5/HTML/Mason/Compiler/ToObject.pm line 115.#012#012Stack:#012
<br class="">
[/usr/share/perl/5.20/Carp.pm:166]#012  [/usr/share/perl/5.20/File/Path.pm:156]#012  <br class="">
[/usr/share/perl/5.20/File/Path.pm:133]#012  <br class="">
[/usr/share/perl/5.20/File/Path.pm:114]#012  <br class="">
[/usr/share/perl5/HTML/Mason/Compiler/ToObject.pm:115]#012  <br class="">
[/usr/share/perl5/HTML/Mason/Interp.pm:440]#012  <br class="">
[/usr/share/perl5/HTML/Mason/Interp.pm:776]#012  <br class="">
[/usr/share/perl5/HTML/Mason/Request.pm:259]#012  <br class="">
[/usr/share/perl5/HTML/Mason/Request.pm:215]#012  <br class="">
[/opt/rt4/sbin/../lib/RT/Interface/Web/Request.pm:61]#012  <br class="">
[/usr/share/perl5/Class/Container.pm:275]#012  <br class="">
[/usr/share/perl5/Class/Container.pm:353]#012  <br class="">
[/usr/share/perl5/HTML/Mason/Interp.pm:351]#012  <br class="">
[/usr/share/perl5/HTML/Mason/Interp.pm:345]#012  <br class="">
[/usr/share/perl5/HTML/Mason/PSGIHandler.pm:59]#012  <br class="">
[/usr/share/perl5/HTML/Mason/PSGIHandler/Streamy.pm:52]#012  <br class="">
[/usr/share/perl5/Plack/Util.pm:301]#012  [/usr/share/perl5/<br class="">
<br class="">
Then I google clearing mason cache and it shows <br class="">
rm -Rf /usr/local/rt4/var/mason_data/obj/*<br class="">
Not usre if the asterisk at end makes difference I tried that after still no luck.<br class="">
<br class="">
Anyone see what is wrong and how to fix?  Greatly appreciated.<br class="">
---------<br class="">
RT 4.4 and RTIR training sessions, and a new workshop day! <a href="https://bestpractical.com/training" class="">
https://bestpractical.com/training</a><br class="">
* Los Angeles - Q1 2017<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
--<br class="">
Landon Stewart<br class="">
Lead Analyst - Abuse and Security Management<br class="">
INTERNAP ®<br class="">
📧 <a href="mailto:lstewart@internap.com" class="">lstewart@internap.com</a><br class="">
🌍 <a href="http://www.internap.com" class="">www.internap.com</a></div>
</div>
</div>
<br class="">
</body>
</html>