Installation on cPanel
Please follow the following steps
Where we want it
Main Domain
https://yourdomain.com
Disable access to subfolder
please make sure that no one can access
/public_html
from your main domain, only/public_html/public
should be accessible.You can do this by editing your web server config or use the symbolic link.
For symbolic link, delete the
public_html
folder and upload file to some other folder. Connect via SSH or access cPanel Terminal to create symbolic linkshcd /home/cpaneluser ln -s /home/cpaneluser/uploadedfile/public /home/cpaneluser/public_html
This command creates a symbolic link named public_html that points to your Laravel project's public directory.
Subdirectory/Subfolder
https://yourdomain.com/subfolder
Disable access to subfolder
please make sure that no one can access
/subfolder
from your main domain, only/subfolder/public
should be accessible.You can do this by editing your web server config or use the symbolic link.
For symbolic link, delete the
public_html
folder and upload file to some other folder. Connect via SSH or access cPanel Terminal to create symbolic linkshcd /home/cpaneluser/subfolder ln -s /home/cpaneluser/uploadedfile/public /home/cpaneluser/public_html/subfolder
This command creates a symbolic link named public_html that points to your Laravel project's public directory.
Subdomain
https://subdomain.yourdomain.com
Root Path
Please set the subdomain root path to
public
folder like,/home/cpaneluser/sma4.tec.sh/public
=> Good nothing to worryOR
/home/cpaneluser/public_html/sma4.tec.sh/public
=> please make sure that no one can accesshttp://yourdomain.com/sma4.tec.sh/
No SSH or Terminal?
For creating symbolic link for public_html and subfolder installation
If you don't have access to SSH or Terminal then you can create Symbolic Link via PHP Script:
- Create a new PHP file (e.g., createsymlink.php) in your uploaded folder.
- Add the following code to the file:
<?php
$targetFolder = '/home/cpaneluser/uploadedfile/public';
$linkFolder = '/home/cpaneluser/public_html';
if (file_exists($linkFolder)) {
unlink($linkFolder); // Remove existing public_html if it's a file or empty directory
}
if (symlink($targetFolder, $linkFolder)) {
echo 'Symbolic link created successfully.';
} else {
echo 'Error while creating symbolic link.';
}
?>
Upload Files
- Login to your cPanel and click File Manager
- Select
public_html
folder and click Upload - Select the SMA download file and click Select File
- Once uploaded, go pack to
public_html
folder - Right click on uploaded zip and Extract
- If it's extracted in the folder then go to that folder
- Select all files and Move to
public_html
Create Database and User
- From the cPanel Home and click MySQL Database in Databases section
- Add new database
- Add new user and note the password
- Add user to database -> Select database and users and click Add
- Verify the database and user then select All Privileges and click Make Changes
Access installer in browser
You can access the installer by adding
/install
at the end of your domain.install
is not a folder but route.sh# Installer URL Domain: https://yourdomain.com/install Subfolder: https://yourdomain.com/subfolder/install Subdomain: https://subdomain.yourdomain.com/install
If you can't access the installer then there is something wrong with path or there are some error causing this. Please double check the upload. If that is okay then check the if there is any error logged in the
storage/logs/
folder.If SSL enabled and not configured correctly that could result in redirect error too.
Get your license file as purchase verification, we already have database details (installation step 1)
Installer checks for php extensions required along with write-able directories.
If it shows any errors, please fix them by installing/enabling the extension or setting the correct permission on directories then try again.
Please provide the details of your purchase, database, and user account (installation step 3).
For purchase verification, the username is Envato username that you use to login to codecanyon.net and themeforest.net The purchase code is in your license file, please download the license to get purchase code.
If you get server error, please check the Laravel logs in the
storage/logs/
folder and if you don't understand the error, please ask question at support portal with error details.Please don't share any private data in questions, if you need to share any private data then you should ask question then add private reply with confidential information.
Complete the installation by pressing the Finalize button.
Didn't understand any step?
If you need further assistance, please validate your purchase code at support portal and ask question there.
Want to request installation service?
We offer installation service for $20.00, you can Open Ticket to request installation.