Created
May 10, 2021 16:30
-
-
Save morsine/07afefa2c361992cf17c9d9245e7f863 to your computer and use it in GitHub Desktop.
How to install FreePBX 15 with Asterisk 16 on Armbian or Orange Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note: These steps worked for me, but it might not work for you. This requires changing some stuff which might break your system. | |
# I am not responsible for anything | |
# be the root user! | |
sudo -i | |
# change the sources.list file contents | |
# open it and remove everything inside | |
nano /etc/apt/sources.list | |
# after that add the following: | |
deb http://archive.raspbian.org/raspbian buster main contrib non-free | |
deb-src http://archive.raspbian.org/raspbian buster main contrib non-free | |
# I know this is for raspbian. but it will do just fine. | |
apt-get update && apt-get upgrade -y | |
apt-get install mariadb-server mariadb-client curl dirmngr apt-transport-https lsb-release ca-certificates gcc g++ wget php php-pear php-cgi php-common php-curl php-mbstring php-gd php-mysql php-gettext php-bcmath php-zip php-xml php-imap php-json php-snmp php-fpm libapache2-mod-php apache2 asterisk -y | |
# Kill asterisk using any method you use. | |
# secure mysql | |
/usr/bin/mysql_secure_installation | |
Install node.js | |
apt-get install curl dirmngr apt-transport-https lsb-release ca-certificates -y | |
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash | |
apt-get update | |
apt-get install gcc g++ make nodejs -y | |
# some apache configuration.. | |
cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf_orig | |
sed -i 's/^\(User\|Group\).*/\1 asterisk/' /etc/apache2/apache2.conf | |
sed -i 's/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf | |
a2enmod php7.3 | |
sed -i 's/\(^upload_max_filesize = \).*/\120M/' /etc/php/7.3/apache2/php.ini | |
sed -i 's/\(^upload_max_filesize = \).*/\120M/' /etc/php/7.3/cli/php.ini | |
service apache2 restart | |
systemctl restart apache2 | |
# delete everything on the web folder | |
rm -rf /var/www/html/* | |
# Install FreePBX 15 | |
cd /usr/src | |
wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-15.0-latest.tgz | |
tar xfz freepbx-15.0-latest.tgz | |
rm -f freepbx-15.0-latest.tgz | |
cd freepbx | |
./start_asterisk start | |
# Replace your SQL password with the example | |
./install -n --dbuser root --dbpass mysqlpassword | |
a2enmod rewrite | |
systemctl restart apache2 | |
# Fixing possible issue with manual installations | |
fwconsole restart | |
fwconsole ma downloadinstall pm2 | |
fwconsole restart | |
# reboot the system | |
reboot now | |
# if you still have issues starting freepbx, please check this link | |
# https://issues.freepbx.org/browse/FREEPBX-20344 | |
Author
morsine
commented
Jun 20, 2023
via email
Honestly I don't remember, and this doesn't work on any recent version or
armbian/asterisk anymore.
…On Mon, Jun 19, 2023, 5:26 PM chuc2rk ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
@vahidpourmohamad <https://github.com/vahidpourmohamad> Hello dear
Hamvatan.
The code above was tested on an Orange Pi One and Zero. And yes, it was
using FreePBX 15 for the web UI.
I'm not sure if it still works or not, considering the release of newer
version of the dependencies and the OS itself.
Hi! which version armbian run on your orange pi Zero?
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/Morsine/07afefa2c361992cf17c9d9245e7f863#gistcomment-4603890>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEVOUDEBHUSUIWWZ3RKHNJ3XMBLAPBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFQKSXMYLMOVS2I5DSOVS2I3TBNVS3W5DIOJSWCZC7OBQXE5DJMNUXAYLOORPWCY3UNF3GS5DZVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVEYTAOJUGMYTKMZUU52HE2LHM5SXFJTDOJSWC5DF>
.
You are receiving this email because you authored the thread.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment