Freepbx on asterisk: Difference between revisions

From Alpine Linux
No edit summary
No edit summary
Line 4: Line 4:


* Lighttpd with PHP using FastCGI
* Lighttpd with PHP using FastCGI
* Mysql server
* MySQL server
* Freepbx 2.7.0
* Freepbx 2.7.0


Line 16: Line 16:


  vim +46 /etc/lighttpd/lighttpd.conf
  vim +46 /etc/lighttpd/lighttpd.conf
Start and add it to system start
/etc/init.d/lighttpd start && rc-update add lighttpd default
Create a test php file to see if your php installation is working and has all needed modules
echo "<?php phpinfo(); ?>" > /var/www/localhost/htdocs/phpinfo.php
Visit http://my-ip-address/phpinfo.php (you can delete the phpinfo.php file afterwards if you like)
== MySQL ==
Install MySQL
apk add mysql mysql-client
Initiate databases
/usr/bin/mysql_install_db --user=mysql
Start MySQL and add to system start
/etc/init.d/mysql start && rc-update add mysql default
Set MySQL root password
/usr/bin/mysqladmin -u root password 'new-password'

Revision as of 10:16, 12 May 2010

Set up Freepbx on AlpineLinux

This document will be a quick c/p guide to setup asterisk with freepbx on Alpine linux. What we will setup is the following:

  • Lighttpd with PHP using FastCGI
  • MySQL server
  • Freepbx 2.7.0

Lighttpd + PHP

Install lighttpd and PHP

apk add lighttpd php php-gd php-cli php-curl php-xml php-mysql php-posix php-mcrypt php-gettext php-pear

Enable PHP FastCGI in lighttpd by uncommenting fastcgi

vim +46 /etc/lighttpd/lighttpd.conf

Start and add it to system start

/etc/init.d/lighttpd start && rc-update add lighttpd default

Create a test php file to see if your php installation is working and has all needed modules

echo "<?php phpinfo(); ?>" > /var/www/localhost/htdocs/phpinfo.php

Visit http://my-ip-address/phpinfo.php (you can delete the phpinfo.php file afterwards if you like)

MySQL

Install MySQL

apk add mysql mysql-client

Initiate databases

/usr/bin/mysql_install_db --user=mysql

Start MySQL and add to system start

/etc/init.d/mysql start && rc-update add mysql default

Set MySQL root password

/usr/bin/mysqladmin -u root password 'new-password'