Categories
moodle

Cara Pasang Moodle 3.6 Pada Debian 9

Pasang pakej-pakej yang diperlukan

apt install php7.0 libapache2-mod-php7.0 php7.0-mysql php-common php7.0-cli php7.0-common php7.0-json php7.0-opcache php7.0-readline apache2 apache2-utils mysql-server php7.0-curl php7.0-gd php7.0-intl php7.0-zip php7.0-xml

Sediakan database

Dalam tag [server] /etc/mysql/mariadb.conf.d/50-server.cnf, tambahkan

innodb_large_prefix = ON

Simpan dan restart mariadb

systemctl restart mariadb

mysql -u root -p
create database moodle;
update mysql.user set plugin = 'mysql_native_password' where User='root';
SET GLOBAL innodb_file_format = barracuda;
\q

Pasang moodle

cd /var/www
tar -xvf /home/user1/moodle-latest-36.tgz
chown www-data /var/www/moodle
chown -R root /var/www/moodle
chmod -R 0755 /var/www/moodle
chown www-data /var/www/moodle
cd moodle/admin/cli/
sudo -u www-data /usr/bin/php install.php

Contoh setting apache2

# cat /etc/apache2/sites-available/000-default.conf

# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com

ServerAdmin webmaster@localhost
DocumentRoot /var/www/moodle
Alias /moodle /var/www/moodle

order allow,deny
allow from all

# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

Categories
linux

GPG error owncloud

Pernah dapat error ni?

All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://download.owncloud.org/download/repositories/production/Debian_9.0 Release: The following signatures were invalid: EXPKEYSIG 47AE7F72479BC94B ownCloud build service
W: Failed to fetch http://download.owncloud.org/download/repositories/production/Debian_9.0/Release.gpg The following signatures were invalid: EXPKEYSIG 47AE7F72479BC94B ownCloud build service
W: Some index files failed to download. They have been ignored, or old ones used instead.

Senang je

wget -nv https://download.owncloud.org/download/repositories/production/Debian_9.0/Release.key -O Release.key
2019-03-20 00:40:43 URL:https://download.owncloud.org/download/repositories/production/Debian_9.0/Release.key [4485/4485] -> "Release.key" [1]

apt-key add - < Release.key OK

Categories
zimbra

Senaraikan member CoS Zimbra

Dapatkan ID CoS

zmprov gac -v | grep -e cn: -e zimbraId

Senaraikan account dengan CoS tersebut

zmprov sa zimbraCOSId=e00428a1-0c00-11d9-836a-000d93afea2a

Categories
perisian

cPanel vs zPanel/Sentora

Kos

cPanel: minimum 15 USD sebulan
Sentora: tiada bayaran bulanan

Sokongan sistem pengoperasian

cPanel: CentOS, CloudLinux, or RHEL 6 & 7, Amazon Linux (semua versi)
Sentora: CentOS 6 & 7, Ubuntu 12.04 & 14.04, Debian 7 & 8

Pilihan sokongan teknikal

Kedua-duanya memberikan sokongan melalui forum tetapi cPanel turut memberikan sokongan melalui email melalui sistem tiket kepada yang melanggan lesen cPanel.

Categories
perisian

Web Hosting Control Panel

Apakah web hosting control panel?

web hosting control panel adalah aplikasi yang membantu penyedia servis web dan pelanggan servis mereka menjalankan kerja-kerja berkaitan laman web dengan lebih mudah

Siapa yang memerlukan web hosting control panel?

System admin syarikat web hosting dan pelanggan syarikat tersebut.

Bagaimana memasang web hosting control panel?

Secara minimum, anda mestilah mempunyai public IP, server untuk hos servis web dan panel web hosting. Kemudian, bergantung kepada fitur panel tersebut, proses pemasangan dari semudah menjalankan baris arahan hinggalah ke agak kompleks.

Berapakah kos web hosting control panel?

Kos adalah bergantung kepada pengeluar perisian berkenaan. Ada yang mengecas 10 USD sebulan dan ada yang boleh didapatkan tanpa kos.

Categories
perisian

Web Hosting

Web hosting adalah menyediakan servis laman web.

Syarikat web hosting menyediakan servis yang membantu pengguna untuk membolehkan mereka mempunyai laman web sendiri.

Dengan ini, mereka tidak perlu bersusah-payah membeli perkakasan yang diperlukan seperti server, peralatan rangkaian, kos selenggaraan perkakasan server dan rangkaian serta yuran bulanan boradband.

Categories
pemasangan zimbra

Pasang SSL GoDaddy pada Zimbra 8

  1. Muatnaik fail ssl yang diperlukan ke server zimbra

    cp domain.key commercial.key
    cp intermediate/gd_bundle-g2-g1.crt commercial_ca.crt
    scp Certificate/numbers-digits.crt commercial.key commercial_ca.crt zimbra-IP:/tmp

  2. Periksa ssl

    su - zimbra
    /opt/zimbra/bin/zmcertmgr verifycrt comm /opt/zimbra/ssl/zimbra/commercial/commercial.key /tmp/numbers-digits.crt /tmp/commercial_ca.crt

  3. Pasangkan ssl

    /opt/zimbra/bin/zmcertmgr deploycrt comm /tmp/number-digits.crt /tmp/commercial_ca.crt

  4. Mulakan semula zimbra
    zmcontrol restart
Categories
backup

Pasang bacula-web pada Ubuntu 16.04

  1. Muaturun bacula-web
    curl -O http://www.bacula-web.org/files/bacula-web.org/downloads/bacula-web-latest.tgz
    sudo mkdir -v /var/www/bacula-web

  2. Salin dan ekstrak ke /var/www
    cp /home/user1/bacula-web-latest.tgz .
    sudo cp /home/user1/bacula-web-latest.tgz .
    tar -xzf bacula-web-latest.tgz -C /var/www/bacula-web
    sudo tar -xzf bacula-web-latest.tgz -C /var/www/bacula-web
    chown -Rv www-data: /var/www/bacula-web
    sudo chown -Rv www-data: /var/www/bacula-web
    sudo chmod -Rv u=rx,g=rx,o=rx /var/www/bacula-web
    cd bacula-web/
    cd application/config/
    sudo cp config.php.sample config.php

  3. Edit setting nama dan path fail sqlite pada /var/www/bacula-web/application/config/config.php
    $config[0]['label'] = 'Main Backup Server';
    $config[0]['db_type'] = 'sqlite';
    $config[0]['db_name'] = '/var/lib/bacula/bacula.db';

  4. Edit /etc/php/7.0/apache2/php.ini dan set timezone
    date.timezone = Asia/Kuala_Lumpur

  5. Edit /etc/apache2/sites-available/000-default.conf dan tambah berikut sebelum “</VirtualHost>”
    <Directory /var/www/html/bacula-web>
     AllowOverride All
    </Directory>

  6. Ubah permission cache dan sqlite
    sudo chmod 755 application/view/cache/
    sudo chown www-data /var/lib/bacula/bacula.db
    sudo chown www-data /var/lib/bacula
    sudo service apache2 reload

  7. Siap. Anda sekarang boleh mengakses bacula-web pada IP/bacula-web/
Categories
perisian

Kemaskini owncloud pada Debian 8

  1. Setelah apt upgrade, tukar direktori ke /var/www/owncloud

    cd /var/www/owncloud/

  2. Kemaskini dilakukan sebagai pengguna service http www-data

    sudo -u www-data php occ status
    sudo -u www-data php occ upgrade

Siap.

Categories
backup linux

Pasang Acronis Management Server pada CentOS 7

  1. Pasangkan semua pakej yang diperlukan

    yum -y install gcc perl kernel kernel-headers kernel-devel

  2. Mulakan semula CentOS

    reboot

  3. Mula memasang Acronis. Jangan lupa memilih management server.

    bash AcronisBackupL64_11.7N_trial_en-US.x86_64

Sekarang anda telah boleh mengakses GUI Acronis Backup dari ikon pada Desktop CentOS 7.