Postingan

Menampilkan postingan dengan label CentOS

Virtual host berjalan di port 8080 menggunakan software apache2 dengan OS: Centos7

Soal: Buatlah sebuah virtual host berjalan di port 8080 menggunakan software apache2 dengan OS: Centos7, buat file index.html, dan simpan log access dan error di /var/log/httpd/dashboard2 Jawab: #yum install httpd Tambah script Listen8080 dibawah Listen80 di file berikut #vi /etc/httpd/conf/httpd.conf Listen80 Listen8080 #cd /var/www/html #mkdir dashboard2 #chown apache.apache dashboard2 -R #cd dashboard2 #mkdir public #echo "Welcome to Dashboard2" > public/index.html #mkdir /var/log/httpd/dashboard2 #vi /etc/httpd/conf.d/dashboard2.conf <VirtualHost *:8080> ServerAdmin webmaster@sysops.com ServerName 107.102.182.128:8080 DocumentRoot /var/www/html/dashboard2/public/ ErrorLog /var/log/httpd/dashboard2/error.log CustomLog /var/log/httpd/dashboard2/access.log combined </VirtualHost> #systemctl restart httpd

How to install PHP 7 on Centos 7

Berikut adalah ringkasan langkah-langkah installasi PHP di Centos 7 #yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm #yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm #yum install yum-utils #yum-config-manager --enable remi-php70   atau #yum-config-manager --enable remi-php71  atau #yum-config-manager --enable remi-php72 Install PHP dan beberapa modul #yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo Cek #php -v

How to upgrade Centos

e.g. to update your 7.4.1708 system to 7.5.1804, use the following procedure: First, ask your system what version you’re on now: $ cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) Next, upgrade with: $ sudo yum clean all $ sudo yum upgrade $ sudo systemctl reboot Finally, once this is done, you can verify that you’re running the latest build with: $ cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core)

Download CentOS

Berikut informasi daftar mirror centos https://www.centos.org/download/mirrors/ Untuk informasi release notes https://wiki.centos.org/Manuals/ReleaseNotes Untuk mirror download iso dan paket-paket software http://mirror.centos.org/centos/ http://kambing.ui.ac.id/iso/centos/ Untuk melihat software-software apa saja yang sudah terinstall di system CentOS bisa menggunakan perintah berikut ini: yum list installed atau rpm -qa