Skip to main content

Installation Guide for AdFox

Prerequisites

Before initiating the installation of AdFox, ensure your server meets the following requirements:

  • PHP 8.1 or later
  • MySQL 5.7 or later
  • Essential PHP Extensions:
    • BCMath, Ctype, cURL, DOM, Exif, Fileinfo, GD, Intl, JSON, Mbstring, OpenSSL, PCRE, PDO, Tokenizer, XML

🔸 Follow the instructions below to see how to install AdFox on your server:

  1. Uploading Source Code:

    • After you download AdFox from CodeCanyon, Upload the source-code file to your server's public_html directory or the domain root directory where AdFox will be installed.
  2. Database Creation:

    • Create a new MySQL database and a database user on your server. Make sure to assign this user to the newly created database.
  3. Initiating the Installation:

    • Navigate to your site URL. It will automatically redirect you to the AdFox installation page. Click on 'Start Installation Process.'
  4. Pre-installation Check:

    • You will land on the 'Checking Pre-installation' page, where file permissions are verified. If necessary, set the permission of the specified files to 777. If everything checks out, click 'Go to the Next Step.'
  5. Follow On-Screen Steps:

    • AdFox provides an interactive setup. Simply follow the on-screen instructions which will guide you through database setup, Mail configuration, and other essential settings.
    • After the setup, access the Admin Dashboard at https://your-website.com/admin for administrative tasks and settings. Visit the Marketplace Home at https://your-website.com to view and post classified ads.
  6. Login Credentials (Optional if Demo Data is Enabled):

    • For Marketplace User:
    • For Admin Panel: Use the same login details that you configured during the On-Screen Steps.

⚠️ Important: Once the setup is complete, it is crucial to proceed to the Configuration section. Even if you've enabled demo data, going through the configuration process is mandatory for the application to function correctly. Failure to do so may result in the app not working as intended.

🔸 Note on Demo Data: While the demo images utilized on our platform are sourced from reputable free image providers, they are strictly for demonstration purposes only. When enabling the demo, these images are not included in the package. This is done to respect the terms of the image providers and to prevent any potential misuse by users.

Troubleshooting & Support:

.htaccess Configuration for Shared Hosting

Standard Configuration (Included in the Script)

This is the default .htaccess setting that comes pre-configured with the script. It works for most hosting environments.

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On

# Redirect Trailing Slashes...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>

Alternative Configuration for 404 Error Resolution

Use this configuration if you encounter 404 errors with the standard setup in shared hosting environments.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
  • Should you encounter any issues or need technical support during installation, consult our detailed support documentation.
  • For more personalized assistance, send an email to support@saasforest.com. Additionally, you can reach out via our live chat support, and our dedicated team will be at your service.

⚠️ Note: If you encounter any errors during the installation of AdFox, ensure that you've met all the prerequisites listed above.