How to create softlink for Laravel

  1. Access your shell through your cPanel dashboard.
  2. Rename OR delete the default 'public_html' directory.
    - To rename: use the command mv public_html public_html.original
    - To delete: use the command rm -f public_html
  3. Determine your Laravel directory.
    For example if the Laravel directory is "laravel" and is located on /home/username/, use below command:
    ln -s /home/user/laravel/public/ /home/user/public_html
    Note: laravel directory should have 750 permission and user:nobody ownership
  • softlink, laravel
  • 0 用戶發現這個有用
這篇文章有幫助嗎?

相關文章

How to initiate Development and Production Environment.

Access your cPanel shell/terminal access. Change the directory to your installation path. Run...