[Labs] Pranala Memasang PHP dkk. di Linux Mint 19

Note: masih masih tidak suka dengan PHP, walaupun Ok dengan WordPress.. ._.

1.Materi untuk Server

https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-18-04

2.Materi untuk Lokal

A. Install Apache

Referensi: https://linuxize.com/post/how-to-install-apache-on-ubuntu-18-04/

  • sudo apt update
  • sudo apt install apache2
  • sudo systemctl status apache2
  • sudo ufw allow ‘Apache Full’
  • sudo ufw status
  • cek localhost

B. Install PHP

Referensi: https://linuxize.com/post/how-to-install-php-on-ubuntu-18-04/

PHP-Apache Stack

  • sudo apt install php libapache2-mod-php
  • sudo systemctl restart apache2

PHP-Nginx Stack

C. Tambahan

Install Composer: https://linuxize.com/post/how-to-install-and-use-composer-on-ubuntu-18-04/

  • sudo apt update
  • sudo apt install wget php-cli php-zip unzip
  • php -r “copy(‘https://getcomposer.org/installer’, ‘composer-setup.php’);”
  • HASH=”$(wget -q -O – https://composer.github.io/installer.sig)”
  • php -r “if (hash_file(‘SHA384’, ‘composer-setup.php’) === ‘$HASH’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;”
  • sudo php composer-setup.php –install-dir=/usr/local/bin –filename=composer
  • composer

Install Laravel: https://linuxize.com/post/how-to-install-laravel-on-ubuntu-18-04/

  • sudo apt install php7.2-common php7.2-cli php7.2-gd php7.2-mysql php7.2-curl php7.2-intl php7.2-mbstring php7.2-bcmath php7.2-imap php7.2-xml php7.2-zip
  • curl -sS https://getcomposer.org/installer | sudo php — –install-dir=/usr/local/bin –filename=composer
  • composer –version
  • composer create-project –prefer-dist laravel/laravel my_app
  • cd ~/my_app
  • php artisan serve
  • Laravel development server started: http://127.0.0.1:8000

Install MySQL: https://linuxize.com/post/how-to-install-mysql-on-ubuntu-18-04/

Install MariaDB: https://linuxize.com/post/how-to-install-mariadb-on-ubuntu-18-04/

By Ainan

Siapalah saya... Entah kenapa aku menulis disini, aku sudah lupa. Karena semua ini pada awalnya adalah sesuatu yang tidak seharusnya menjadi seperti sekarang. Aku hanya merasa bahwa ada hal yang benar-benar ingin aku lakukan dengan menulis disini. Samar-samar aku ingat, tapi selebihnya lagi aku sudah tidak tahu itu apa dan bagaimana harus melakukannya.

Leave a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.