Posts by FISA4

    Here is the Hook file.
    I am sorry if the code looks not so good. It´s my first perl script.


    You have to install OwnCloud and do all things which are described here.
    Then place the attached file into /etc/imscp/hooks.d (remove .txt first)


    Edit

    Code
    1. my $owncloud_data_dir = ' = /var/www/virtual/cloud-domain.de/htdocs/data/';


    Make the file readable only for root (chmod 0600)


    If the imscp.conf will be overwritten by imscp-setup, the Hook file writes the USER_CLOUD_DIR variable into imsccp.conf

    Wie schon erwähnt, ist die Tabelle imscp_roundcube.user lediglich für Einstellungen, die Roundcube für den entsprechenden User benötigt. z.B. Wieviele Mails pro Seite, Soll ein Sound abgespielt weden wenn neue Mails reinkommeen, Datumsformat, u.s.w.


    Hier ein Beispiel:

    Code
    1. a:14:{sA12:"preview_pane";b:1;s:17:"check_all_folders";b:1;s:13:"mail_pagesize";i:200;s:22:"newmail_notifier_sound";b:1;s:8:"timezone";s:4:"auto";s:11:"date_format";s:5:"d.m.Y";s:9:"date_long";s:9:"d.m.Y H:i";s:11:"drafts_mbox";s:12:"INBOX.Drafts";s:9:"sent_mbox";s:10:"INBOX.Sent";s:9:"junk_mbox";s:10:"INBOX.Junk";s:10:"trash_mbox";s:11:"INBOX.Trash";s:12:"archive_mbox";s:13:"INBOX.Archive";s:15:"default_folders";a:5:{i:0;s:5:"INBOX";i:1;s:12:"INBOX.Drafts";i:2;s:10:"INBOX.Sent";i:3;s:10:"INBOX.Junk";i:4;s:11:"INBOX.Trash";}s:15:"namespace_fixed";b:1;}

    Ich hab 4 Server mit i-MSCP bestückt.
    Auf allen läüft Roundcube prima in der Standardkonfiguration.


    Schau mal in die Datei: /var/www/imscp/gui/public/tools/webmail/config/db.inc.php


    Da steht irgendwo weit oben: (MEINPASSWORT = Das Passwort, das Du bei der i-MSCP Installation für den roundcube_user angegeben hast)


    Code
    1. $rcmail_config['db_dsnw'] = 'mysqli://roundcube_user:MEINPASSWORT@localhost/imscp_roundcube';


    Stimmt das Passwort dort?


    EDIT:
    Wäre auch nicht übel etwas über Deinen Server zu erfahren:
    - Root oder vServer
    - CPU
    - Arbeitsspeicher
    - Festplattenkapazität
    - Linux-Version

    Derzeit bezieht sich das Multi Server darauf, dass
    - Webserver
    - Mailserver
    - DB-Server
    - DNS-Server
    u.s.w.
    vom Panel (auf einem Server) gemanaged wird.

    Also ich hab php als fcgi am laufen.
    Wie wäre es, wenn Du phpinfo() in den disabled functions des accounts ausschaltest und dann
    die funktion in einem kleinen phpscript aufrufst.


    dort steht der pfad zur php.ini drin.


    danach die phpinfo wieder bei den disabled_functions einschalten.


    Gruß


    FISA4

    I provide for my customers 5GB Cloud Space.


    A customer asked me, if it is possible to place the backups in his cloudspace once a week.
    I said, i try to find a solution.


    Here is my HowTo if somebody need it:


    Install OwnCloud on a Webspaceaccount as described here http://owncloud.org/install/
    It is ok, to use sqlite as DB.
    Make sure, that this domain has disabled the backup function in i-MSCP (or only sql if you use sqlite).
    You can leave it to full only if the domain which is running owncloud is the first domain added on this server (i.e. vu2003).


    Login into your server via ssh
    create the folder "backups" in /var/www/virtual/CLOUDDOMAIN.DE/htdocs/CLOUDFOLDER/core/skeleton/


    Add all user in OwnCloud and login once in their account to create the folders. sorry, i didn´t found another solution for this ( YET ;) ) without a rewrite of the owncloud code.


    After that, you have to modifie the file /etc/imscp/imscp.conf
    Search for:

    Code
    1. USER_WEB_DIR = /var/www/virtual


    Add after this: (replace CLOUDDOMAIN.DE with your domain and CLOUDFOLDER with the folder of your OwnCloud installation)

    Code
    1. USER_CLOUD_DIR = /var/www/virtual/CLOUDDOMAIN.DE/htdocs/CLOUDFOLDER/data/


    create a copy of /var/www/imscp/engine/backup/imscp-backup-all

    Code
    1. cp /var/www/imscp/engine/backup/imscp-backup-all /var/www/imscp/engine/backup/imscp-backup-cloud


    modify the file /var/www/imscp/engine/backup/imscp-backup-cloud


    Search for:

    Code
    1. my $homeDir = "$main::imscpConfig{'USER_WEB_DIR'}/$rdata->{$_}->{'domain_name'}"; my $bkpDir = "$homeDir/backups";


    change it like this:

    Code
    1. my $homeDir = "$main::imscpConfig{'USER_WEB_DIR'}/$rdata->{$_}->{'domain_name'}"; my $cldDir = "$main::imscpConfig{'USER_CLOUD_DIR'}/$rdata->{$_}->{'domain_name'}"; my $bkpDir = "$cldDir/files/backups";


    The last is, to add a cronjob to start the script once a weel


    goto /etc/cron.d
    create a file with the name cloud and fill it with the following
    (change the vuXXXX with the vu of owncloud and the path to the data directory )

    Code
    1. ## cron.d/cloud -- schedules periodic start of imscp-backup-cloud to# create backups from user webfolder and databases into users owncloud space## Copyright © Peter Ziergoebel <[email protected]>## Run once a week on sunday* * * * 0 root /var/www/imscp/engine/backup/imscp-backup-cloud yes &>/var/log/imscp/imscp-backup-cloud.log && chown -R vuXXXX:vuXXXX /var/www/virtual/CLOUDDOMAIN.DE/htdocs/CLOUDFOLDER/data/


    Restart cron

    Code
    1. /etc/init.d/cron restart


    IMPORTANT !!!
    After an update of i-MSCP the imscp.conf has to be edit again.


    That´s it.

    ....
    Und da i-MSCP die E-mail Adressen jedoch in seiner eigenen Datenbank einfügt, braucht man erst gar nicht jetzt den Fehler bei mir suchen.


    Es ist und bleibt nun mal ein Bug in i-MSCP, der gesucht & gefunden und gefixt werden muss.


    Hi, ich nochmal...


    2 Dinge:
    1. Nicht so aggressiv schreiben. ;) Hier sind alles Menschen, die versuchen zu helfen.
    2. Du hast recht. i-MSCP legt dort keine Daten an. Das ist aber auch nur, weil i-MSCP dort keine Daten eintragen braucht.
    Wie ich vor einigen Minuten schon geschrieben habe, werden die Daten in die Tabellen von Roundcube geschrieben.
    Ich habe das gerade noch getestet. Erst beim 1. Login werden die Daten in die imscp_roundcube.users Tabelle geschrieben.


    Was ich an Deiner Stelle mal ausprobieren würde:
    - eine neue Mailadresse anlegen und da z.B. abc123 als Passwort benutzen.
    - Versuchen sich in Roundcube einzuloggen.


    Wenn das klappt, dann liegt es an Deinem Passwort. Wenn nicht, dann stimmt evtl. mit Deiner Roundcube Config Datei was nicht oder (was ich kaum glaube) horcht Dein IMAP Server evtl nicht auf dem localhost (bzw. 127.0.0.1) Port.
    Ich hatte das umgekehrte Problem: localhost ja, extern nöööö.

    Spricht Roundcube Verifizierung findet über die DB imscp_roundcube -> users statt und da in der Tabelle users nun mal keine E-Mail Adresse Zugangsdaten eingefügt wurde von/über i-MSCP, kann man sich eben nicht einloggen.


    Hi,


    in diese Tabelle werden die Userpräferenzen eingetragen.
    Dort ist nirgends ein Passwortfeld. ;)
    Roundcube erstellt erst beim Login den User in der Tabelle.


    Ich hab das gerade getestet.

    Files

    • roundcube.png

      (60.46 kB, downloaded 88 times, last: )