Skip to main content

Posts

Showing posts with the label ubuntu

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...

Setup Password authentication for website with apache on ubuntu 14.04

In order to create the file that will store the passwords needed to access our restricted content, we will use a utility called htpasswd. This is found in the apache2-utils package within the Ubuntu repositories. Update the local package cache and install the package by typing this command. We will take this opportunity to also grab the Apache2 server in case it is not yet installed on the server:     sudo apt-get update     sudo apt-get install apache2 apache2-utils   Create the Password File We now have access to the htpasswd command. We can use this to create a password file that Apache can use to authenticate users. We will create a hidden file for this purpose called .htpasswd within our /etc/apache2 configuration directory. The first time we use this utility, we need to add the -c option to create the specified file. We specify a username (sammy in this example) at the end of the command to create a new entry within the file:   ...

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...