Helping you work smarter

VS1 – Create a folder above httpdocs for includes etc

You can create the directory by logging in via SSH and using system commands to do that. You should have your root password for the server, then just use a Windows client like PuTTY or Linux standard ssh command. Below you’ll find an example how to do that – I have created the directory for com-pass.biz site in it.

After logging in you’ll see this prompt:
root@vs1:~#

1) Enter the directory where the websites are kept
root@vs1:~# cd /var/www/vhosts/

2) Here’s a listing of all the directories
root@vs1:/var/www/vhosts# ls -l
total 32
drwxr-xr-x 10 root root 4096 Oct 31 14:32 chroot
drwxr-xr-x 20 root root 4096 Nov  2 09:39 com-pass.biz
drwxr-xr-x  5 root root 4096 Oct 31 14:31 default
drwxr-xr-x 20 root root 4096 Oct 31 18:00 emailmarketer.co.nz
drwxr-xr-x  7 root root 4096 Oct 31 18:00 fs
drwxr-xr-x  2 root root 4096 Oct 31 18:00 fs-passwd
drwxr-xr-x 20 root root 4096 Oct 31 18:35 ifa.org.nz
drwxr-xr-x 20 root root 4096 Nov  1 12:58 infoage.co.nz

3) Enter chosen website directory
root@vs1:/var/www/vhosts# cd com-pass.biz/

4) Create the directory inside it and change the owner to appropriate user for ftp access
root@vs1:/var/www/vhosts/com-pass.biz# mkdir includes
root@vs1:/var/www/vhosts/com-pass.biz# chown compass_ftp includes/

5) List to confirm it’s there with right permissions

root@vs1:/var/www/vhosts/com-pass.biz# ls -l

, , ,

Leave a Reply

Your email address will not be published. Required fields are marked *