Install Process for freeBSD

0.- In the meantime freepbx is not in the oficial freebs ddistribution download the port from here

http://www.freepbx.org/attachment/ticket/761/freepbx-2.1.tar

1.- Choose what apache, mysql and php version you want to use. For example, you could put this in your make.conf:

  DEFAULT_PHP_VER=5

  DEFAULT_MYSQL_VER=50

  APACHE_PORT=www/apache20

2.- cd /usr/ports/misc/freepbx

3.- If you have php previously install make sure you have pear in your php.ini include paths.

3.- make install

4.- drink a coffee

5.- Read the post instalation notes:

       1) enable .php files in your apache config

       2) adding index.php as default index files

       3) add pear and /.../admin to your php.ini includes

       4) Make sure asterisk and mysql are running fine

       5) Make sure asterisk accepts connections (manager.conf)

6.- http://localhost/FreePBX

7.- Complete this document!

Comments

slav123's picture

Link is broken ;(

mlager's picture

Has anyone had success with getting 2.5.1 running on FreeBSD either from a port or from a core build? I'm surprised there hasn't been more interesting into bringing Asterisk to FreeBSD in a more supported form. Anyone interesting in working with me to commit an actual port?

koryuka's picture

Hello, I'm interested to work with you. I don't have experience with building FreeBSD ports but I can test it. Please feel free to contact me, if you need my help.

BlackJaguar1982's picture

cd /usr/ports/net/asterisk && make install clean && rehash
ln -s /usr/local/etc/asterisk /etc/asterisk
echo "asterisk_enable=YES" >>/etc/rc.conf
/usr/local/etc/rc.d/asterisk restart
cd /usr/ports/shells/bash && make install clean && rehash
cd /usr/ports/sysutils/pidof && make install clean && rehash
cd /usr/ports/sysutils/sudo && make install clean && rehash
cd /usr/ports/lang/php5 && make install clean && rehash
cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini
echo "short_open_tag=On" >>/usr/local/etc/php.ini

cd /usr/ports/sysutils/php5-posix && make install clean && rehash
cd /usr/ports/databases/php5-mysql && make install clean && rehash
cd /usr/ports/databases/php5-mysqli && make install clean && rehash
cd /usr/ports/graphics/php5-gd && make install clean && rehash
cd /usr/ports/audio/lame && make install clean && rehash
cd /usr/ports/textproc/libxml2 && make install clean && rehash
cd /usr/ports/graphics/tiff && make install clean && rehash
cd /usr/ports/devel/pear && make install clean && rehash && pear install DB && rehash
cd /usr/ports/databases/mysql55-server && make install clean && rehash
echo "mysql_enable=YES" >>/etc/rc.conf
/usr/local/etc/rc.d/mysql-server restart

mysqladmin password My$uperPassw0rd
echo "grant all privileges on asterisk.* to asterisk@localhost identified by 'My$uperPassw0rd'" >/tmp/cmd.tmp
mysql -u root --password=My$uperPassw0rd

miket1234's picture

This going to be great info for web design columbia sc and I have been looking for this for quite some time. I am sure that website design columbia sc will really appreciate this info.