Installation
Requirements
- A working DDEV installation
- macOS, Linux, or Windows with WSL2
curlandunzipavailable in your shell
Install
Run the following command in your terminal:
/bin/bash -c "$(curl -fsSL https://code.kreijveld.com/renekreijveld/ddev-joomla/raw/branch/main/installer/ddev-joomla-installer.sh)"
The installer will:
- Create the configuration directory
~/.config/ddevjoomla/ - Prompt you for your preferred settings:
- Root folder where your Joomla sites will live (default:
~/Development/Sites) - Document root subfolder created inside every project folder (default: empty, meaning the project folder itself is the document root)
- Backup folder where backups will be stored (default:
~/Development/Backups) - Default webserver type (
nginxorapache)
- Root folder where your Joomla sites will live (default:
- Download all scripts from the repository and install them to
/usr/local/bin/ - Make all scripts executable
- Add the required
gositeshell function to your shell startup file (~/.zshrcfor zsh,~/.bash_profilefor bash on macOS,~/.bashrcfor bash on Linux) - Create an installation log at
~/.config/ddevjoomla/ddev-joomla-install.log
Note: The installer automatically creates backups of any existing configuration files and scripts before making changes.
Installing from a local zip file
If you downloaded and extracted a zip of the repository instead of running the command above (for example on a machine without direct access to the Forgejo repository), use installer/ddev-joomla-installer-local.sh instead. It installs the scripts from your local copy of the repository rather than downloading them:
cd installer
./ddev-joomla-installer-local.sh
It asks the same questions, creates the same config file and log, and installs the same scripts to /usr/local/bin/ — the only difference is where the scripts come from. It must be run from its location inside the extracted repository, since it looks for the scripts in ../src/Scripts relative to itself.
After Installation
Restart your terminal (or run source on the startup file the installer reported) to activate the gosite shell function.
Verify the installation by running:
jddev
This will display all available scripts and their options.
To check the configuration the installer wrote and whether all scripts were installed correctly, run:
jddev-status
See jddev-status for an example of its output.
Configuration
The installer creates a configuration file at ~/.config/ddevjoomla/config. You can edit this file at any time to change your defaults. See the Configuration page for details.
Uninstall
To remove the ddev-joomla scripts again, run:
/bin/bash -c "$(curl -fsSL https://code.kreijveld.com/renekreijveld/ddev-joomla/raw/branch/main/uninstaller/ddev-joomla-uninstaller.sh)"
The uninstaller will:
- Remove all installed ddev-joomla scripts from
/usr/local/bin/ - Remove the
gositeshell function from your shell startup file (a backup of that file is made first) - Ask whether you also want to remove the configuration directory
~/.config/ddevjoomla/, which holds the config file and the log files
Your Joomla projects, websites, databases and backups are never touched by the uninstaller.