Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

marshal007's avatar

create symlink on server

i created symlink on server via composer and it's ok,but in directadmin this directoy is hidden but website images not loaded??

in images link i have this error:

Forbidden
You don't have permission to access this resource.

actually i changed the root of website

..../public_html to ..../public_html/public :))

where is the best place to deply laravel?

1 ) deploy in a folder before public_html and change index.html?
2 ) or delete all this public_html and private_html in this root of domain and change root to just public?
0 likes
9 replies
marshal007's avatar

@gitwithravish updated, in directadmin in my domain folder i have these folders :

.htpasswd
public_html
private_html(link to public_html)
public_ftp
stats
1 like
gitwithravish's avatar

@marshal007 yes and answer to your question about symlimks is, make sure the link has made properly. In share hosting, where i do not have root access, i create a dummy route to execute artisan commands. You can do somethink like that to create symlink.

Route::get('/servercommands', function(){
    Artisan::call('storage:link'):
});

2 likes
marshal007's avatar

@gitwithravish this is not a shared host,i have virtual server and,because i don't know to how configure it for laravel I bought directadmin license, can you suggest me a tutorial to handle that,to configure server without Cpanel or directadmin?

gitwithravish's avatar

I have not used directadmin ever mate. But i saw that there are a lot of videos and blogs available about this. Just search for that perticular issue on Google and follow the instrictions :)

marshal007's avatar

yeah :) i know that,but I am looking for a basic training course!

gitwithravish's avatar

Subscribe to laracasts if you can :)

One of the best platform for quality training in laravel and related technologies.

Please or to participate in this conversation.