Laravel Dengan Composer

Laravel Dengan Composer

Posting tentang laravel sudah lama saya tinggalkan, dibiarkan jadi draft begitu saja. Baiklah. Bagaimana pun saya harus punya skill membuat web php dengan suatu cms.

Langkah yang saya lakukan:

  • membuka permission di /var/www/html menjadi user own. Karena saya mau install website ujicoba-nya disini
  • baca sumber instalasi laravel di sini.
  • ketik perintah di command : composer global require “laravel/installer”

Timbul error.

Problem 1
– Installation request for laravel/installer ^2.1 -> satisfiable by laravel/installer[v2.1.0].
– laravel/installer v2.1.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.

Penyelesaiannya muncul di terminal. Seperti berikut :

To enable extensions, verify that they are enabled in your .ini files:
– /etc/php/7.0/cli/php.ini
– /etc/php/7.0/cli/conf.d/10-opcache.ini
– /etc/php/7.0/cli/conf.d/10-pdo.ini
– /etc/php/7.0/cli/conf.d/20-calendar.ini
– /etc/php/7.0/cli/conf.d/20-ctype.ini
– /etc/php/7.0/cli/conf.d/20-exif.ini
– /etc/php/7.0/cli/conf.d/20-fileinfo.ini
– /etc/php/7.0/cli/conf.d/20-ftp.ini
– /etc/php/7.0/cli/conf.d/20-gettext.ini
– /etc/php/7.0/cli/conf.d/20-iconv.ini
– /etc/php/7.0/cli/conf.d/20-json.ini
– /etc/php/7.0/cli/conf.d/20-mbstring.ini
– /etc/php/7.0/cli/conf.d/20-mcrypt.ini
– /etc/php/7.0/cli/conf.d/20-phar.ini
– /etc/php/7.0/cli/conf.d/20-posix.ini
– /etc/php/7.0/cli/conf.d/20-readline.ini
– /etc/php/7.0/cli/conf.d/20-shmop.ini
– /etc/php/7.0/cli/conf.d/20-sockets.ini
– /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
– /etc/php/7.0/cli/conf.d/20-sysvsem.ini
– /etc/php/7.0/cli/conf.d/20-sysvshm.ini
– /etc/php/7.0/cli/conf.d/20-tokenizer.ini

Baiklah, saya pun menuju /etc/php bla bla dan mencoba mengeceknya. Dan saya tidak menemukan apa-apa di file-file itu. Akhirnya saya googling dan menemukan solusi untuk menginstall ext-zip.

sudo apt-get install php7.0-zip

Lalu ulangi langkah instalasi dengan composernya.

Dan gagal!

Laravel perlu instalasi apache. Dan apache di komputer saya tidak mendukung php versi 7 yang diperlukan.

Leave a Reply

Your email address will not be published. Required fields are marked *

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