WAF Documentations
Table of Contents
- 1. Database Creation
- 2. Uploading Files
- 3. Enabling Required PHP Extensions
- 4. Installation Steps
- 5. Final Setup
- 6. Configuring Google OAuth
- 7. Installing on Hostinger (hPanel)
1. Database Creation
1.1 cPanel
- Log in to your cPanel.
- Go to MySQL Databases.
- Create a new database and note the database name.
- Create a new database user and assign it to the database with all privileges.
1.2 Hostinger
- Log in to Hostinger's hPanel.
- Navigate to Databases > MySQL Databases.
- Create a new database and user.
- Copy the database details for later use.
1.3 Plesk
- Log in to your Plesk panel.
- Go to Databases and click Add Database.
- Enter the database name and create a new database user.
- Grant full privileges to the user.
2. Uploading Files
- Download the WAF zip package.
- Use File Manager or an FTP client (e.g., FileZilla) to upload the package to your root directory.
- Extract the files inside the
public_htmlfolder.
3. Enabling Required PHP Extensions
3.1 cPanel
- Log in to cPanel.
- Go to Select PHP Version under Software.
- Select PHP 8.2 or later.
- Enable the following extensions:
- allow_url_fopen
- Imagick
- Ioncube Loader
3.2 Hostinger
- Log in to Hostinger's hPanel.
- Go to Advanced > PHP Configuration.
- Enable the required extensions (Imagick, Ioncube, allow_url_fopen).
3.3 Plesk
- Log in to Plesk.
- Go to PHP Settings.
- Enable required extensions (Imagick, Ioncube, allow_url_fopen).
4. Installation Steps
- Open your browser and visit
yourdomain.com/install/. - The installer will check the server requirements (PHP 8.2+, allow_url_fopen, Imagick, Ioncube, etc.).
- Enter the database credentials created earlier.
- Provide a valid license key.
- Click Install and wait for the setup to complete.
5. Final Setup
- Verify the installation by visiting
yourdomain.com. - Delete the
/installfolder for security purposes. - Your website is now ready!
6. Configuring Google OAuth
- Go to Google Cloud Console and create a new project.
- Navigate to APIs & Services > Credentials.
- Click Create Credentials and select OAuth Client ID.
- Set the application type to Web Application and enter a name.
- Under Authorized Redirect URIs, add:
https://yourdomain.com/oauth/google/callback. - Click Create and copy the
Client IDandClient Secret. - Update your
.envfile with the following:Note: The
.envfile already includes placeholders for OAuth settings at the bottom. You only need to fill in the values.GOOGLE_CLIENT_ID=your-client-id GOOGLE_CLIENT_SECRET=your-client-secret - Save the file.
7. Installing on Hostinger (hPanel)
The following steps explain how to perform a complete WAF installation on Hostinger using hPanel:
- Open hPanel and select the domain you want to use.
- Go to Files > File Manager.
- Enter the
public_htmlfolder and upload the WAF ZIP file you downloaded earlier. - Once the upload is complete, right-click the ZIP file > Extract.
- Go to Databases > MySQL Databases and create:
- Database Name
- Database User
- Password
- Then go to Advanced > PHP Configuration:
- Select PHP version 8.2 or later.
- Make sure the following extensions are enabled:
- Imagick
- Ioncube Loader
- allow_url_fopen
- Open your browser and visit
https://yourdomain.com/install/. - Fill out the installation form using the database information created earlier.
- Enter your License Key and proceed with the installation.
- After successful installation:
- Delete the
/installfolder for security reasons. - Visit your domain to confirm the website is active.
- Delete the
Tip: If the page does not load after upload, make sure the .htaccess file has been extracted and the PHP mode is correct (PHP 8.2).