Setup unmanaged VPS part II : ftp server, ftp user and virtual host, user account

Setup unmanaged VPS part II : ftp server, ftp user and virtual host, user account

This post is continued part of Setup unmanaged VPS with Litespeed Php and mySQL

This time we will setup pure-ftpd ftp server, host multiple domains with litespeed webserver and create user account

1. Install pure-ftpd FTP Server

# cd /opt

# wget http://download.pureftpd.org/pure-ftpd/releases/pure-ftpd-1.0.22.tar.gz

# tar xvf pure-ftpd-1.0.22.tar.gz

# ./configure

# make install-strip

pure-ftpd has been installed, now start it

# /usr/local/sbin/pure-ftpd &

2. Create virtual host in litespeed to host multiple domains

For example, i will host zone23.co.cc with username zone23

Let create zone23 first

# gorupadd zone23

# useradd zone23 -g zone23

set password for user zone23 :

# passwd zone23

Enter new password for user zone23

user zone23 was created, and /home/zone23 was automatically created too

Create public_html, cgi-bin and logs folder under /home/zone3c and change its ownership to user zone23

# mkdir /home/zone3c/public_html /home/zone3c/cgi-bin /home/zone3c/logs

# chown -R zone23:zone23 /home/zone23

Now login to your litespeed admin panel

Click on ConfigurationVirtual Host TemplatePHP_SuEXEC

Hit General tab and click edit on Template Setting

Enter data like shown on this picture :

vh_template
save it, and do Graceful Restart (Actions – Graceful Restart)

Back to Configuration – Virtual Host Template – PHP_suEXEC. HIt Add on bottom right corner. Enter data like in this picture below to add domain http://zone23.co.cc :

add domain

Click Save, and do Graceful Restart. Now zone23.co.cc has been added to litespeed virtual host, with details like this :

Domain : zone23.co.cc

FTP server : zone23.c0.cc

Username : zone23

Password : your new password

Home Dir : /home/zone23

Http home dir : /home/zone23/public_html

Repeat these step to add other domain.

1 Comment »

  1. avatar comment-top

    cara login ke consolenya gmn ya?? kok di VPS ku ga ada? pa cman ga tau saya.

    how to login in console mode?? I cant find it in my VPS.

    comment-bottom

RSS feed for comments on this post. TrackBack URL

Leave a comment