- Create a file called symlinkcreate.php in the public_html
- Add following code to this file
<?php
$original = '';
$copy = '';
symlink($original, $copy);
echo 'done';
?>
- Original is the the path of the original folder which you want to create symlink from.
- Example:
'/home/serverName/domains/domainName/laravel/storage/app/public'
- Target is the the path to the folder where you need the symlink created to.
- Example:
'/home/serverName/domains/domainName/public_html/storage'
- Open a new tab in your browser.
- Type in
www.domainName.com/symlinkcreate.php
.
- Hit Enter.
- If the screen says 'done'. The symlink is successfully created.
- Else the screen will show error.