@bhhussain check this one out if it helps:
https://www.nicateliyev.com/post/how-create-symbolic-link-laravel-website-cpanel
After you finish the process remove the file that you will create :)
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
When I try to run the php artisan storage link in CPANEL terminal it is generating the below error
ErrorException : symlink(): No such file or directory
at /home/abc/customer/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:252
248| */
249| public function link($target, $link)
250| {
251| if (! windows_os()) {
> 252| return symlink($target, $link);
253| }
254|
255| $mode = $this->isDirectory($target) ? 'J' : 'H';
256|
Exception trace:
1 symlink("/home/abc/customer/storage/app/public", "/home/abc/customer/public/storage")
/home/abc/customer/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:252
2 Illuminate\Filesystem\Filesystem::link("/home/abc/customer/storage/app/public", "/home/abc/customer/public/storage")
/home/abc/customer/vendor/laravel/framework/src/Illuminate/Foundation/Console/StorageLinkCommand.ph p:35
Can any one please help me.
Thank you
Please or to participate in this conversation.