install ntpd
yum install ntpdate ntp
systemctl start ntpd
systemctl enable ntpd
timedatectl set-ntp true
force resync ntp
service ntpd stop
ntpd -gq
timedatectl status
service ntpd start
sync status
ntpq -p
ntpstat
yum install ntpdate ntp
systemctl start ntpd
systemctl enable ntpd
timedatectl set-ntp true
service ntpd stop
ntpd -gq
timedatectl status
service ntpd start
ntpq -p
ntpstat
Cari lokasi HDD yang rosak
showpd -s -failed -degraded
Dari info CagePos 0:8:1 = cage 0, magazine 8
Periksa size blok hdd tadi:
showpd -fmt -p -cg 0 -mg 8
cat /home/user/.local/share/applications/firefox.desktop
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Firefox
Name[en_US]=Firefox
Exec=/home/user/firefox/firefox
Comment[en_US]=Firefox web browser
StartupNotify=false
Icon=/home/user/firefox/browser/icons/mozicon128.png
Download JRE 1.6 dari https://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html
Pasang JRE 1.6
mkdir /usr/lib/jvm
cp /home/user/jre-6u45-linux-i586.bin .
./jre-6u45-linux-i586.bin
update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.6.0_45/bin/java" 1
Download firefox 45.9.0esr dari https://ftp.mozilla.org/pub/firefox/releases/45.9.0esr/linux-i686/ dan ekstrak ke home folder user
Link plugin jre ke folder plugin firefox
mkdir .mozilla/plugins
ln -s /usr/lib/jvm/jre1.6.0_45/lib/i386/libnpjp2.so /home/user/.mozilla/plugins/
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
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
Dapatkan ID CoS
zmprov gac -v | grep -e cn: -e zimbraId
Senaraikan account dengan CoS tersebut
zmprov sa zimbraCOSId=e00428a1-0c00-11d9-836a-000d93afea2a
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.
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.
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.