Really simple ! These instructions (
http://nerdvittles.com/?p=9526) do not work anymore !
To get an PIAF-Green you have to use these simple instr.
-> Install CentOs 6.5
1. Install or upgrade existing system
2. Test media [skip]
3. Begin setup [Next]
4. Choose language [English]
5. Keyboard [U.S. English]
6. Type Devices [Basic Storage Devices]
7. Discard Existing Data [yes]
8. Hostname [localhost.localdomain] ** BEFORE YOU CLICK NEXT, DO STEP 8a. **
8a. Configure Network [Click eth0 & Edit. Check:Connect Automatically then Apply & Close]
9. Time Zone [New York] ** Uncheck: System Clock Uses UTC **
10. Root Password [** make it very secure **]
11. Type Installation: Create Custom Layout with Primary Partition checked for 11a and 11c
11a. Create -> Standard Partition -> Mount Point: /boot Type: ext4 Size:200 Fixed
11b. Create -> Standard Partition -> Mount Point: blank Type: swap Size:2048 Fixed
11c. Create -> Standard Partition -> Mount Point: / Type: ext4 Size:Fill to Max Size
12. NEXT
13. FORMAT
14. WRITE CHANGES
15. Checked: Install boot loader on /dev/sda Boot loader CentOS List: /dev/sda3
16. Reboot when finished
-> Next, log in to your new server with your root credentials. The network won't work: it is correct
sed -i 's|no|yes|' /etc/sysconfig/network-scripts/ifcfg-eth0
ifup eth0
Att. Network start
-> Other commands
setenforce 0
yum -y upgrade
reboot
Att: At reboot CentOS is upgraded to CentOs 6.6
yum -y upgrade
yum -y install net-tools nano wget
reboot
wget
http://pbxinaflash.com/update-kernel-devel
chmod +x update-kernel-devel
./update-kernel-devel
reboot
reboot
->We are ready to install Piaf
cd /root
wget
http://pbxinaflash.com/piaf3-install.tar.gz
tar zxvf piaf3-install.tar.gz
./piaf3-install
Certified Asterisk 1.8 + Dadhi
Choose to install outdate versione
In the middle error in compiling asterisk - enter to continue (we'll solve at the end of the inst process)
-> Last but not least
At reboot asterisk won't work ! You have to recompile it !
cd /usr/src/asterisk
make menuconfig
save & exit
make
make install
update-fixes
-> To solve other errors !
>> PHP Fatal error: Cannot make static method DB::connect() non static in class<<
To solve
pear uninstall db
pear install db-1.7.14
>> Fail2Ban
WARNING 'pidfile' not defined in 'Definition'. Using default value
WARNING 'usedns' not defined in 'named-refused-tcp'. Using default value
bla bla bla
Add in /etc/fail2ban/fail2ban.conf
pidfile = /var/run/fail2ban/fail2ban.pid
add in /etc/fail2ban/jail.conf after default declaration
# "usedns" specifies if jails should trust hostnames in logs,
# warn when DNS lookups are performed, or ignore all hostnames in logs
#
# yes: if a hostname is encountered, a DNS lookup will be performed.
# warn: if a hostname is encountered, a DNS lookup will be performed,
# but it will be logged as a warning.
# no: if a hostname is encountered, will not be used for banning,
# but it will be logged as info.
usedns = warn
......I hope it can be useful