Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alfiosalanitri/lamp-virtual-host
Bash script to manage apache virtual host on Debian/Ubuntu machines. This script can: create mysql database; create mysql user with privileges; install an application like wordpress, prestashop or laravel; choose different php-fpm version; install ssl certificate
https://github.com/alfiosalanitri/lamp-virtual-host
apache bash lamp mysql php
Last synced: 4 months ago
JSON representation
Bash script to manage apache virtual host on Debian/Ubuntu machines. This script can: create mysql database; create mysql user with privileges; install an application like wordpress, prestashop or laravel; choose different php-fpm version; install ssl certificate
- Host: GitHub
- URL: https://github.com/alfiosalanitri/lamp-virtual-host
- Owner: alfiosalanitri
- License: mit
- Created: 2021-06-06T17:56:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-06T21:28:17.000Z (over 1 year ago)
- Last Synced: 2023-06-06T22:26:22.450Z (over 1 year ago)
- Topics: apache, bash, lamp, mysql, php
- Language: Shell
- Homepage:
- Size: 3.73 MB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NAME
***lamp_virtual_host** - create or delete an apache virtual host with database mysql support, custom fast-cgi php version and
ssl certificate*# DESCRIPTION
With lamp_virtual_host bash script you can add/delete an apache virtual host to/from your LAMP stack. You can also to add a database with custom user associated and choose one of yours fast-cgi php module if installed.If you choose development environment option, the script will add the ssl certificate with mkcert package if installed on your machine.
If you choose production environment, the script will add the ssl certificate with certbot and let's encrypt. Note that this step requires the dns for domain and aliases setted to your server ip address before run the script.You can also choose if auto install Wordpress or Laravel application in your virtual host. (see demo gif)
# INSTALLATION
- `cd /home/your-user/your-directory`
- `git clone https://github.com/alfiosalanitri/lamp-virtual-host.git`
- `sudo chmod +x /home/your-user/your-directory/lamp-virtual-host/lamp_virtual_host`
- `sudo ln -s /home/your-user/your-directory/lamp-virtual-host/lamp_virtual_host /usr/local/bin/lamp_virtual_host`# USAGE
![usage](./demo-usage.gif)# REQUIREMENTS
- Debian Linux distribution like Ubuntu or Debian
- Stack Lamp: Apache (required), Php (required), Mysql (optional)
- php-fpm module (optional)
- [mkcert](https://github.com/FiloSottile/mkcert#linux) for development stage or [certbot](https://certbot.eff.org/) for production stage, to activate the ssl certificate (optional)
- wget, tar, unzip and [composer](https://getcomposer.org/) for application installation (optional)# Applications which may be installed
- Wordpress
- Prestashop
- Laravel
# AUTHOR:
lamp_virtual_host is written by Alfio Salanitri www.alfiosalanitri.it and are licensed under the terms of the GNU General Public License, version 2 or higher.