Category Archives: Ubuntu

To Create a SFTP User in Ubuntu

Steps

To Edit SSH config

To Debug SSH

 

Reference:

  1. https://wisdmlabs.com/blog/create-an-sftp-user-with-limited-access-on-ubuntu/

Change permission for PHP to write storage folder

Under /storage/app/public/ (laravel)

 

New domain for Apache

https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts

Commands

Change permission:

Restart apache:

 

Create a symlink (symbolic link)

Official (but sometimes not working)

Command:(在public資料夾下)

Windows:

Reference:

  1. https://wiki.ubuntu-tw.org/index.php?title=Ln
  2. https://www.phpini.com/linux/ln-create-link-command

Change folder permission

Reference:

  1. 鳥哥
    http://linux.vbird.org/linux_basic/0210filepermission.php
  2. chown、chgrp和chmod的用法
    https://www.itread01.com/content/1523008588.html
  3. https://askubuntu.com/questions/30629/how-can-i-recursively-change-the-permissions-of-files-and-directories
  4. https://en.wikipedia.org/wiki/Ls