Giter VIP home page Giter VIP logo

script-to-set-up-laravel-environtment-on-ubuntu-22.04's Introduction

Bash Script for Automated Environment Setup

This bash script automates the setup of a web development environment suitable for PHP and Laravel applications. It updates the system, installs necessary base packages, and configures PHP along with essential PHP extensions. It also ensures that Apache2, Composer, Node.js, and MariaDB are installed and configured properly. If certain components (like Nginx or MySQL) are already installed, the script intelligently skips redundant installation steps.

What Does the Script Do?

  1. Update and Upgrade System: Ensures the system's package list and installed packages are updated.
  2. Install Base Packages: Installs essential packages like unzip, curl, and software-properties-common.
  3. Add PHP Repository: Adds the ondrej/php PPA repository to the system for installing PHP.
  4. Install PHP 8.2: Installs PHP 8.2 and necessary extensions required for Laravel.
  5. Check and Install Apache2: If Nginx is not installed, it installs Apache2.
  6. Install Composer: Checks if Composer is installed, if not, installs it.
  7. Install Node.js and NPM: Adds Node.js repository and installs Node.js along with NPM.
  8. Install and Secure MariaDB: Installs MariaDB if not present and performs basic security steps equivalent to mysql_secure_installation.
  9. MySQL/MariaDB User Setup: Prompts the user to create a new MySQL/MariaDB user with full privileges.

Prerequisites

  • A Debian-based Linux distribution (e.g., Ubuntu).
  • sudo privileges for the executing user.

How to Use

  1. Download the script.
  2. Make it executable: chmod +x setup.sh
  3. Run the script: ./setup.sh
  4. Follow the on-screen prompts to configure the MySQL/MariaDB user.

or you can install it by run the command on terminal : curl -sSL https://raw.githubusercontent.com/bayuapriansah/script-to-set-up-laravel-environtment-on-ubuntu-22.04/main/setup.sh | sudo bash

License

This script is available under the MIT License, which allows free use, modification, and distribution.

script-to-set-up-laravel-environtment-on-ubuntu-22.04's People

Contributors

bayuapriansah avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.