1.3 KiB
1.3 KiB
PHPStarter CLI
A lightweight command‑line tool for generating new PHP websites based on the PHPStarter template.
You get a fully working PHP project in seconds.
Requirements
- Linux environment
- Apache2
- Git
- Bash
- PHP
- Composer
- MariaDB
Installation
Clone this repository:
git clone https://gitea.ramoncaballero.dev/mon/phpstarter-cli.git
cd phpstarter-cli
Make the script executable:
chmod +x phpstarter.sh
Usage
Create a new PHP site:
sudo ./phpstarter.sh <mysite>
This will clone the PHPStarter template, configure everything automatically, and set up a ready‑to‑use local development environment for your new site.
Your new site will be available at:
http://mysite.local
Remove a Site
sudo rm -rf /var/www/sites/mysite
sudo a2dissite mysite.conf
sudo rm /etc/apache2/sites-available/mysite.conf
sudo systemctl reload apache2
sudo sed -i '/mysite\.local/d' /etc/hosts
You may also remove the database it manually if you no longer need it.