Skip to main content

Posts

Showing posts with the label linux

Configure Vsftpd with virtual users in Ubuntu 14.04

vsftpd is a GPL licensed FTP server for UNIX systems, including Linux. It is secure and extremely fast. It is stable. Don't take my word for it, though. Below, we will see evidence supporting all three assertions. We will also see a list of a few important sites which are happily using vsftpd. This demonstrates vsftpd is a mature and trusted solution. To configure vsftpd server  with virtual users we need to enable PAM for vsftpd. apt-get install vsftpd libpam-pwdfile Now configure vsftpd to use PAM authentication vim  /etc/vsftpd.conf then paste in the following listen=YES anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 local_root=/var/www chroot_local_user=YES allow_writeable_chroot=YES hide_ids=YES #virutal user settings user_config_dir=/etc/vsftpd_user_conf guest_enable=YES virtual_use_local_privs=YES pam_service_name=vsftpd nopriv_user=vsftpd guest_username=vsftpd Now create users - You can either use a data...

How to install Litespeed web server on Ubuntu 14.04 (LTS)

LiteSpeed Web Server (LSWS) is a high-performance Apache drop-in replacement. LSWS is the 4th most popular web server on the internet and the #1 commercial web server. Upgrading your web server to LiteSpeed Web Server will improve your performance and lower operating costs. This guide shows you how to install a litespeed webserver on an Ubuntu 14.04 (LTS) server. Before you begin update your system  - # sudo apt-get update && sudo apt-get upgrade   Installation must be performed in a command line terminal. For testing purposes, LiteSpeed Web Server can be installed into a home directory by a non-privileged user. For production use, it should be installed into a system directory. Download latest litespeed package from there website - wget https://www.litespeedtech.com/packages/5.0/lsws-5.0.18-ent-x86_64-linux.tar.gz Decompress the package into a convenient location: tar -xvf  lsws-5.0.18-ent-x86_64-linux.tar.gz get your production lice...

LAMP on Ubuntu

LAMP Configuration on Ubuntu A LAMP (Linux, Apache, MySQL, PHP) stack is a common web stack used for hosting web content. This guide shows you how to install a LAMP stack on an Ubuntu 14.04 (LTS) server. Before you begin update your system  - # sudo apt-get update && sudo apt-get upgrade   Apache Install and Configure sudo apt-get install apache2 Configure Virtual Hosts There are several different ways to set up virtual hosts; however, below is the recommended method. By default, Apache listens on all IP addresses available to it. Within the /etc/apache2/sites-available/ directory, create a configuration file for your website, example.com.conf , replacing example.com with your own domain information:   vim /etc/apache2/sites-available/example.com.conf         <VirtualHost *:80>    ServerAdmin webmaster@example.com ServerName example.com ServerAl...

Sendmail Installation & configuration on centos with virtual user and domains

The Sendmail program is a very widely used Mail Transport Agent (MTA). MTAs send mail from one machine to another. Sendmail is not a client program, which you use to read your email. Sendmail is a behind-the-scenes program which actually moves your email over networks or the Internet to where you want it to go..  This guide show you have to install and configure sendmail with virtual user and domains -  Installation  - Check if sendmail is installed or not: # rpm –qa | grep sendmail If it is not installed, then install the sendmail package using following command: # yum install sendmail sendmail-cf By default sendmail listen on local interface i.e 127.0.0.1 To configure the sendmail to listen to all interface at the host, just comment the following line in “sendmail.mc”: # vi /etc/mail/sendmail.mc From: DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl ...

How To Block Removable drive in linux

For Block Removable disk like pen drive you have to run only one following command - Open terminal -      #sudo chmod 700 /media For unblock -     # sudo chmod 755 /media