nordicmaterial
4/27/2019 - 12:00 PM

Symlink on webserver: point /www to D8 /web subfolder

// COMBELL: FIRST NAVIGATE TO ROOT FOLDER
// THEN, RENAME THE WWW FOLDER TO "WEBSITE"

// NOW CREATE THE SYMLINK:
// Combell: /data/sites/web/charbon-filmbe is the root folder

ln -s /data/sites/web/charbon-filmbe/website/web /data/sites/web/charbon-filmbe/www

ln -s /data/sites/web/side-showbe/drupalwebsite/web /data/sites/web/side-showbe/www

ln -s /data/sites/web/adirectoreu/drupalwebsite/web /data/sites/web/adirectoreu/www

// TEST THE SYMLINKLINK:
ls -alih

// THE SYMLINK WILL APPEAR AS A FILE IN DE COMMANDLINE
// CD TO ROOT, THEN
ls

// YOU WILL SEE "www". This is the symlink, not a folder
// IF YOUR SYMLINK WAS WRONG:
rm www

// This removes the symlink and you can make a new one