Skip to content

Instantly share code, notes, and snippets.

@virbo
Last active August 2, 2022 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save virbo/70f22db4ff610363ea4f4d13c1da37a3 to your computer and use it in GitHub Desktop.
Save virbo/70f22db4ff610363ea4f4d13c1da37a3 to your computer and use it in GitHub Desktop.
Install Virtualmin di Centos 7

//optional, setting LC_CTYPE https://gist.github.com/virbo/bcdfc0e41794b18ba4c538071828dd8d

  1. update dan upgrade
  2. install nano dan wget
  3. install perl (yum install perl)
  4. edit hostname
  5. wget http://software.virtualmin.com/gpl/scripts/install.sh
  6. sh install.sh

UPDATE POSTGRES (Postgresql v12)

sudo rpm -Uvh https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
yum list postgresql*
yum install postgresql12-server postgresql12-contrib postgresql12

/usr/pgsql-12/bin/postgresql-12-setup initdb

Start postgres (CLI):

sudo systemctl start postgresql-12
sudo systemctl enable postgresql-12

or Edit command setting Webmin -> Servers -> PostgreSQL Database Server -> Setting

  • Command to start PostgreSQL
  • Command to stop PostgreSQL
  • Command to initialize PostgreSQL
  • Paths to host access config file

other version: https://yum.postgresql.org/repopackages.php or https://www.postgresql.org/download/linux/redhat/ Ref: https://techcyclist.com/postgres/upgrading-postgres-to-the-latest-version-on-centos-7-server/

UPDATE MARIADB (versi 10.4.8)

nano /etc/yum.repos.d/MariaDB.repo

[mariadb10.4.8]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4.8/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
yum list available –showduplicates MariaDB-Server.x86_64
yum remove mariadb-server mariadb mariadb-libs
yum clean all
yum -y install MariaDB-server MariaDB-client
systemctl start mariadb
systemctl enable mariadb
mysql_upgrade -u root -pp@pua8888

Ref: https://www.tecmint.com/upgrade-mariadb-5-5-to-10-centos-rhel-debian-ubuntu/ and https://www.liquidweb.com/kb/update-mariadb-from-10-0-to-10-3-on-centos-7/

TAMBAHAN

mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME

ERROR: Postfix can support per-domain outgoing IP addresses, but is not currently configured to do so. This can be setup in the Postfix Mailserver module. solve with this https://www.virtualmin.com/documentation/email/dependent

INSTALL CSF

DISABLE FIREWALL CENTOS 7

https://www.woktron.com/secure/knowledgebase/77/Installation-CSF-Firewall-on-CentOS.html

INSTALL PHP 7.3

yum install rh-php73 rh-php73-php-pgsql rh-php73-php-mysqlnd rh-php73-php-intl rh-php73-php-gd rh-php73-php-mbstring

CHANGE DEFAULT PHP CLI

scl enable rh-php73 bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment