Commit 6a8d0d8e authored by tbrehm's avatar tbrehm

improved opensuse install instructions and fixed template problems.

parent e0efb21a
...@@ -43,8 +43,9 @@ chkconfig --add courier-imap-ssl ...@@ -43,8 +43,9 @@ chkconfig --add courier-imap-ssl
cd /tmp cd /tmp
wget http://download.opensuse.org/repositories/server:/php:/applications/openSUSE_11.1/src/phpMyAdmin-3.1.2-1.1.src.rpm yast2 -i pwgen
rpm -i phpMyAdmin-3.1.2-1.1.src.rpm 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. // Warnings like "warning: phpMyAdmin-3.1.2-1.1.src.rpm: Header V3 DSA signature: NOKEY, key ID 367fe7fc" can be ignored.
...@@ -67,15 +68,10 @@ make install ...@@ -67,15 +68,10 @@ make install
rm -rf pam_mysql-0.7RC1 rm -rf pam_mysql-0.7RC1
rm pam_mysql-0.7RC1.tar.gz rm pam_mysql-0.7RC1.tar.gz
// Set the mysql database password: // Set the mysql database password:
mysqladmin -u root password yourrootsqlpassword mysqladmin -u root password yourrootsqlpassword
mysqladmin -h ispconfig.local -u root password yourrootsqlpassword
// Install phpmyadmin
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
2) Install Amavisd-new, Spamassassin and Clamav (1 line!): 2) Install Amavisd-new, Spamassassin and Clamav (1 line!):
...@@ -185,6 +181,9 @@ Now start the installation process by executing: ...@@ -185,6 +181,9 @@ Now start the installation process by executing:
php -q install.php php -q install.php
// Cleanup
rm -rf /tmp/trunk
The installer will configure all services like postfix, sasl, courier, etc. for you. A manual setup as required for ISPConfig 2 (perfect setup guides) is not nescessary. To login to the ISPConfig controlpanel, open the following URL in your browser (replace the IP to match your settings!): The installer will configure all services like postfix, sasl, courier, etc. for you. A manual setup as required for ISPConfig 2 (perfect setup guides) is not nescessary. To login to the ISPConfig controlpanel, open the following URL in your browser (replace the IP to match your settings!):
http://192.168.0.100:8080/ http://192.168.0.100:8080/
......
...@@ -113,9 +113,10 @@ class page_action extends tform_actions { ...@@ -113,9 +113,10 @@ class page_action extends tform_actions {
if($this->id > 0) { if($this->id > 0) {
//* we are editing a existing record //* we are editing a existing record
$app->tpl->setVar("edit_disabled", 'disabled="disabled"'); $app->tpl->setVar("edit_disabled", 1);
$app->tpl->setVar("server_id_value", $this->dataRecord["server_id"]);
} else { } else {
$app->tpl->setVar("edit_disabled", ''); $app->tpl->setVar("edit_disabled", 0);
} }
parent::onShowEnd(); parent::onShowEnd();
......
...@@ -7,10 +7,18 @@ ...@@ -7,10 +7,18 @@
<fieldset class="inlineLabels"> <fieldset class="inlineLabels">
<tmpl_if name="is_admin"> <tmpl_if name="is_admin">
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="server_id">{tmpl_var name='server_id_txt'}</label> <tmpl_if name="edit_disabled">
<select name="server_id" id="server_id" class="selectInput" {tmpl_var name='edit_disabled'}> <label for="server_id_disabled">{tmpl_var name='server_id_txt'}</label>
{tmpl_var name='server_id'} <select name="server_id_disabled" id="server_id_disabled" class="selectInput" disabled="disabled">
</select> {tmpl_var name='server_id'}
</select>
<input type="hidden" name="server_id" value="{tmpl_var name='server_id_value'}" />
<tmpl_else>
<label for="server_id">{tmpl_var name='server_id_txt'}</label>
<select name="server_id" id="server_id" class="selectInput">
{tmpl_var name='server_id'}
</select>
</tmpl_if>
</div> </div>
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="client_group_id">{tmpl_var name='client_txt'}</label> <label for="client_group_id">{tmpl_var name='client_txt'}</label>
......
...@@ -176,9 +176,11 @@ class page_action extends tform_actions { ...@@ -176,9 +176,11 @@ class page_action extends tform_actions {
if($this->id > 0) { if($this->id > 0) {
//* we are editing a existing record //* we are editing a existing record
$app->tpl->setVar("edit_disabled", 'disabled="disabled"'); $app->tpl->setVar("edit_disabled", 1);
$app->tpl->setVar("server_id_value", $this->dataRecord["server_id"]);
$app->tpl->setVar("database_charset_value", $this->dataRecord["database_charset"]);
} else { } else {
$app->tpl->setVar("edit_disabled", ''); $app->tpl->setVar("edit_disabled", 0);
} }
parent::onShowEnd(); parent::onShowEnd();
......
...@@ -7,16 +7,24 @@ ...@@ -7,16 +7,24 @@
<fieldset class="inlineLabels"> <fieldset class="inlineLabels">
<tmpl_if name="is_admin"> <tmpl_if name="is_admin">
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="server_id">{tmpl_var name='server_id_txt'}</label> <tmpl_if name="edit_disabled">
<select name="server_id" id="server_id" class="selectInput" {tmpl_var name='edit_disabled'}> <label for="server_id_disabled">{tmpl_var name='server_id_txt'}</label>
{tmpl_var name='server_id'} <select name="server_id_disabled" id="server_id_disabled" class="selectInput" disabled="disabled">
</select> {tmpl_var name='server_id'}
</select>
<input type="hidden" name="server_id" value="{tmpl_var name='server_id_value'}" />
<tmpl_else>
<label for="server_id">{tmpl_var name='server_id_txt'}</label>
<select name="server_id" id="server_id" class="selectInput" onChange="loadContentInto('ip_address','sites/ajax_get_ip.php?server_id='+document.getElementById('server_id').value)">
{tmpl_var name='server_id'}
</select>
</tmpl_if>
</div> </div>
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="client_group_id">{tmpl_var name='client_txt'}</label> <label for="client_group_id">{tmpl_var name='client_txt'}</label>
<select name="client_group_id" id="client_group_id" class="selectInput"> <select name="client_group_id" id="client_group_id" class="selectInput">
{tmpl_var name='client_group_id'} {tmpl_var name='client_group_id'}
</select> </select>
</div> </div>
</tmpl_if> </tmpl_if>
<tmpl_if name="is_reseller"> <tmpl_if name="is_reseller">
...@@ -24,20 +32,25 @@ ...@@ -24,20 +32,25 @@
<label for="client_group_id">{tmpl_var name='client_txt'}</label> <label for="client_group_id">{tmpl_var name='client_txt'}</label>
<select name="client_group_id" id="client_group_id" class="selectInput"> <select name="client_group_id" id="client_group_id" class="selectInput">
{tmpl_var name='client_group_id'} {tmpl_var name='client_group_id'}
</select> </select>
</div> </div>
</tmpl_if> </tmpl_if>
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="type">{tmpl_var name='type_txt'}</label> <label for="type">{tmpl_var name='type_txt'}</label>
<select name="type" id="type" class="selectInput formLengthHalf"> <select name="type" id="type" class="selectInput formLengthHalf">
{tmpl_var name='type'} {tmpl_var name='type'}
</select> </select>
</div> </div>
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="database_name">{tmpl_var name='database_name_txt'}</label> <label for="database_name">{tmpl_var name='database_name_txt'}</label>
<div style="float: left;">{tmpl_var name='database_name_prefix'} </div> <div style="float: left;">{tmpl_var name='database_name_prefix'} </div>
<input name="database_name" id="database_name" value="{tmpl_var name='database_name'}" size="30" maxlength="255" type="text" class="textInput formLengthHalf" {tmpl_var name='edit_disabled'} /> <tmpl_if name="edit_disabled">
</div> <input name="database_name" id="database_name" value="{tmpl_var name='database_name'}" size="30" maxlength="255" type="text" class="textInput formLengthHalf" disabled="disabled" />
<input name="database_name" type="hidden" value="{tmpl_var name='database_name'}" />
<tmpl_else>
<input name="database_name" id="database_name" value="{tmpl_var name='database_name'}" size="30" maxlength="255" type="text" class="textInput formLengthHalf" />
</tmpl_if>
</div>
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="database_user">{tmpl_var name='database_user_txt'}</label> <label for="database_user">{tmpl_var name='database_user_txt'}</label>
<div style="float: left;">{tmpl_var name='database_user_prefix'} </div> <div style="float: left;">{tmpl_var name='database_user_prefix'} </div>
...@@ -53,10 +66,18 @@ ...@@ -53,10 +66,18 @@
<p class="formHint"><span id="passText">&nbsp;</span></p> <p class="formHint"><span id="passText">&nbsp;</span></p>
</div> </div>
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="database_charset">{tmpl_var name='database_charset_txt'}</label> <tmpl_if name="edit_disabled">
<select name="database_charset" id="database_charset" class="selectInput formLengthHalf" {tmpl_var name='edit_disabled'}> <label for="database_charset_disabled">{tmpl_var name='database_charset_txt'}</label>
{tmpl_var name='database_charset'} <select name="database_charset_disabled" id="database_charset_disabled" class="selectInput formLengthHalf" disabled="disabled">
</select> {tmpl_var name='database_charset'}
</select>
<input type="hidden" name="database_charset" value="{tmpl_var name='database_charset_value'}" />
<tmpl_else>
<label for="database_charset">{tmpl_var name='database_charset_txt'}</label>
<select name="database_charset" id="database_charset" class="selectInput formLengthHalf">
{tmpl_var name='database_charset'}
</select>
</tmpl_if>
</div> </div>
<div class="ctrlHolder"> <div class="ctrlHolder">
<p class="label">{tmpl_var name='remote_access_txt'}</p> <p class="label">{tmpl_var name='remote_access_txt'}</p>
......
...@@ -7,10 +7,18 @@ ...@@ -7,10 +7,18 @@
<fieldset class="inlineLabels"> <fieldset class="inlineLabels">
<tmpl_if name="is_admin"> <tmpl_if name="is_admin">
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="server_id">{tmpl_var name='server_id_txt'}</label> <tmpl_if name="edit_disabled">
<label for="server_id_disabled">{tmpl_var name='server_id_txt'}</label>
<select name="server_id_disabled" id="server_id_disabled" class="selectInput" disabled="disabled">
{tmpl_var name='server_id'}
</select>
<input type="hidden" name="server_id" value="{tmpl_var name='server_id_value'}" />
<tmpl_else>
<label for="server_id">{tmpl_var name='server_id_txt'}</label>
<select name="server_id" id="server_id" class="selectInput" onChange="loadContentInto('ip_address','sites/ajax_get_ip.php?server_id='+document.getElementById('server_id').value)"> <select name="server_id" id="server_id" class="selectInput" onChange="loadContentInto('ip_address','sites/ajax_get_ip.php?server_id='+document.getElementById('server_id').value)">
{tmpl_var name='server_id'} {tmpl_var name='server_id'}
</select> </select>
</tmpl_if>
</div> </div>
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="client_group_id">{tmpl_var name='client_group_id_txt'}</label> <label for="client_group_id">{tmpl_var name='client_group_id_txt'}</label>
...@@ -37,26 +45,6 @@ ...@@ -37,26 +45,6 @@
<label for="domain">{tmpl_var name='domain_txt'}</label> <label for="domain">{tmpl_var name='domain_txt'}</label>
<input name="domain" id="domain" value="{tmpl_var name='domain'}" size="30" maxlength="255" type="text" class="textInput" /> <input name="domain" id="domain" value="{tmpl_var name='domain'}" size="30" maxlength="255" type="text" class="textInput" />
</div> </div>
<!--
<div class="ctrlHolder">
<label for="type">{tmpl_var name='type_txt'}</label>
<select name="type" id="type" class="selectInput">
{tmpl_var name='type'}
</select>
</div>
<div class="ctrlHolder">
<label for="parent_domain_id">{tmpl_var name='parent_domain_id_txt'}</label>
<select name="parent_domain_id" id="parent_domain_id" class="selectInput">
{tmpl_var name='parent_domain_id'}
</select>
</div>
<div class="ctrlHolder">
<label for="vhost_type">{tmpl_var name='vhost_type_txt'}</label>
<select name="vhost_type" id="vhost_type" class="selectInput">
{tmpl_var name='vhost_type'}
</select>
</div>
-->
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="hd_quota">{tmpl_var name='hd_quota_txt'}</label> <label for="hd_quota">{tmpl_var name='hd_quota_txt'}</label>
<input name="hd_quota" id="hd_quota" value="{tmpl_var name='hd_quota'}" size="7" maxlength="7" type="text" class="textInput formLengthLimit" /> <input name="hd_quota" id="hd_quota" value="{tmpl_var name='hd_quota'}" size="7" maxlength="7" type="text" class="textInput formLengthLimit" />
......
...@@ -187,9 +187,10 @@ class page_action extends tform_actions { ...@@ -187,9 +187,10 @@ class page_action extends tform_actions {
if($this->id > 0) { if($this->id > 0) {
//* we are editing a existing record //* we are editing a existing record
$app->tpl->setVar("edit_disabled", 'disabled="disabled"'); $app->tpl->setVar("edit_disabled", 1);
$app->tpl->setVar("server_id_value", $this->dataRecord["server_id"]);
} else { } else {
$app->tpl->setVar("edit_disabled", ''); $app->tpl->setVar("edit_disabled", 0);
} }
parent::onShowEnd(); parent::onShowEnd();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment