There are two ways to install Aikido in Laravel forge.
- Portal: Use the UI and recipes functionality.
- SSH: Use SSH and standard package installation
-
In Forge go to
[server_name] -> [site_name] -> Environment
, add theAIKIDO_TOKEN
andAIKIDO_BLOCKING
environment values and save. You can find their values in the Aikido platform. -
In Forge go to "Recipes" and create a new recipe called "Install Aikido Firewall".
-
Based on the running OS, use the Manual install commands to configure the new recipe and select "root" as user.
Example for Debian-based systems:
cd /tmp
# Install commands from the "Manual install" section below, based on your OS
curl -L -O https://github.com/AikidoSec/firewall-php/releases/download/v1.0.103/aikido-php-firewall.x86_64.deb
dpkg -i -E ./aikido-php-firewall.x86_64.deb
# Restarting the php services in order to load the Aikido PHP Firewall
for service in $(systemctl list-units | grep php | awk '{print $1}'); do
sudo systemctl restart $service
done
- Run the created recipes to install the Aikido PHP Firewall.
-
In Forge go to
[server_name] -> [site_name] -> Environment
, add theAIKIDO_TOKEN
andAIKIDO_BLOCKING
environment values and save. You can find their values in the Aikido platform. -
Use ssh to connect to the Forge server that you want to be protected by Aikido and, based on the running OS, execute the install commands from the Manual install section.
-
Go to
[server_name] -> [site_name] -> Restart
and clickRestart PHP <version>
.