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
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 FTP client (e.g., FileZilla) to upload the package to your root directory.
- Extract the files inside the
public_html
folder.
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 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
/install
folder 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 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 ID
andClient Secret
. - Update your
.env
file with the following:Note: The
.env
file 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.