Giter Site home page Giter Site logo

adminstock / htan Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 4.0 229 KB

This is a set of scripts for the initial installation and configuration of Debian and Ubuntu server for use as web hosting.

License: Apache License 2.0

C# 0.06% PHP 5.50% CSS 0.40% XSLT 1.48% Shell 92.56%
debian ubuntu administration deployment installer installers configuration configurations ubuntu-server nginx

htan's Introduction

HTAN

This is a set of scripts for the initial installation and configuration of Debian or Ubuntu server for use as web hosting.

Requirements

Server Debian 7 or Debian 8 without pre-installed software

or

Ubuntu Server 16

with Internet access.

Minimum RAM 256 MB.

Recommended RAM 1 GB or more.

Minimum amount of free space for software installation: 2 GB (not necessary to install all).

License

HTAN is licensed under the Apache License Version 2.0.

Install and Using

Debian

# root access is required
su -l root

# update packages
apt-get update && apt-get upgrade

# prerequisites
apt-get install -y less libpcre3 git

# clone htan to /usr/lib/htan
git clone https://github.com/adminstock/htan.git /usr/lib/htan

# create symbolic links to htan
[[ -f /sbin/htan ]] || ln -s /usr/lib/htan/run /sbin/htan
[[ -f /usr/sbin/htan ]] || ln -s /usr/lib/htan/run /usr/sbin/htan

# set permissions
chmod u=rwx /usr/lib/htan/run

# run
htan

Ubuntu Server

# update packages
sudo apt-get update && sudo apt-get upgrade

# prerequisites
sudo apt-get install -y less libpcre3 git

# clone htan to /usr/lib/htan
sudo git clone https://github.com/adminstock/htan.git /usr/lib/htan

# create symbolic links to htan
[[ -f /sbin/htan ]] || sudo ln -s /usr/lib/htan/run /sbin/htan
[[ -f /usr/sbin/htan ]] || sudo ln -s /usr/lib/htan/run /usr/sbin/htan

# set permissions
sudo chmod u=rwx /usr/lib/htan/run

# run
sudo htan

Updating

To update, run the following command:

cd /usr/lib/htan/
sudo git fetch origin && \
sudo git reset --hard origin/master && \
chmod u=rwx /usr/lib/htan/run

or remove and reinstall:

sudo rm -r /usr/lib/htan/

Components

SSH Server

  • Secure SHell (openssh)

Mail Server

  • Postfix - mail transfer agent (MTA)

Web server

  • Apache2
  • Nginx

NOTE: Nginx will forward requests to Apache.

FTP Server

  • Very Secure FTP Daemon (vsftpd)

Revision control

  • Subversion

Application Development

  • PHP5
  • PHP7 for Ubuntu 16+ (official package)
  • PHP v7.0.6 from source code for Debian and Ubuntu
  • Mono ASP.NET

Database

  • MySql
  • PostgreSql

Admin Panel

  • SmallServerAdmin - web panel to manage server
  • phpMyAdmin
  • phpPgAdmin

Tools

  • HTAN.Runner - fastcgi-mono-server daemon
  • Etckeeper - monitor changes to /etc with git
  • Midnight Commander (mc)
  • Nmap - security&port scanner, network exploration tool
  • SYSSTAT

Services

  • eXtended InterNET Daemon (xinetd)
  • NTP - network time protocol

Security

  • Sudo - substitute user and do
  • Fail2Ban
  • IPTables

Configuration

  • adduser
  • rcS - control the behaviour of scripts startup

htan's People

Contributors

alekseynemiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

htan's Issues

Check mono-xamarin.list

Check the existence of the file /etc/apt/sources.list.d/mono-xamarin.list.

Do not overwrite the file if it exists.

PHP7

Make PHP 7 installer.

Apache to optional

Make the installation of Apache optional.

At a minimum, this will affect WebDAV Subversion.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.