From d4c9b31f263b332d52c73925a6eaef7ed4be96eb Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 22 Apr 2008 18:01:25 -0400
Subject: [PATCH] - Improved the debian installation manual - Fixed a bug in the installer.

---
 INSTALL_DEBIAN.txt                 |   28 +++++++++++++++++++++++++++-
 install/lib/installer_base.lib.php |    4 ++--
 2 files changed, 29 insertions(+), 3 deletions(-)

diff --git a/INSTALL_DEBIAN.txt b/INSTALL_DEBIAN.txt
index 437e7e7..8ec5ec1 100644
--- a/INSTALL_DEBIAN.txt
+++ b/INSTALL_DEBIAN.txt
@@ -16,10 +16,27 @@
 
 ...use your own domain name of course ;)
 
+Edite the file /etc/mysql/my.cnf
+
+vi /etc/mysql/my.cnf
+
+and comment out the line
+
+bind-address          = 127.0.0.1
+
+then restart mysql
+
+/etc/init.d/mysql restart
+
+Set the mysql database password:
+
+mysqladmin -u root password yourrootsqlpassword
+mysqladmin -h ispconfig.local -u root password yourrootsqlpassword
+
+
 2) Install Amavisd-new, Spamassassin and Clamav (1 line!):
 
 apt-get install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl
-
 
 3) Install apache, PHP5 and phpmyadmin (1 line!):
 
@@ -58,6 +75,15 @@
 
 apt-get install mydns-mysql
 
+-> localhost
+-> mydns
+Would you like to set up the database and tables automatically? -> yes
+What is the username of the MySQL administrator? -> root
+Enter the MySQL administrator password -> yourrootsqlpassword
+Confirm this password -> yourrootsqlpassword
+What is the MyDNS username? -> mydns
+What is the MyDNS user password? -> mydnspassword
+
 The mydns installer is a bit tricky, you will have to select to create a new database for mydns and use a existing mysql user, e.g. the mysql root user. This database is only to fullfill the requirements for the debian pacakge during installation and will not be used by ISPConfig later. ISPConfig will automatically change the mydns configuration files to use the ISPConfig database.
 
 
diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php
index 2f8a1e5..d7c104c 100644
--- a/install/lib/installer_base.lib.php
+++ b/install/lib/installer_base.lib.php
@@ -156,8 +156,8 @@
 	//** Create a recors in the
 	public function add_database_server_record() {
 		
-		$server_ini = rf("tpl/server.ini.master");
-		$server_ini = addslashes($server_ini_content);
+		$server_ini_content = rf("tpl/server.ini.master");
+		$server_ini_content = addslashes($server_ini_content);
 		
 		$sql = "INSERT INTO `server` (`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_name`, `mail_server`, `web_server`, `dns_server`, `file_server`, `db_server`, `vserver_server`, `config`, `updated`, `active`) VALUES (1, 1, 'riud', 'riud', 'r', 'Server', 1, 1, 1, 1, 1, 1, '$server_ini_content', 0, 1);";
 		$this->db->query($sql);

--
Gitblit v1.9.1