Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/IsekaM/wsl-php-install-script
A script that installs all the depencies for running a Laravel app within WSL
https://github.com/IsekaM/wsl-php-install-script
automation composer laravel php python ubuntu wsl
Last synced: 2 months ago
JSON representation
A script that installs all the depencies for running a Laravel app within WSL
- Host: GitHub
- URL: https://github.com/IsekaM/wsl-php-install-script
- Owner: IsekaM
- Created: 2022-07-02T20:11:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-06T19:08:04.000Z (over 2 years ago)
- Last Synced: 2024-07-30T21:04:29.260Z (5 months ago)
- Topics: automation, composer, laravel, php, python, ubuntu, wsl
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WSL PHP Install Script
This is a script made using Python that automates the installation of PHP, Composer, MySQL, as well as NodeJS on Ubuntu 20.04/22.04. I built this with Laravel developers in mind as I am one. If you wish to extend this script, please feel free to fork it and add to it 😃.## Installation of Programs
Use the `./path/to/script.py install` command along with any of these arguments to install the programs you wish `--php`, `--mysql`, `--node=[version]` or `--all`. You can run `./path/to/script.py --help` to get more info.## Restoring MySQL Database from a file
I usually backup my databases to a file when I am about to reinstall WSL for obvious reasons. Restoring a database isn't so hectic but I am "efficient" so I decided to add this feature to the script. To restore your database from a file, please run this command `./path/to/script restore-db path/to/db`.## To be done
- Add error handling when a command fails to run
- I can't think of anything else. Let me know if you have any ideas 🤷🏾♂️