The process to create a symlink for laravel app in cPanel is simple.
Just create a file and fill it, then run it. And you are done. You will see a storage folder in the public folder(wherever you like to create a symlink).
- Name the file whatever. Like here we call it "symlink.php"
- Now fill the file with these.
<?php
symlink('/home/.../classific.gopickhost.com/classific/storage/app/public', '/home/.../classific.gopickhost.com/storage');
- Run this file. Just call the file in your browser address bar.
Ex. Call gopickhost.com/symlink.php or gopickhost.com/dirname/symlink.php
Suppose the "Classific" is the new subdomain and the folder. So, you will tell which folder should be created a copy(symlink). Make sure you have entered the correct path.
Basically you are saying in this file.
symlink('from_folder', 'to_folder');
Top comments (0)