Pre-requisite:
- This is for WINDOWS machine
- Any shell environment like gitbash
- Download wordpress at your default download location: https://wordpress.org/wordpress-5.1.1.tar.gz
- Create directories:
- "C\Mylab"
- "C\Mylab\xampp\apps
- XAMPP install under: "C\Mylab\xampp"
Clone repository
- Go to C:\MyLab\xampp\apps\
- Right click >> git-bash here
- Clone Git repo: git clone https://github.com/ashish26j/Xampp_Script.git
Wordpress Preparation
- Go to C:\MyLab\xampp\apps\Xampp_Script
- Right click >> git-bash here
- copy wordpress-5.1.1.tar.gz to C:\MyLab\xampp\apps\Xampp_Script
cp <YOUR_DOWNLOAD_LOC>/wordpress-5.1.1.tar.gz Xampp_Script
Step to Run Script:
- Go to C:\MyLab\xampp\apps\Xampp_Script
- Right click >> git-bash here
- Run: ./create_site.sh appname yes/no
NOTE:
- create_site.sh $2 parameter is expecting 'yes' or 'no' as value. Depending on this, it decides weather site should be wordpress type or not. eg ./create_site.sh app1 yes : app1 will start as wordpress site ./create_site.sh app2 no : app2 will start as normal PHP site