Browse Source

First commit for Centos7 version, BROKEN VERSION

Pi3rrot 10 years ago
parent
commit
874f896067
2 changed files with 16 additions and 15 deletions
  1. 3 3
      README.md
  2. 13 12
      script_centos_isp.sh

+ 3 - 3
README.md

@@ -1,13 +1,13 @@
 CentOS perfectServ
 CentOS perfectServ
 ==================
 ==================
 
 
-This script will install all you need to have a full configuration of ISPConfig 3 on a minimal & new CentOS 6.4 system.
+This script will install all you need to have a full configuration of ISPConfig 3 on a minimal & new CentOS 7 system.
 It work with no guaranty and need to be improved for sure !
 It work with no guaranty and need to be improved for sure !
 
 
 This work is based from http://www.howtoforge.com/perfect-server-centos-6.4-x86_64-nginx-dovecot-ispconfig-3
 This work is based from http://www.howtoforge.com/perfect-server-centos-6.4-x86_64-nginx-dovecot-ispconfig-3
 You have to read this documentation and the script itself before do anything with it.
 You have to read this documentation and the script itself before do anything with it.
 
 
-You must have a fresh CentOS 6.4 installation, with nothing installed and full internet access.
+You must have a fresh CentOS 7 installation, with nothing installed and full internet access.
 During setup, you will be asked for prompt input for mysql, mailman, and ISPConfig setup.
 During setup, you will be asked for prompt input for mysql, mailman, and ISPConfig setup.
 
 
 It will install and configure :
 It will install and configure :
@@ -15,7 +15,7 @@ It will install and configure :
 * Epel and RPMForge repository
 * Epel and RPMForge repository
 * Development Tools (cause we need to compile some packages)
 * Development Tools (cause we need to compile some packages)
 * NTP Daemon
 * NTP Daemon
-* NGINX, MySql, PHP
+* NGINX, MariaDB, PHP
 * phpMyadmin
 * phpMyadmin
 * Dovecot, Postfix & getmail
 * Dovecot, Postfix & getmail
 * ClamAV
 * ClamAV

+ 13 - 12
script_centos_isp.sh

@@ -6,18 +6,19 @@ echo " | |     ___ _ __ | |_| |  | | (___    _ __   ___ _ __| |_ ___  ___| |_| (
 echo " | |    / _ \ '_ \| __| |  | |\___ \  | '_ \ / _ \ '__|  _/ _ \/ __| __|\___ \ / _ \ '__\ \ / /"
 echo " | |    / _ \ '_ \| __| |  | |\___ \  | '_ \ / _ \ '__|  _/ _ \/ __| __|\___ \ / _ \ '__\ \ / /"
 echo " | |___|  __/ | | | |_| |__| |____) | | |_) |  __/ |  | ||  __/ (__| |_ ____) |  __/ |   \ V / "
 echo " | |___|  __/ | | | |_| |__| |____) | | |_) |  __/ |  | ||  __/ (__| |_ ____) |  __/ |   \ V / "
 echo "  \_____\___|_| |_|\__|\____/|_____/  | .__/ \___|_|  |_| \___|\___|\__|_____/ \___|_|    \_/  "
 echo "  \_____\___|_| |_|\__|\____/|_____/  | .__/ \___|_|  |_| \___|\___|\__|_____/ \___|_|    \_/  "
-echo "                                      | |  v0.1beta"
+echo "                                      | |  v0.2"
 echo "                                      |_|  for auto hosting simply & easily"
 echo "                                      |_|  for auto hosting simply & easily"
 echo ""
 echo ""
-echo "you can \"tail -f log_script.log\" to see what's happend ;)"
+
+echo "To view details: \"tail -f log_script.log\""
 echo ""
 echo ""
-echo -e "\033[31mThis script will modify your configuration server.\033[0m"
-echo -e "\033[31mIt work with NO guaranty\033[0m"
-echo -e "\033[31mDo you know what you do? (type yes UPPERLY)\033[0m"
+echo -e "\033[31mThis script will modify your server's configuration.\033[0m"
+echo -e "\033[31mNO guarantees are implied\033[0m"
+echo -e "\033[31mDo you want to continue? (type yes in UPPERCASE)\033[0m"
 read areyousure
 read areyousure
 if [ $areyousure != "YES" ]
 if [ $areyousure != "YES" ]
 then exit 1
 then exit 1
-else echo -e "\033[31mEvil is coming \m/ ...\033[0m"
+else echo -e "\033[31mStarting script `basename $0`\033[0m"
 fi
 fi
 
 
 LOG=/root/log_script.log
 LOG=/root/log_script.log
@@ -81,9 +82,9 @@ disable_selinux() {
 }
 }
 
 
 
 
-install_mysql() {
-  echo -e "[\033[33m*\033[0m] Installing MYSQL Server"
-  yum install mysql mysql-server -y >> $LOG 2>&1
+install_mariadb() {
+  echo -e "[\033[33m*\033[0m] Installing MariaDB SQL Server"
+  yum install MariaDB-server MariaDB-client -y >> $LOG 2>&1
   chkconfig --levels 235 mysqld on >> $LOG 2>&1
   chkconfig --levels 235 mysqld on >> $LOG 2>&1
   /etc/init.d/mysqld start >> $LOG 2>&1
   /etc/init.d/mysqld start >> $LOG 2>&1
 
 
@@ -296,7 +297,7 @@ EOF
 
 
 install_awstat() {
 install_awstat() {
   echo -e "[\033[33m*\033[0m] Setting statistics stuffs"
   echo -e "[\033[33m*\033[0m] Setting statistics stuffs"
-  um install webalizer awstats perl-DateTime-Format-HTTP perl-DateTime-Format-Builder -y >> $LOG 2>&1
+  yum install webalizer awstats perl-DateTime-Format-HTTP perl-DateTime-Format-Builder -y >> $LOG 2>&1
 }
 }
 
 
 install_jailkit() {
 install_jailkit() {
@@ -324,7 +325,7 @@ install_rkhunter() {
   yum install rkhunter -y >> $LOG 2>&1
   yum install rkhunter -y >> $LOG 2>&1
 }
 }
 
 
-
+configure_zeroconf
 configure_repo
 configure_repo
 update_system
 update_system
 install_required_packages
 install_required_packages
@@ -346,7 +347,7 @@ install_jailkit
 install_fail2ban
 install_fail2ban
 install_rkhunter
 install_rkhunter
 
 
-echo -e "[\033[33m*\033[0m] Setting ISPConfig !"
+echo -e "[\033[33m*\033[0m] Installing ISPConfig Stable version"
 #ISPConfig
 #ISPConfig
 cd /tmp
 cd /tmp
 wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz >> $LOG 2>&1
 wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz >> $LOG 2>&1