Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devvify/linuxdevkickstart
Automate setup of a comprehensive Linux development environment with scripts for Nginx, Apache, MySQL/MariaDB, PHP, Node.js, Yarn, and Composer.
https://github.com/devvify/linuxdevkickstart
apache2 composer debian dev-e lamp-setup lemp-stack linux nginx nodejs npm php ubuntu web-server yarn
Last synced: about 1 month ago
JSON representation
Automate setup of a comprehensive Linux development environment with scripts for Nginx, Apache, MySQL/MariaDB, PHP, Node.js, Yarn, and Composer.
- Host: GitHub
- URL: https://github.com/devvify/linuxdevkickstart
- Owner: Devvify
- License: mit
- Created: 2024-06-07T23:37:20.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-02T21:37:07.000Z (3 months ago)
- Last Synced: 2024-10-10T20:03:56.038Z (about 1 month ago)
- Topics: apache2, composer, debian, dev-e, lamp-setup, lemp-stack, linux, nginx, nodejs, npm, php, ubuntu, web-server, yarn
- Language: Shell
- Homepage:
- Size: 23.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LinuxDevKickstart
Welcome to **LinuxDevKickstart**! This repository contains a comprehensive script to quickly set up a development environment on a Linux (Ubuntu/Debian) system.
## Features
- **Web Server Setup**: Choose between Nginx and Apache2.
- **Database Server Setup**: Choose between MySQL and MariaDB.
- **PHP Setup**: Install PHP with default version 8.1, with an option to choose 8.2.
- **Node.js and NPM Setup**: Install using Node Version Manager (NVM) for flexibility.
- **Yarn and Composer**: Global installation for efficient package management.
- **Essential Tools**: Git, Curl, Unzip.
- **Customizable PHP Extensions**: Easily add additional PHP extensions as needed.
- **Robust Error Handling**: Ensures smooth installation with clear error messages and logging.## Usage
1. **Clone the Repository**:
```sh
git clone https://github.com/Devvify/LinuxDevKickstart.git
cd LinuxDevKickstart
```2. **Run the Script**:
```sh
./setup.sh
```3. **Follow the Prompts**:
- Choose your preferred web server.
- Choose your preferred database server.
- Select PHP version (default is 8.1, option to choose 8.2).
- Optionally add additional PHP extensions.## Command-Line Arguments
You can customize the setup process by passing the following command-line arguments to `setup.sh`:
| Argument | Description | Example |
| --- | --- | --- |
| `--web-server` | Specifies the web server to use | `nginx` |
| `--db-server` | Specifies the database server to use | `mysql` |
| `--php-version` | Specifies the PHP version to use | `8.2` |
| `--php-extensions` | Specifies the PHP extensions to install | `curl,gd` |
| `--install-dir` | Specifies the installation directory | `/usr/local/bin` |
| `--log-file` | Specifies the log file | `setup.log` |## Usage/Examples
../setup.sh --web-server apache2 --db-server mariadb --php-version 8.1 --php-extensions mbstring,xml,zip --install-dir /usr/local/bin --log-file setup.log
## Customization
You can customize the setup process by choosing from the following options:
### Web Servers:
- Nginx
- Apache2### Database Servers:
- MySQL
- MariaDB### PHP Versions:
- Default: 8.1
- Option: 8.2### PHP Extensions:
- php-mysql (MySQL database support)
- php-pgsql (PostgreSQL database support)
- php-sqlite3 (SQLite database support)
- php-curl (cURL library support)
- php-gd (GD image library support)
- php-mbstring (Multibyte string support)
- php-xml (XML parsing support)
- php-zip (ZIP archive support)
- php-intl (Internationalization support)## Contributing
Feel free to open issues and submit pull requests for improvements or bug fixes. Contributions are always welcome!
## License
This project is licensed under the MIT License. See the [LICENSE](https://github.com/Devvify/LinuxDevKickstart/blob/main/LICENSE.md) file for details.