Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install ISPConfig3 CentOS 7 64Bits
## Install ISPConfig 3.x on CentOS 7 64Bits
## ISPConfig3 3.x + Apache2 + CentOS 7 64Bits
## VM HD 50GB, swap 2GB, / 19GB, /var/www all
## Filesystem ext4
## Run as root
yum -y install net-tools wget quota
systemctl stop firewalld.service
systemctl disable firewalld.service
## Reebot you server after command
sed -i 's|SELINUX=enforcing|SELINUX=disabled|' /etc/selinux/config
cd /tmp/
rpm -Uvh
yum -y install epel-release wget net-tools
rpm -Uvh ius-release*.rpm
yum -y update
yum -y groupinstall 'Development Tools'
## Packages Web Server
yum -y install httpd24u httpd24u-mod_ssl httpd24u-mod_proxy_html httpd24u-devel mariadb-server
yum -y install php56u php56u-mysql php56u-mbstring
yum -y install php56u php56u-devel php56u-gd php56u-imap php56u-ldap php56u-mysql php56u-odbc php56u-pear php56u-xml
yum -y install php56u-xmlrpc php56u-pecl-apc php56u-mbstring php56u-mcrypt php56u-mssql php56u-snmp php56u-soap
yum -y install curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel mod_fcgid php56u-cli
yum -y install php56u-fpm php56u-tidy curl pure-ftpd openssl bind bind-utils haveged ntp
yum -y install awstats perl-DateTime-Format-HTTP perl-DateTime-Format-Builder
yum -y install libpng-devel gd-devel wget net-tools
## Packages Mail Server
yum -y install dovecot dovecot-mysql dovecot-pigeonhole postfix getmail
yum -y install amavisd-new spamassassin clamav-server clamav-data clamav-update
yum -y install clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib
yum -y install clamav-server-systemd unzip bzip2 perl-DBD-mysql
## Install HHVM 3.15.3
yum -y install hhvm-3.15.3-1.el7.centos.x86_64.rpm
ln -s /usr/local/bin/hhvm /usr/bin/hhvm
### Compile mod_fastcgi from github
cd /tmp/
cd mod_fastcgi-master
cp Makefile.AP2 Makefile
sed -i 's|/usr/local/apache2|/usr/lib64/httpd|' Makefile
make && make install
echo "LoadModule fastcgi_module modules/" > /etc/httpd/conf.d/fastcgi.conf
echo 'RequestHeader unset Proxy early' > /etc/httpd/conf.d/httpoxy.conf
cd /tmp
tar xvfz webalizer-2.23-08-src.tgz
cd webalizer-2.23-08 && ./configure
make && make install
sed -i 's|;cgi.fix_pathinfo=1|cgi.fix_pathinfo=1|' /etc/php.ini
sed -i "s|;date.timezone =|date.timezone = 'America\/Sao_Paulo'|" /etc/php.ini
sed -i 's|Example|#Example|' /etc/freshclam.conf
touch /etc/dovecot/dovecot-sql.conf
ln -s /etc/dovecot/dovecot-sql.conf /etc/dovecot-sql.conf
mkdir -p /etc/ssl/private/
openssl req -x509 -nodes -days 7300 -newkey rsa:2048 -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem
chmod 600 /etc/ssl/private/pure-ftpd.pem
cp /etc/named.conf /etc/named.conf_bak
touch /etc/named.conf.local
echo '//
// named.conf
options {
listen-on port 53 { any; };
listen-on-v6 port 53 { any; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { any; };
allow-recursion {"none";};
recursion no;
logging {
channel default_debug {
file "data/";
severity dynamic;
zone "." IN {
type hint;
file "";
include "/etc/named.conf.local";' > /etc/named.conf
sa-update -D
systemctl enable amavisd.service
systemctl start amavisd.service
systemctl start clamd@amavisd.service
systemctl enable mariadb.service
systemctl start mariadb.service
systemctl stop sendmail.service
systemctl disable sendmail.service
systemctl enable postfix.service
systemctl restart postfix.service
systemctl start php-fpm.service
systemctl enable php-fpm.service
systemctl enable httpd.service
systemctl enable dovecot
systemctl start dovecot
systemctl enable named.service
systemctl start named.service
systemctl restart httpd.service
## Set passwords for the MySQL root account
## Download ISPConfig 3.1.X
cd /tmp
wget -c ${get_isp}
tar xvfz $(basename ${get_isp})
cd ispconfig3_install/install && php -q install.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.