Posts by Delta04

    Hmm, bad admin? :huh:


    Ubuntu 12.04.4 LTS
    Apache/2.2.22 (Ubuntu)
    The log is quite old now. The fast fix was to comment out that detection and use the IfVersion 2.4.9 section.


    Code
    1. root@csrv12:~# apache2ctl -VServer version: Apache/2.2.22 (Ubuntu)Server built: Apr 17 2014 21:49:30Server's Module Magic Number: 20051115:30Server loaded: APR 1.4.6, APR-Util 1.3.12Compiled using: APR 1.4.6, APR-Util 1.3.12Architecture: 64-bitServer MPM: Worker threaded: yes (fixed thread count) forked: yes (variable process count)Server compiled with.... -D APACHE_MPM_DIR="server/mpm/worker" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT="/etc/apache2" -D SUEXEC_BIN="/usr/lib/apache2/suexec" -D DEFAULT_PIDLOG="/var/run/apache2.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="mime.types" -D SERVER_CONFIG_FILE="apache2.conf"


    and


    Bugs! Let's squash them!
    OK, enought with the jokes. I just update one of my servers to the latest version of i-mscp 1.1.12 and one ugly nasty bug appeared.

    Code
    1. root@csrv12:~# /etc/init.d/apache2 stop
    2. * Stopping web server apache2 [ OK ]
    3. root@csrv12:~# /etc/init.d/apache2 start
    4. * Starting web server apache2 Syntax error on line 44 of /etc/apache2/sites-enabled/00_master.conf:
    5. Invalid command '<IfVersion', perhaps misspelled or defined by a module not incl uded in the server configuration
    6. Action 'start' failed.
    7. The Apache error log may have more information.
    8. [fail]


    And one more thing, it did not detect that the server was behind NAT so I had to modified the tpl's by hand.

    - Suport for PostgreSQL.
    - Possibility to disable by default in the setup time of Postgrey. (I choose Spam Assassin).
    - Support for cron.
    - It would be nice to connect many instances of i-mscp under one control panel via an API.
    - Antispam solution to throttle somehow the number of emails sent by a domain hosted on i-mscp.


    And I guess the list can continue.

    I use the i-mscp backup only for small databases. For large databases I use a separate script that only dumps the db. After all of this and to have a backup also of the files, not only databases, I use a rsync script that copy everything I need to restore a server in case of failure, on a dedicated backup server.
    Also the rsync is eating a lot of IO/CPU so the solution was to throttle the bandwidth and to set a lower priority on the rsync.


    To set a lower priority, in crontab I run the rsync script with " /usr/bin/nice -n 19 "
    To throttle the bandwidth used by rsync and set a lower encryption via ssh, " --bwlimit=6000 --recursive -e 'ssh -o Ciphers=arcfour' "