Cara Install Laravel 13 di Ubuntu (Lengkap untuk Pemula)
Laravel is one of the most popular PHP frameworks for building modern web applications. In this article, you'll learn how to install Laravel 13 on Ubuntu in a complete and easy-to-understand way, even if you're a beginner.
Preparation Before Installation
- Ubuntu 20.04 / 22.04 / 24.04
- Terminal access (SSH)
- User with sudo access
1. Update Ubuntu System
sudo apt update && sudo apt upgrade -y
2. Install PHP and Extensions
sudo apt install php php-cli php-mbstring php-xml php-bcmath php-curl php-mysql unzip curl -y
Check PHP version:
php -v
3. Install Composer
cd ~
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
Check Composer:
composer -V
4. Install Laravel
composer create-project laravel/laravel laravel-app
cd laravel-app
5. Run the Server
php artisan serve --host=0.0.0.0 --port=8000
Access in browser:
http://IP_SERVER:8000
6. Set Permission
sudo chmod -R 775 storage bootstrap/cache
7. Configure .env
cp .env.example .env
php artisan key:generate
8. Setup Database
php artisan migrate
Conclusion
By following the steps above, you have successfully installed Laravel 13 on Ubuntu. Next, you can start building web applications according to your needs.
.