Troubleshooting Install Laravel Linux: Perbedaan antara revisi
(←Membuat halaman berisi 'Jika muncul error seperti tampilan berikut <code>Problem 1</code> <code> - phpunit/phpunit[9.5.10, ..., 9.6.x-dev] require ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.</code> <code> - Root composer.json requires phpunit/phpunit ^9.5.10 -> satisfiable by phpunit/phpunit[9.5.10, ..., 9.6.x-dev].</code> <code>To enable extensions, verify that they are enabled in your .ini files:</code> <code> - /etc/php/7.4...') |
Tidak ada ringkasan suntingan |
||
(1 revisi perantara oleh pengguna yang sama tidak ditampilkan) | |||
Baris 69: | Baris 69: | ||
<code>sudo service apache2 restart</code> | <code>sudo service apache2 restart</code> | ||
setelah itu coba kembali install aplikasi laravel dengan mengikut langkah pada proses [[install laravel via linux]] | setelah itu coba kembali install aplikasi laravel dengan mengikut langkah pada proses [[Install Laravel via Composer di Linux|install laravel via linux]] | ||
[[Kategori:Laravel]] |
Revisi terkini sejak 16 Juli 2023 04.10
Jika muncul error seperti tampilan berikut
Problem 1
- phpunit/phpunit[9.5.10, ..., 9.6.x-dev] require ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
- Root composer.json requires phpunit/phpunit ^9.5.10 -> satisfiable by phpunit/phpunit[9.5.10, ..., 9.6.x-dev].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/7.4/cli/php.ini
- /etc/php/7.4/cli/conf.d/10-opcache.ini
- /etc/php/7.4/cli/conf.d/10-pdo.ini
- /etc/php/7.4/cli/conf.d/20-calendar.ini
- /etc/php/7.4/cli/conf.d/20-ctype.ini
- /etc/php/7.4/cli/conf.d/20-exif.ini
- /etc/php/7.4/cli/conf.d/20-ffi.ini
- /etc/php/7.4/cli/conf.d/20-fileinfo.ini
- /etc/php/7.4/cli/conf.d/20-ftp.ini
- /etc/php/7.4/cli/conf.d/20-gettext.ini
- /etc/php/7.4/cli/conf.d/20-iconv.ini
- /etc/php/7.4/cli/conf.d/20-json.ini
- /etc/php/7.4/cli/conf.d/20-mbstring.ini
- /etc/php/7.4/cli/conf.d/20-phar.ini
- /etc/php/7.4/cli/conf.d/20-posix.ini
- /etc/php/7.4/cli/conf.d/20-readline.ini
- /etc/php/7.4/cli/conf.d/20-shmop.ini
- /etc/php/7.4/cli/conf.d/20-sockets.ini
- /etc/php/7.4/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.4/cli/conf.d/20-sysvsem.ini
- /etc/php/7.4/cli/conf.d/20-sysvshm.ini
- /etc/php/7.4/cli/conf.d/20-tokenizer.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-dom` to temporarily ignore these required extensions.
lakukan langkah-langkah solusi dibawah ini.
install ekstensi dom dengan cara mengetikan perintah berikut di terminal
sudo apt install php7.4-dom
kemudian restart service php dengan mengetikan perintah
sudo service apache2 restart
setelah itu coba kembali install aplikasi laravel dengan mengikut langkah pada proses install laravel via linux