tbrehm
2009-03-18 f86f62fedb5517bf98790d2a902c162df30e08af
Fixed various opensuse related bugs.
7 files modified
43 ■■■■■ changed files
docs/INSTALL_OPENSUSE_11_1.txt 34 ●●●●● patch | view | raw | blame | history
install/dist/conf/centos52.conf.php 1 ●●●● patch | view | raw | blame | history
install/dist/conf/debian40.conf.php 1 ●●●● patch | view | raw | blame | history
install/dist/conf/fedora9.conf.php 1 ●●●● patch | view | raw | blame | history
install/dist/conf/opensuse110.conf.php 1 ●●●● patch | view | raw | blame | history
server/lib/classes/modules.inc.php 4 ●●●● patch | view | raw | blame | history
server/plugins-available/apache2_plugin.inc.php 1 ●●●● patch | view | raw | blame | history
docs/INSTALL_OPENSUSE_11_1.txt
@@ -14,7 +14,7 @@
yast2 -i findutils readline libgcc glibc-devel findutils-locate gcc flex lynx compat-readline4 db-devel wget gcc-c++ make vim telnet cron iptables iputils man man-pages nano pico
1) Istall Postfix, Courier, Saslauthd, MySQL, phpMyAdmin with the following command line (on one line!):
1) Install Postfix, Courier, Saslauthd, MySQL with the following command line (on one line!):
yast2 -i postfix postfix-mysql mysql mysql-client courier-imap courier-authlib courier-authlib-mysql python cron cyrus-sasl cyrus-sasl-crammd5 cyrus-sasl-digestmd5 cyrus-sasl-gssapi cyrus-sasl-otp cyrus-sasl-plain cyrus-sasl-saslauthd libmysqlclient-devel
@@ -41,14 +41,8 @@
/etc/init.d/courier-pop-ssl start
/etc/init.d/courier-imap-ssl start
cd /tmp
yast2 -i pwgen
rpm -i http://download.opensuse.org/repositories/server:/php:/applications/openSUSE_11.1/noarch/phpMyAdmin-3.1.2-1.1.noarch.rpm
ln -s /srv/www/htdocs/phpMyAdmin /usr/local/ispconfig/interface/web/phpmyadmin
// Warnings like "warning: phpMyAdmin-3.1.2-1.1.src.rpm: Header V3 DSA signature: NOKEY, key ID 367fe7fc" can be ignored.
wget http://download.opensuse.org/repositories/server:/mail/openSUSE_11.0/i586/getmail-4.7.6-1.4.i586.rpm
rpm -i getmail-4.7.6-1.4.i586.rpm
@@ -65,13 +59,13 @@
./configure
make
make install
rm -rf pam_mysql-0.7RC1
rm pam_mysql-0.7RC1.tar.gz
rm -rf /tmp/pam_mysql-0.7RC1
rm /tmp/pam_mysql-0.7RC1.tar.gz
// Set the mysql database password:
mysqladmin -u root password yourrootsqlpassword
mysql_secure_installation
2) Install Amavisd-new, Spamassassin and Clamav (1 line!):
@@ -102,8 +96,23 @@
a2enmod suphp
a2enmod fcgid
// Fix a suexec permission problem
chown root:www /usr/sbin/suexec2
chmod 4755 /usr/sbin/suexec2
// and start apache
chkconfig --add apache2
/etc/init.d/apache2 start
cd /tmp
yast2 -i pwgen
rpm -i http://download.opensuse.org/repositories/server:/php:/applications/openSUSE_11.1/noarch/phpMyAdmin-3.1.2-1.1.noarch.rpm
ln -s /srv/www/htdocs/phpMyAdmin /usr/local/ispconfig/interface/web/phpmyadmin
// Warnings like "warning: phpMyAdmin-3.1.2-1.1.src.rpm: Header V3 DSA signature: NOKEY, key ID 367fe7fc" can be ignored.
4) Install pure-ftpd and quota
@@ -129,13 +138,14 @@
tar xvfz vlogger-1.3.tar.gz
mv vlogger-1.3/vlogger /usr/sbin/
rm -rf vlogger*
yast2 -i webalizer perl-DateManip
6.1 Install fail2ban
rpm -i http://download.opensuse.org/repositories/home:/leonardocf/openSUSE_11.0/i586/fail2ban-0.8.2-5.2.i586.rpm
yast2 -i webalizer perl-DateManip
6.2) Cleanup
install/dist/conf/centos52.conf.php
@@ -89,6 +89,7 @@
//* Fastcgi
$conf['fastcgi']['fastcgi_phpini_path'] = '/etc/';
$conf['fastcgi']['fastcgi_starter_path'] = '/var/www/php-fcgi-scripts/[system_user]/';
//* Postfix
$conf['postfix']['installed'] = false; // will be detected automatically during installation
install/dist/conf/debian40.conf.php
@@ -89,6 +89,7 @@
//* Fastcgi
$conf['fastcgi']['fastcgi_phpini_path'] = '/etc/php5/cgi/';
$conf['fastcgi']['fastcgi_starter_path'] = '/var/www/php-fcgi-scripts/[system_user]/';
//* Postfix
$conf['postfix']['installed'] = false; // will be detected automatically during installation
install/dist/conf/fedora9.conf.php
@@ -89,6 +89,7 @@
//* Fastcgi
$conf['fastcgi']['fastcgi_phpini_path'] = '/etc/';
$conf['fastcgi']['fastcgi_starter_path'] = '/var/www/php-fcgi-scripts/[system_user]/';
//* Postfix
$conf['postfix']['installed'] = false; // will be detected automatically during installation
install/dist/conf/opensuse110.conf.php
@@ -89,6 +89,7 @@
//* Fastcgi
$conf['fastcgi']['fastcgi_phpini_path'] = '/etc/php5/cgi/';
$conf['fastcgi']['fastcgi_starter_path'] = '/srv/www/php-fcgi-scripts/[system_user]/';
//* Postfix
$conf['postfix']['installed'] = false; // will be detected automatically during installation
server/lib/classes/modules.inc.php
@@ -170,8 +170,8 @@
            $sql = "SELECT * FROM sys_datalog WHERE datalog_id > ".$conf['last_datalog_id']." AND (server_id = ".$conf["server_id"]." OR server_id = 0) ORDER BY datalog_id";
            $records = $app->db->queryAllRecords($sql);
            foreach($records as $d) {
                if(!$data = unserialize(stripslashes($d["data"]))) {
                    $data = unserialize($d["data"]);
                if(!$data = unserialize(utf8_encode(stripslashes($d["data"])))) {
                    $data = unserialize(utf8_encode($d["data"]));
                }
                $this->current_datalog_id = $d["datalog_id"];
                $this->raiseTableHook($d["dbtable"],$d["action"],$data);
server/plugins-available/apache2_plugin.inc.php
@@ -219,7 +219,6 @@
            $this->action = 'update';
        }
        
        // load the server configuration options
        $app->uses("getconf");
        $web_config = $app->getconf->get_server_config($conf["server_id"], 'web');