Codigolaranja

Installation

this page you will find the necessary documentation to fully install and configure the product.


Overview

The product installation procedure is straightforward and does not require any special/out of the ordinary tasks. Minimal knowledge of how to work with a database and manage files on a server is required.

Requirements

Make sure your server meets the following requirements before attempting to install or purchase the product.

Keep in mind that other extensions than the ones mentioned here may be required, as these requirements assume you run on a decent, up-to-date server that should have the necessary basic extensions already working.

installation services

I also offer quality installation services at low cost if you don't want to worry about the installation process.

Product Installation - $15

The product installation package includes the following:
Upload the product files to your server (requires a server that is fully configured and ready to go).
Creation and configuration of the database that will be used.
Complete product installation .
You must have a server with a control panel like Plesk, cPanel...etc.

Installation

1. Prepare the database
- Create a new database user for the next new database (optional).

If you don't know how to create a database, watch this video I found on YouTube.

- Create a new database
- Prepare the database host, name, username and password for the next steps.
To start, go to the .zip file and extract all files to public_html or a subdomain on your server!
Upload the contents of the "source" folder to your host.
Make sure you have uploaded the .htaccess file!

2. Prepare the source files
You need to set the permissions (CHMOD) of the folders to 755.
- Edit the db.php file in the main folder.

$url ="https://example.com";

$URL = website domain without the slash ("/") at the end.

$mysqli->connect('HOSTNAME', 'DBUSERNAME ', 'DBPASSWORD', 'DBNAME');

HOSTNAME = enter your host address.
DBUSERNAME = Enter the name of the user who has permission to manage the database.
DBPASSWORD = Enter the password of the user who is allowed to manage the database.
DBNAME = Enter the name of the database.
Edit the MySQL database information and save.

Import/execute the SQL file located in the "database" folder.

Watch this video if you don't know how to import sql files. for phpmyadmin. video link

Admin access
yourwebsiteaddress.com/admincp/
email: admin@test.com
password: admin12345


How to add Cron jobs

Access this video on YouTube and see how to add a cron job

1. Access your server and on the main screen find the Cron Tasks section within the Advanced tab.

2. The Email Cron function sends an email with the result of your command, if any, each time a Cron Task is run.

Now, if you want to use this function, simply enter your valid email address in the Email field and click the Update Email button.

3. To add a new Cron Task in cPanel, you will need to enter some information in the required fields. Guide yourself through the descriptions below.

- Common settings. This vertical menu allows you to select predetermined settings for your command. You can use this option to either define the exact execution time of the command or use custom time measurements in the fields below.
- Minute. Specifies the exact minute value of when your command will be executed.
- Hour. Specifies the exact time when your command will be executed.
- Day. Specifies the exact day when your command will be executed.
- Month. Specifies the month when your command will be executed.
- Day of the week. Specifies the exact day of the week (Monday, Friday, etc.) when your command will be executed.

Command. Here you need to add the Linux command that will be executed at the time specified by you in the fields above. For example, you can use this command to run a PHP script located in your public_html directory at a specific time.

php -f /home/YOUR_CPANEL_USERNAME/public_html/file.php

Cron jobs that should be added:

php -q /home/YOUR_CPANEL_USERNAME/public_html/cron/cron_newsletter.php
php -q /home/YOUR_CPANEL_USERNAME/public_html/cron/cron_highlight_check.php

Once you've filled everything in, simply click the blue Add New Cron Job button. Soon after, you will see a confirmation message on a prominent green background. This will indicate that you have successfully added a Cron Task in cPanel.

Google Analytics Tracking Code

The first step you’ll need to do is find your tracking ID, which is a unique ID created for your Google Analytics account.
To get your tracking ID, follow these steps:
Log in to your Analytics account
On the bottom left-hand side of the page, click Admin
From the left column titled Account, select an account from the dropdown menu
From the middle column titled Property, select a property from the dropdown menu
Under the Property column, click data flow > Web.
select property and copy METRIC ID.
Go to your Admin Panel -> settings -> settings.
Paste the "METRIC ID" in the Admin Panel.
Save your new settings in the admin panel.

Important:
Click "Enable google analytics" to enable tracking.

Google Recaptcha

Go to your Admin Panel -> Settings -> settings.
Set the captcha type to ReCaptcha v2 checkbox.
Go to Recaptcha Admin Panel and Login to your Google account.
Make sure to select the reCAPTCHA v2 type
Fill in the other needed details from the form.
Copy the Site Key and Secret Key and paste them in the Admin Panel.
Save your new settings in the admin panel.


Paypal

The PayPal integration gives your users the ability to pay via PayPal on your website.

Go to Paypal Developer Console and Login to your account after clicking the Log into Dashboard button
Go to REST API apps section and click the Create App button.
Add your own details for the new app and create it.
Switch to Live by clicking the button near your new App's Name.
Copy the Client ID and Secret
Go to your Admin Panel -> Settings -> Payments settings.
Make sure to also switch the Mode to Live and Submit the new settings.

Important:
Don't forget to click on the button "payments via paypal" to activate.

Stripe Settings

Once you are satisfied with the Stripe checkout payment process, you can make the Stripe Payment gateway live to accept payment online from a real customer.
Login to your Stripe account and go to the Developers » API keys page.
Collect the API keys (Publishable key and Secret key) from the Live Data section.
In the config.php file,Specify the Live API keys (Publishable key and Secret key) in Stripe API constants (STRIPE_API_KEY and STRIPE_PUBLISHABLE_KEY).

Errors

Not Acceptable!

An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.
How to Fix the mod_security Error?

1. Contact your Host,
As you have already learned, it is a server-side error and the easiest and safer fix for the error would be contacting your hosting provider. You can contact their support team and explain your issue. They will most likely solve the issue by disabling certain security rule(s) or by whitelisting the requested page.

2. Disable mod_security for Specific URLs
With this method, you can disable mod_security only on specific URLs rather than your entire site, which is a better option in terms of security. You can specify which URLs to match via the regex in the ,statement below.

  <IfModule mod_security.c>
  
  <If "%{REQUEST_URI} =~ m#/admin/#">
  SecFilterEngine Off
  SecFilterScanPOST Off
  </If>
  
  </IfModule>
  

3. How to disable Mod_security through cPanel
Some hosts provide modsecurity option in cPanel also not all hosts where you can disable the mod_security
in to cPanel, under the Security section, click on ModSecurity.