Skip to content

Instantly share code, notes, and snippets.

View izmilia-prastika's full-sized avatar

izmilia-prastika izmilia-prastika

  • -
  • Jakarta, Indonesia
View GitHub Profile
@izmilia-prastika
izmilia-prastika / gist:3be95360bbda913f0db8cd4607aec600
Created November 18, 2023 09:55
contoh konfigurasi untuk melakukan instalasi dan menjalankan web server dengan aplikasi PHP dengan Ansible
- name: Update the apt-get cache
apt:
update_cache: yes
- name: Install PHP
apt:
name: php
- name: Install Apache
apt:
@izmilia-prastika
izmilia-prastika / gist:ccaabe78b05ace7c93663ec3cdff35d2
Created November 18, 2023 09:53
contoh konfigurasi untuk melakukan instalasi dan menjalankan web server dengan aplikasi PHP
#!/bin/bash
# Update the apt-get cache
sudo apt-get update
# Install PHP
sudo apt-get install -y php
# Install Apache
sudo apt-get install -y apache2
@izmilia-prastika
izmilia-prastika / gist:eb63ece865bec4ee6ae311166b54520f
Created November 18, 2023 09:51
#!/bin/bash # Update the apt-get cache sudo apt-get update # Install PHP sudo apt-get install -y php # Install Apache sudo apt-get install -y apache2 # Copy the code from the repository sudo git clone https://github.com/brikis98/php-app.git /var/www/html/app # Start Apache sudo service apache2 start
#!/bin/bash
# Update the apt-get cache
sudo apt-get update
# Install PHP
sudo apt-get install -y php
# Install Apache
sudo apt-get install -y apache2
@izmilia-prastika
izmilia-prastika / gist:f89f6d53d992c056e75bc9283c42b501
Last active April 20, 2021 09:46
result of my journalctl -u elasticsearch
sudo journalctl -u elasticsearch
-- Logs begin at Mon 2021-02-08 10:38:18 PST, end at Tue 2021-04-20 02:20:23 PDT. --
Mar 30 02:10:32 ubuntu systemd[1]: Starting Elasticsearch...
Mar 30 02:12:00 ubuntu systemd[1]: elasticsearch.service: start operation timed out. Terminatin>
Mar 30 02:12:08 ubuntu systemd[1]: elasticsearch.service: Failed with result 'timeout'.
Mar 30 02:12:08 ubuntu systemd[1]: Failed to start Elasticsearch.
Mar 30 02:27:13 ubuntu systemd[1]: Starting Elasticsearch...
Mar 30 02:28:28 ubuntu systemd[1]: elasticsearch.service: start operation timed out. Terminatin>
Mar 30 02:28:35 ubuntu systemd[1]: elasticsearch.service: Failed with result 'timeout'.
Mar 30 02:28:35 ubuntu systemd[1]: Failed to start Elasticsearch.
<html>
<head>
<title>Portfolio Front End Developer</title>
</head>
<body>
Hello
</body>
</html>