Quantcast
Channel: FreePBX Community Forums - Latest posts
Viewing all articles
Browse latest Browse all 228672

FreePBX 13: Unable to reload through GUI: Asterisk running as root (PiAF)

$
0
0

The fix is to run the following through terminal:

Tried the fix tonight and it worked! Thanks, @wardmundy :).. Just for reference for anyone else... here's the code you need to run.

amportal kill
chown -R asterisk:asterisk /var/run/asterisk
sed -i '/END INIT INFO/a AST_USER="asterisk"\nAST_GROUP="asterisk"' /etc/init.d/asterisk
sed -i 's|exit 0|/usr/local/sbin/amportal restart\nexit 0|' /etc/rc.local
amportal restart
sed -i 's|;runuser|runuser|' /etc/asterisk/asterisk.conf
sed -i 's|;rungroup|rungroup|' /etc/asterisk/asterisk.conf
reboot

If 'amportal kill' does not work, then 'amportal stop' should do the trick and continue with the rest of the commands. Hopefully this helps anybody out there :sunglasses:


Viewing all articles
Browse latest Browse all 228672

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>