Loa ding
We're making updates to serve you better. Thanks for waiting!
Programming

Cara Install Laravel 13 di Ubuntu (Lengkap untuk Pemula)

Andreas Budi Ekayana 1 min read 44 0
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.

.

Category Programming
Share
Andreas Budi Ekayana

Written by

Andreas Budi Ekayana

Andreas Budi Ekayana is a Bandung-based developer, tech enthusiast, and tech reviewer. Founder of AndreDEV Studio since 2011, he enjoys breaking down technology, web development, and digital trends in plain language.

See more articles

Comments 0

No comments yet. Be the first to share your thoughts.

Leave a comment

Comments are moderated automatically. Please be respectful. 0 / 1500