Installation FAQ's

Frequently Asked Questions (FAQs)

Remove Public From URL

To remove the public from the URL create a .htaccess file in the root folder and write following code.

<IfModule mod_rewrite.c>
	RewriteEngine On 
	RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

To remove the public from URL and Force HTTPS redirection create a .htaccess file in the root folder and write the following code.

<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteCond %{HTTPS} !=on
	RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] 
	RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

For more detail read article : https://stackoverflow.com/questions/23837933/how-can-i-remove-public-index-php-in-the-url-generated-laravel

How to resolved Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.13".?

Reason:

PHP version is not supported.

Solution:

Please make sure your domain should be PHP version 8.1.13

if PHP 7.4 then change to PHP 8.1.13, From version 4.9 its not support php 7.4

To change the PHP version in cPanel, you can follow these steps:

  1. Log in to your cPanel account: Open your web browser and go to your website's cPanel login page (usually yourwebsite.com/cpanel). Enter your login credentials and click "Log in".

  2. Go to the MultiPHP Manager: Once you are logged in, you will see a variety of options. Scroll down and click on the "MultiPHP Manager" option.

  3. Select the domain you want to change the PHP version for: On the MultiPHP Manager page, select the domain you want to change the PHP version for from the drop-down menu.

  4. Choose PHP version 8.1: Once you have selected the domain, you will see a list of available PHP versions. Choose the version 8.1.13 you want to use and click on the "Apply" button.

  5. Verify the PHP version 8.1: You can check that the PHP version has been changed by creating a PHP file with the following content: "<?php phpinfo(); ?>" and then load it in your browser.

It's important to note that, Before you change the PHP version, it's a good idea to check that your website and any installed scripts are compatible with the new version. And also, make sure to backup your website and database before changing any settings.

Hide or Denied Access .env

To Hide or Denied Access .env and create .htaccess file in the root folder and write the following code.

# Disable Directory listing
Options -Indexes
# block files which needs to be hidden, specify .example extension of the file
</FilesMatch "^\.env">
    Order allow,deny
    Deny from all
<//FilesMatch>

Debug Mode?

Debug mode will help you to track the error on your website. It is not all preferred to turn the debug mode on live site for a very long time.

How to turn to debug mode on

  • Login to your FTP account.

  • Open and edit .env file.

Change

APPi_DEBUG=false

To

APP_DEBUG=true

Save and upload the file.

false means debug mode is OFF true means debug mode is ON

How to solve 419 Error?

A 419 error in Laravel can occur when a user's session has expired and sessions not save. Laravel uses the 419 status code to indicate that the user's session has expired and sessions not save.

To fix this error, you can try the following:

Its not script issue.

  1. Follow mentioned PHP INI settings.

  2. Increase the session lifetime: You can increase the session lifetime in your config/session.php file to prevent the session from expiring too quickly.

  3. Check for session data integrity: Ensure that the session data is not lost or corrupted by checking that the session data is still present in the storage.

  4. Check for Authentication : Ensure that the user is authenticated before allowing access to protected routes or resources.

Make sure PHP version 8.1.13 and use all following PHP settings. It shows due to the session not save in hosting.

then refresh the page if an error is not resolved in some cases the goto back step then run the script

If still you are experiencing an 419 error, you should contact your hosting provider or web administrator to troubleshoot the problem and find a solution. They will be able to examine the server logs to determine the cause of the error and take appropriate action. its not script related issue.

How to remove the public from the URL?

Best picture sizes to be use all through the project ?

  • Landing Page: 1440 x 675px

  • Home Slider/ Front Setting Slider : 1534 x 450px

  • Thumbnail image dimensions: 300 x 450px

  • Poster image dimensions: 300 x 169px

  • Genre image dimensions: 300 x 300px

  • AudioLanguage image dimensions: 300 x 300px

  • Logo dimensions: 200 x 63px

  • Favicon dimension: 32 x 32px

  • LiveTV dimension: 200 x 36px

How to resolve the Request Timeout error?

Reason:

The Server is not able to complete the request because max_execution_time is not properly set.

Solution:

  • Login into cPanel in software section MultiPHP INI Editor then, In the Basic Mode select a location (select a domain or subdomain where your script is located) and then set the max_execution_time.

How Many Domain do we use it or Access Denied?

Solution:

You use it only one domain at a time. Its assume localhost or Any IP as a domain. For a change to the domain sends us E-Mail with a new domain name, Envato user name, and purchase code.

How to resolve the Access denied issue?

Solution:

Make sure some license file available in your hosting

  • public -> ddtl.txt -> (value: yourdomain.com)

  • public -> config.txt -> (value: 1)

How to set up Google Social Login and What is Google Social Login Callback URL?

Setup Google Social login: https://www.cozmoslabs.com/docs/profile-builder-2/add-ons/social-connect/create-google-app-social-connect/

login with admin , Go to admin dashboard -> Site Settings->Social Login Setting enable the Google login and paste the Google Client ID , Google Secret ID and Google Callback URL / Google Redirect URL.

Callback URL:

if your domain is like that https://yourdomain.com/ then the callback URL is https://yourdomain.com/auth/google/callback

and

if your domain contents public like that https://yourdomain.com/public then the callback URL is

How to Setup Facebook Social Login and What is Facebook Social Login Callback URL?

Setup Facebook Social Login: https://docs.ultimatemember.com/article/20-social-login-facebook-app-setup

login with admin , Go to admin dashboard -> Site Settings->Social Login Setting enable the Facebook login and paste the Facebook Client ID , Facebook Secret ID and Facebook Callback URL / Facebook Redirect URL.

Callback URL:

if your domain is like that https://yourdomain.com/ then the callback URL is https://yourdomain.com/auth/facebook/callback

and

if your domain contents public like that https://yourdomain.com/public then the callback URL is

What is GitLab Social Login Callback URL?

login with admin , Go to admin dashboard -> Site Settings->Social Login Setting enable the Gitlab login and paste the Gitlab Client ID , Gitlab Secret ID and Gitlab Callback URL / Gitlab Redirect URL.

if your domain is like that https://yourdomain.com/ then the callback URL is

https://yourdomain.com/auth/gitlab/callback

and

if your domain contents public like that https://yourdomain.com/public then the callback URL is

What is Amazon Social Login Callback URL?

login with admin , Go to admin dashboard -> Site Settings->Social Login Setting enable the Amazon login and paste the Amazon Client ID , Amazon Secret and Amazon Callback URL / Amazon Redirect URL.

if your domain is like that https://yourdomain.com/ then the callback URL is

https://yourdomain.com/auth/amazon/callback

and

if your domain contents public like that https://yourdomain.com/public then the callback URL is

How to add Google drive videos on Nexthour?

For Google Drive Link need embedded URL and make sure your Google Drive Link permission to view it publicly.

AWS Some link works like: https://s3.amazonaws.com/xxxmoviewxxx/movie/moviename/moviename.mp4

Copy and paste links to movies/ TV series custom URL.

Why Coupon isn't working?

Solutions:

Make sure when you created a coupon that the time coupon amount is less than of plan amount that the condition coupon will be working.

How to increase the upload file size of the media manager?

Solutions:

Go to your project directory files, public folder->vendor folder->midia folder, in this midia.js file edit this line as per your desired upload file size.

For example, you want to upload a max file size is 1GB then write

maxFilesize:1024

Because 1GB = 1024MB

If when translating the word it doesn't save it?

Solution:

It's a server-specific issue. Go to your project directory->configf folder->translation.php if you have

'ui_url' => 'languages',

then, replace with

'ui_url' => '/languages',

or if you have

'ui_url' => '/languages',

then, replace with

'ui_url' => 'languages',

If you want to do it manually then you can easily do that Go to your project directory->resources->lang folder. Here, which language do you want to change the .json (ex. en.json, fr.json, etc) file is available you can change in the .json file and save it.

No Application Encryption key has been specified

To solve this issue you will have to check APP_KEY which is located within your . env (environment) file. don't change or remove it. also check .env file not missing.

.env missing

Most of times .env file not missing its just hide , so please make sure its not hide.

cPanel show files Quick Steps:

  1. Log into cPanel & click “File Manager” under the files panel.

  2. Click “settings” in the top right of the file manager.

  3. Choose the Document Root (usually you can leave this as the default)

  4. Check the box titled “Show Hidden Files (dotfiles) & click Save.

MYSQL or Database not creating table

Please check database privilege. it must be ALL PRIVILEGES. if you don't know how to give it please contact to hosting provider.

Class 'ZipArchive' not found

You are getting this error because you don't enable a zip archive extension on your server. enable zip archive extension and issue will resolved. if you don't know how to enable it please contact to hosting provider. its not script related error.

curl_init error

You are getting this error because you don't enable a curl extension on your server. enable curl e extension and issue will resolved. if you don't know how to enable it please contact to hosting provider. its not script related error.

To Enable cURL Using EasyApache on WHM:

  1. Log in to WHM as the 'root' user.

  2. Either search for "EasyApache" or go to Software > EasyApache

  3. Scroll down and select a build option (Previously Saved Config)

  4. Click Start "Start customizing based on profile"

  5. Select the version of Apache and click "Next Step".

  6. Select the version of PHP and click "Next Step".

  7. Chose additional options within the "Short Options List"

  8. Click Exhaustive Options List.

  9. Find and select the option for cURL.

  10. Click curl, and then click Save and build.

404 error

A 404 error is an HTTP status code that indicates that a requested web page or resource cannot be found on a server. 404 means file not fount, its not script issue.

This can happen for a number of reasons, including:

If still you are experiencing an 404, you should contact your hosting provider or web administrator to troubleshoot the problem and find a solution. They will be able to examine the server logs to determine the cause of the error and take appropriate action. its not script related issue.

403 error

A 403 error is an HTTP status code that indicates that the client (i.e. the user's browser) is not authorized to access the requested resource. This error message is often displayed when a user attempts to access a website or webpage that they do not have permission to view. Your user who did not get permission. So you edit the user role and then update

Certain users to access certain pages or sections. In this case, a 403 error message may be displayed if the user is not authorized to view the requested resource.

Payload error

A payload error in Laravel is typically caused by an issue with the data being passed to the server during an API request. This can be caused by a number of factors, including missing or incorrect data, invalid data types, or incorrect formatting of the data.

Please check File and folder permissions for Shared Hosting

public_html 775 (public_html folder is root folder in shared hosting)

if using subdomain then Subdomain folder 775

File and folder permissions for VPS

/bootstrap 777 /public 777 /storage 777 /public/images 777 /public/config.txt 777 .env 777

Last updated