Last active
May 8, 2020 19:46
-
-
Save andibastian/bf9ef9f444e11920d037c222e92ed620 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
echo "Installasi Freepbx pada centos6" | |
echo "-----------------------" | |
echo "Pengaturan SED" | |
sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/sysconfig/selinux | |
echo "Update & Install basic ..." | |
yum -y update && yum -y groupinstall core base "Development Tools" | |
yum install -y gcc gcc-c++ lynx bison mysql-devel mysql-server php php-mysql php-pear php-mbstring php-xml tftp-server httpd make ncurses-devel libtermcap-devel sendmail sendmail-cf caching-nameserver sox newt-devel libxml2-devel libtiff-devel audiofile-devel gtk2-devel subversion kernel-devel git subversion kernel-devel php-process crontabs cronie cronie-anacron wget vim php-xml uuid-devel libtool sqlite-devel unixODBC mysql-connector-odbc libuuid-devel binutils-devel php-ldap | |
echo "Disable iptables" | |
chkconfig iptables --list | |
chkconfig --level 0123456 iptables off | |
service iptables stop | |
echo "Service MYSQL" | |
chkconfig --level 345 mysqld on | |
service mysqld start | |
echo "Service HTTPD" | |
chkconfig --level 345 httpd on | |
service httpd start | |
echo "Update pear.php.net" | |
pear channel-update pear.php.net && pear install db-1.7.14 | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment