Posts

Showing posts from September, 2024

How to install laravel project on ubuntu?

To install a Laravel project on Ubuntu, follow these steps: 1. Update and Upgrade the System Open a terminal and run: bash sudo apt update sudo apt upgrade 2. Install Required Packages Ensure you have the following installed: PHP (Laravel requires PHP 7.3 or higher) Composer (Dependency manager) Apache/Nginx (Web server) MySQL/PostgreSQL (Database) Install them using: bash sudo apt install php php-cli php-mbstring php-xml php-curl php-zip unzip curl apache2 libapache2-mod-php mysql-server 3. Install Composer Composer is essential for managing Laravel dependencies. Download and install Composer globally: bash curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer Verify the installation: bash composer -v 4. Clone or Create a Laravel Project If you have an existing Laravel project, clone it from your repository: bash git clone https://github.com/your-repo/your-laravel-project.git If you're creating a new project, r...