How to create a symbolic link to SBM

0

Could you please give me some guidance on how to create a symbolic link?

I uploaded SBM to my cPanel outside of Public_html
Now I just need to link the sbm.php file (symbolic link) to the sbm folder where the files are stored. Below is the code I am using in the sbm.php file to link to the sbm folder.


<?php
$targetFolder = $_SERVER['DOCUMENT_ROOT'].'-s /sbm/public_html/';
$linkFolder = $_SERVER['DOCUMENT_ROOT'].'/public_html/sbm';
symlink($targetFolder,$linkFolder);
echo 'Symlink process successfully completed';
?>


Question Resolved For: Simple Business Manager - Invoicing Solution 0 Votes 3 Answers 2k Views
Asked by Tony 3 years ago

0

Answered by Mian Saleem 3 years ago

Hello,

The symbolic link means that you need to delete the public_html folder and create it with link like ln -s /path/to/sbm/public /home/user/public_html Please only do it if you know what are you doing and don't have any other site/data in the pubic_html folder.

Other options

1. Main Domain

If you want to install at main domain you can upload the files to public_html folder and redirect access to public folder by creating the .htaccess file like

DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

# It will redirect all request to public folder unless it to public folder. 

2. Subdomain

You can use the subdomain and the path to /path/to/sbm/public If your cpanel don't allow the subdomain path outside of public_html folder than you can upload the file in the public_html folder and deny access to /path/to/sbm id the request is not to public folder.


The best option to host Laravel is on VPS (Virtual Private Server). There are many cloud VPS server providers such as AWS, DO, Vultr There are quite many options available to manage server such as Laravel Forge, Ploi & Cloudways etc. I am using Laravel Forge with AWS to host the demo.

Thank you

0

Answered by Tony 3 years ago

I think it would be easier to just pay you guys to install the script for me. How would I go about doing that?

0

Answered by Mian Saleem 3 years ago

Hello,

You can open ticket to request installation. It will require you to have at least $20 balance. If you don't have, you can buy credit.

We will require 12 - 24 hours to complete the installation.

Thank you

We use Cookies

We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.