The document describes how to build a secure mail server on AWS using various services like EC2, RDS, SES, and Route53. It involves setting up a MySQL RDS instance for the database, a Postfix server configured to use the RDS backend for mail storage and delivery, proxy servers using Nginx to queue incoming mail, and a load balancer and DNS configuration to make the system highly available. Credentials are generated through SES and the Postfix server is configured to relay through SES. This provides a redundant and scalable email infrastructure in the cloud.
Deploying your rails application to a clean ubuntu 10Maurício Linhares
Learn how you can configure a new Ubuntu 10.04 machine to run your rails application with Nginx and Unicorn in a simple way including security setup and monit monitoring.
The following article is the best simplified steps that will help you install and configure LEMP stack. its written by one of the genius engineers or Rootgate.com
Apache is an open source web server software that runs on over half of all internet servers. The document provides instructions on downloading, installing, and configuring Apache on Windows and Linux systems. It also lists and describes 30 different Apache configuration directives that can be used to customize the server setup.
Drupal camp South Florida 2011 - Introduction to the Aegir hosting platformHector Iribarne
Aegir is a hosting platform for deploying, managing, and maintaining Drupal sites. It makes it easy to install Drupal distributions and uses Drush for backend functionality. The document provides step-by-step instructions for installing Aegir on a clean Linux Ubuntu server, including setting up the server with LAMP, installing required packages, configuring Aegir, and obtaining the Aegir control panel. It concludes by explaining how to download Drupal using Aegir after installation is complete.
This document provides instructions for installing Apache, MySQL, PHP, and Perl on Windows. It details downloading and installing each application, including accepting defaults, modifying directories during installation, and testing functionality. Configuration steps are also described, such as editing files to integrate Apache and PHP and enable MySQL support in PHP. The summary focuses on the core installation and configuration process across the applications.
Apache is a free and open-source web server software that can be installed on Linux and other operating systems. It provides users with web serving, security, and e-commerce functionality out of the box. The document outlines the step-by-step process to download, install, configure, and run the Apache web server on a Linux system. This includes creating directories, downloading and extracting Apache files, configuring settings in the httpd.conf file, and testing the installation by accessing the server locally in a web browser. Virtual hosting is also described as a way to host multiple domains from a single server using Apache.
How To Deploy A Cloud Based Webserver in 5 minutes - LAMPMatt Dunlap
Simple tutorial showing how easy it is to deploy a cloud based webserver with apache, mysql and php in about 5 minutes. You can also watch the video for this slideshow at http://www.youtube.com/watch?v=3eqUZ6fzpOM
This document provides best practices for using Ansible effectively and efficiently. It discusses organizing Ansible code through roles and playbooks with proper structure and naming. It emphasizes using Ansible modules over shell/command modules whenever possible. Other tips include separating configuration from provisioning, optimizing templates, and using variables and groups to simplify automation. The overall message is to strive for readability, reusability and maintainability in Ansible workflows.
Deploying your rails application to a clean ubuntu 10Maurício Linhares
Learn how you can configure a new Ubuntu 10.04 machine to run your rails application with Nginx and Unicorn in a simple way including security setup and monit monitoring.
The following article is the best simplified steps that will help you install and configure LEMP stack. its written by one of the genius engineers or Rootgate.com
Apache is an open source web server software that runs on over half of all internet servers. The document provides instructions on downloading, installing, and configuring Apache on Windows and Linux systems. It also lists and describes 30 different Apache configuration directives that can be used to customize the server setup.
Drupal camp South Florida 2011 - Introduction to the Aegir hosting platformHector Iribarne
Aegir is a hosting platform for deploying, managing, and maintaining Drupal sites. It makes it easy to install Drupal distributions and uses Drush for backend functionality. The document provides step-by-step instructions for installing Aegir on a clean Linux Ubuntu server, including setting up the server with LAMP, installing required packages, configuring Aegir, and obtaining the Aegir control panel. It concludes by explaining how to download Drupal using Aegir after installation is complete.
This document provides instructions for installing Apache, MySQL, PHP, and Perl on Windows. It details downloading and installing each application, including accepting defaults, modifying directories during installation, and testing functionality. Configuration steps are also described, such as editing files to integrate Apache and PHP and enable MySQL support in PHP. The summary focuses on the core installation and configuration process across the applications.
Apache is a free and open-source web server software that can be installed on Linux and other operating systems. It provides users with web serving, security, and e-commerce functionality out of the box. The document outlines the step-by-step process to download, install, configure, and run the Apache web server on a Linux system. This includes creating directories, downloading and extracting Apache files, configuring settings in the httpd.conf file, and testing the installation by accessing the server locally in a web browser. Virtual hosting is also described as a way to host multiple domains from a single server using Apache.
How To Deploy A Cloud Based Webserver in 5 minutes - LAMPMatt Dunlap
Simple tutorial showing how easy it is to deploy a cloud based webserver with apache, mysql and php in about 5 minutes. You can also watch the video for this slideshow at http://www.youtube.com/watch?v=3eqUZ6fzpOM
This document provides best practices for using Ansible effectively and efficiently. It discusses organizing Ansible code through roles and playbooks with proper structure and naming. It emphasizes using Ansible modules over shell/command modules whenever possible. Other tips include separating configuration from provisioning, optimizing templates, and using variables and groups to simplify automation. The overall message is to strive for readability, reusability and maintainability in Ansible workflows.
Linux Webserver Installation Command and GUI.pptwebhostingguy
The document provides instructions for installing and configuring an Apache web server on Linux. It discusses downloading and unpacking the Apache files, running configuration commands like make and make install, editing the httpd.conf file to configure server settings and start the Apache service, and testing the installation by accessing the server locally. It also covers additional configuration topics like setting up virtual hosts and file permissions.
This document provides instructions for installing Redmine, an open source project management tool, on a Debian Wheezy system. It describes how to install Ruby, Rails, gems, and the Passenger application server. It then covers downloading and configuring Redmine, creating a MySQL database, and configuring Apache virtual hosts to serve Redmine at a sub-URI. Testing the installation and troubleshooting tips are also included.
This document provides instructions on installing and configuring the LAMP stack on Linux. It discusses downloading and installing Linux, Apache, MySQL, and PHP. It explains how to partition disks for installation, set up virtual hosts, and configure Apache's configuration files and ports. The key steps are downloading Linux distributions, burning ISO images, partitioning disks, selecting packages during installation, configuring Apache's files, ports, and virtual hosts.
This document provides PowerShell commands for remotely managing a virtual machine (VM) running Hyper-V, including getting the VM name, connecting to it with credentials, checking the network adapter, listing services, renaming the adapter, copying files to and from the VM, restarting it, and closing the session.
Ansible : what's ansible & use case by REXSaewoong Lee
The document discusses using Ansible to upgrade MySQL from version 3.10 to 3.12 across 1000 servers. It provides steps to create backups and run upgrade scripts on each server using Ansible playbooks and bash scripts in a loop. It also asks how to make the deployment easier, safer and more comfortable. Later sections explain Ansible concepts like installation, modules, playbooks, tags, inventory, variables and demonstrate usage through examples.
DevOps tool that automates software deployment, infrastructure provisioning, and service orchestration using YAML playbooks and powerful modules; it is agentless, uses SSH to push configuration changes to managed nodes, and supports platforms like Linux, Windows, and network devices through a simple Python-based architecture and human-readable YAML files. Ansible can be used to automate tasks across multiple servers through ad-hoc commands or reusable playbooks and its modules help with common administrative tasks like package management, user management, and service management.
Free ipa installation and cluster configuration, freeipa client connectionRustam Sariyev
FreeIPA is installed on two servers, ipa01 and ipa02, and configured as a replication cluster. ipa01 is configured as the master FreeIPA server, while ipa02 is configured as a replica server. Several client systems are then joined to the FreeIPA domain, including configuring authentication, authorization, and other identity services for the clients.
This document describes how to set up monitoring for MySQL databases using Prometheus and Grafana. It includes instructions for installing and configuring Prometheus and Alertmanager on a monitoring server to scrape metrics from node_exporter and mysql_exporter. Ansible playbooks are provided to automatically install the exporters and configure Prometheus. Finally, steps are outlined for creating Grafana dashboards to visualize the metrics and monitor MySQL performance.
This document provides instructions for setting up a continuous integration environment for Nuxeo modules using Ubuntu Server 7.10 virtualized with VmWare. It describes installing Ubuntu, configuring it with tools like MySQL, Maven, and Subversion. It then covers setting up Continuum and Archiva for continuous integration and artifact deployment. The document demonstrates configuring a sample Nuxeo module project in Eclipse to build with Maven and deploy artifacts to the Archiva repository for continuous integration with each code change.
Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Serveraaroncouch
This document provides instructions for setting up a virtual Ubuntu server environment using VirtualBox for Drupal development. It discusses advantages of using VirtualBox over other options and recommends installing Drubuntu to easily configure LAMP. Step-by-step instructions are given for downloading VirtualBox and Ubuntu Server, configuring networking and LAMP, installing Drupal, adding databases and virtual hosts. Additional tips are included for managing packages, running headless, and using Vim.
This document discusses using Fabric for Python application deployment and configuration management. It provides an overview of Fabric basics like tasks, roles, and environments. It also describes using Fabric for common operations like code deployment, database migrations, and managing server growth. Key advantages of Fabric include its simple task-based interface and ability to control multiple servers simultaneously. The document provides an example of using Fabric for a full deployment process including pushing code, running migrations, and restarting processes.
10 Million hits a day with WordPress using a $15 VPSPaolo Tonin
This document provides tips and best practices for optimizing a WordPress site hosted on a VPS. It recommends switching from the default PHP implementation to PHP-FPM to improve performance. It also recommends replacing the default web server with Nginx, and describes various Nginx configuration options to optimize caching, compression, and resource usage. These include enabling OPcache and using Nginx as a reverse proxy for caching and serving static files. The document also covers using Nginx fastcgi caching to cache dynamic PHP pages from WordPress for better performance.
The document outlines the steps taken to install Drupal on a CentOS server using LAMP stack. It describes downloading and configuring the necessary software packages like Apache, PHP and MySQL. Details are provided on setting up the Drupal database, configuring permissions, and customizing the Drupal theme.
This document provides an overview of installing and configuring the Apache web server on Linux. It discusses downloading and unpacking the Apache files, editing the configuration files, starting and stopping the Apache daemon, setting up virtual hosting, and some key configuration options. The primary steps are installing Apache from a download or CD, setting up the website directories and files, configuring options like the server name and ports, and testing the server using a web browser.
Hello Everyone,
How to Reset New Root Passwd or Fix Broken Sudo.......
Errors that you are getting..........
Error 1:- you may notice an error saying you're not in the sudoers file and the incident is going to be reported.
Error 2:- sorry user usuario is not allowed to execute '/usr/bin/passwd root' as root on.
Cause and symptoms :-
the /etc/sudoers file has been altered to no longer allow users in the admin group to escalate privilege
the permissions on the /etc/sudoers file are changed to something other than 0440
a user who should not have been has been taken out of the admin group.
By above error and cause can be done by following steps.....
To Reset Root Passwd
step1 :- Restart your server or desktop
step2 :- press continue shift untill boot menu show
step3 :- select ubuntu generic second option press Enter
step4 :- then select root shell press Enter
step5 :- type mount -o rw,remount /
step6 :- sudo passwd root or passwd root assign passwd and then repeat again the same passwd
Note :- inplace of root you can set your name,hostname any name that u assign during installation OR Login.
You can also Create NEW USER
step7 :-sudo adduser ubuntu and give new passwd
Thanking You
Apache is a powerful and flexible web server that implements the latest HTTP protocols. It is highly configurable, customizable through modules, provides full source code, and runs on many operating systems. The document then provides details on installing and configuring Apache, including the steps for installation and descriptions of various configuration directives.
This document provides instructions for setting up different types of MySQL replication architectures:
1) It describes how to configure basic master-slave replication between two servers with step-by-step instructions for configuring the master and slave servers.
2) It also provides a second method for implementing master-slave replication with additional details on configuring the replication user and importing databases.
3) Finally, it outlines how to set up a master-master replication configuration between two MySQL servers to provide high availability, with each server acting as both a master and slave.
This document provides instructions for setting up a local mail server with Postfix, Dovecot, and SquirrelMail on CentOS/RHEL. It involves installing and configuring each component, including Postfix for mail transfer, Dovecot for IMAP/POP3 access, and SquirrelMail for a webmail interface. Key steps include configuring Postfix and Dovecot settings, testing mail delivery via telnet, and using a SquirrelMail configuration wizard to set up the webmail interface.
This document provides instructions for configuring a mail server on Red Hat/CentOS 6 that includes Postfix, Dovecot, SquirrelMail, and virus scanning/spam tagging. The 16 step process covers installing and configuring the software components, creating SSL certificates, enabling user authentication, and testing mail delivery to POP3/IMAP clients and via a web interface. Configuration files such as main.cf and dovecot.conf are edited to enable the required options.
1. The document provides instructions for installing CentOS and setting up a DNS server on the installed CentOS system.
2. It describes downloading and burning the CentOS ISO, installing it on a computer, and configuring the network interfaces and other installation options.
3. It also explains how to generate an rndc key for bind, edit the rndc.conf and named.conf files, and enable DNS services on the new CentOS server.
Vibrant Technologies is headquarted in Mumbai,India.We are the best Linux training provider in Navi Mumbai who provides Live Projects to students.We provide Corporate Training also.We are Best Linux classes in Mumbai ac
Linux Webserver Installation Command and GUI.pptwebhostingguy
The document provides instructions for installing and configuring an Apache web server on Linux. It discusses downloading and unpacking the Apache files, running configuration commands like make and make install, editing the httpd.conf file to configure server settings and start the Apache service, and testing the installation by accessing the server locally. It also covers additional configuration topics like setting up virtual hosts and file permissions.
This document provides instructions for installing Redmine, an open source project management tool, on a Debian Wheezy system. It describes how to install Ruby, Rails, gems, and the Passenger application server. It then covers downloading and configuring Redmine, creating a MySQL database, and configuring Apache virtual hosts to serve Redmine at a sub-URI. Testing the installation and troubleshooting tips are also included.
This document provides instructions on installing and configuring the LAMP stack on Linux. It discusses downloading and installing Linux, Apache, MySQL, and PHP. It explains how to partition disks for installation, set up virtual hosts, and configure Apache's configuration files and ports. The key steps are downloading Linux distributions, burning ISO images, partitioning disks, selecting packages during installation, configuring Apache's files, ports, and virtual hosts.
This document provides PowerShell commands for remotely managing a virtual machine (VM) running Hyper-V, including getting the VM name, connecting to it with credentials, checking the network adapter, listing services, renaming the adapter, copying files to and from the VM, restarting it, and closing the session.
Ansible : what's ansible & use case by REXSaewoong Lee
The document discusses using Ansible to upgrade MySQL from version 3.10 to 3.12 across 1000 servers. It provides steps to create backups and run upgrade scripts on each server using Ansible playbooks and bash scripts in a loop. It also asks how to make the deployment easier, safer and more comfortable. Later sections explain Ansible concepts like installation, modules, playbooks, tags, inventory, variables and demonstrate usage through examples.
DevOps tool that automates software deployment, infrastructure provisioning, and service orchestration using YAML playbooks and powerful modules; it is agentless, uses SSH to push configuration changes to managed nodes, and supports platforms like Linux, Windows, and network devices through a simple Python-based architecture and human-readable YAML files. Ansible can be used to automate tasks across multiple servers through ad-hoc commands or reusable playbooks and its modules help with common administrative tasks like package management, user management, and service management.
Free ipa installation and cluster configuration, freeipa client connectionRustam Sariyev
FreeIPA is installed on two servers, ipa01 and ipa02, and configured as a replication cluster. ipa01 is configured as the master FreeIPA server, while ipa02 is configured as a replica server. Several client systems are then joined to the FreeIPA domain, including configuring authentication, authorization, and other identity services for the clients.
This document describes how to set up monitoring for MySQL databases using Prometheus and Grafana. It includes instructions for installing and configuring Prometheus and Alertmanager on a monitoring server to scrape metrics from node_exporter and mysql_exporter. Ansible playbooks are provided to automatically install the exporters and configure Prometheus. Finally, steps are outlined for creating Grafana dashboards to visualize the metrics and monitor MySQL performance.
This document provides instructions for setting up a continuous integration environment for Nuxeo modules using Ubuntu Server 7.10 virtualized with VmWare. It describes installing Ubuntu, configuring it with tools like MySQL, Maven, and Subversion. It then covers setting up Continuum and Archiva for continuous integration and artifact deployment. The document demonstrates configuring a sample Nuxeo module project in Eclipse to build with Maven and deploy artifacts to the Archiva repository for continuous integration with each code change.
Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Serveraaroncouch
This document provides instructions for setting up a virtual Ubuntu server environment using VirtualBox for Drupal development. It discusses advantages of using VirtualBox over other options and recommends installing Drubuntu to easily configure LAMP. Step-by-step instructions are given for downloading VirtualBox and Ubuntu Server, configuring networking and LAMP, installing Drupal, adding databases and virtual hosts. Additional tips are included for managing packages, running headless, and using Vim.
This document discusses using Fabric for Python application deployment and configuration management. It provides an overview of Fabric basics like tasks, roles, and environments. It also describes using Fabric for common operations like code deployment, database migrations, and managing server growth. Key advantages of Fabric include its simple task-based interface and ability to control multiple servers simultaneously. The document provides an example of using Fabric for a full deployment process including pushing code, running migrations, and restarting processes.
10 Million hits a day with WordPress using a $15 VPSPaolo Tonin
This document provides tips and best practices for optimizing a WordPress site hosted on a VPS. It recommends switching from the default PHP implementation to PHP-FPM to improve performance. It also recommends replacing the default web server with Nginx, and describes various Nginx configuration options to optimize caching, compression, and resource usage. These include enabling OPcache and using Nginx as a reverse proxy for caching and serving static files. The document also covers using Nginx fastcgi caching to cache dynamic PHP pages from WordPress for better performance.
The document outlines the steps taken to install Drupal on a CentOS server using LAMP stack. It describes downloading and configuring the necessary software packages like Apache, PHP and MySQL. Details are provided on setting up the Drupal database, configuring permissions, and customizing the Drupal theme.
This document provides an overview of installing and configuring the Apache web server on Linux. It discusses downloading and unpacking the Apache files, editing the configuration files, starting and stopping the Apache daemon, setting up virtual hosting, and some key configuration options. The primary steps are installing Apache from a download or CD, setting up the website directories and files, configuring options like the server name and ports, and testing the server using a web browser.
Hello Everyone,
How to Reset New Root Passwd or Fix Broken Sudo.......
Errors that you are getting..........
Error 1:- you may notice an error saying you're not in the sudoers file and the incident is going to be reported.
Error 2:- sorry user usuario is not allowed to execute '/usr/bin/passwd root' as root on.
Cause and symptoms :-
the /etc/sudoers file has been altered to no longer allow users in the admin group to escalate privilege
the permissions on the /etc/sudoers file are changed to something other than 0440
a user who should not have been has been taken out of the admin group.
By above error and cause can be done by following steps.....
To Reset Root Passwd
step1 :- Restart your server or desktop
step2 :- press continue shift untill boot menu show
step3 :- select ubuntu generic second option press Enter
step4 :- then select root shell press Enter
step5 :- type mount -o rw,remount /
step6 :- sudo passwd root or passwd root assign passwd and then repeat again the same passwd
Note :- inplace of root you can set your name,hostname any name that u assign during installation OR Login.
You can also Create NEW USER
step7 :-sudo adduser ubuntu and give new passwd
Thanking You
Apache is a powerful and flexible web server that implements the latest HTTP protocols. It is highly configurable, customizable through modules, provides full source code, and runs on many operating systems. The document then provides details on installing and configuring Apache, including the steps for installation and descriptions of various configuration directives.
This document provides instructions for setting up different types of MySQL replication architectures:
1) It describes how to configure basic master-slave replication between two servers with step-by-step instructions for configuring the master and slave servers.
2) It also provides a second method for implementing master-slave replication with additional details on configuring the replication user and importing databases.
3) Finally, it outlines how to set up a master-master replication configuration between two MySQL servers to provide high availability, with each server acting as both a master and slave.
This document provides instructions for setting up a local mail server with Postfix, Dovecot, and SquirrelMail on CentOS/RHEL. It involves installing and configuring each component, including Postfix for mail transfer, Dovecot for IMAP/POP3 access, and SquirrelMail for a webmail interface. Key steps include configuring Postfix and Dovecot settings, testing mail delivery via telnet, and using a SquirrelMail configuration wizard to set up the webmail interface.
This document provides instructions for configuring a mail server on Red Hat/CentOS 6 that includes Postfix, Dovecot, SquirrelMail, and virus scanning/spam tagging. The 16 step process covers installing and configuring the software components, creating SSL certificates, enabling user authentication, and testing mail delivery to POP3/IMAP clients and via a web interface. Configuration files such as main.cf and dovecot.conf are edited to enable the required options.
1. The document provides instructions for installing CentOS and setting up a DNS server on the installed CentOS system.
2. It describes downloading and burning the CentOS ISO, installing it on a computer, and configuring the network interfaces and other installation options.
3. It also explains how to generate an rndc key for bind, edit the rndc.conf and named.conf files, and enable DNS services on the new CentOS server.
Vibrant Technologies is headquarted in Mumbai,India.We are the best Linux training provider in Navi Mumbai who provides Live Projects to students.We provide Corporate Training also.We are Best Linux classes in Mumbai ac
The document provides instructions for installing and configuring various Linux server applications and services, including Jabberd, Sendmail, Qpopper, Squirrelmail, Samba, and others. It describes downloading and extracting source files, editing configuration files, and commands to compile, install, and start the servers. The instructions are provided in a step-by-step format intended for novice Linux system administrators.
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...Niels de Bruijn
This document provides instructions for setting up single sign-on (SSO) for Oracle Application Express (APEX) applications using Kerberos authentication. It describes:
1) Configuring an Apache web server with mod_auth_kerb on Linux to authenticate against a Windows Active Directory server without requiring additional credentials.
2) Configuring Tomcat, ORDS, and APEX to work with the Kerberos authentication.
3) Optional additional configurations for Windows with IIS or for verifying group membership.
This document provides instructions for setting up a small 3 node Hadoop cluster on Amazon EC2. It covers configuring EC2 instances, installing Java and Hadoop, configuring the Hadoop nodes and services, and running a sample MapReduce job to validate the cluster. The goal is to provide a simple tutorial for getting started with Hadoop on EC2 for learning purposes.
The document provides instructions for installing and configuring a mail server on a Linux system using Postfix for SMTP, Dovecot for IMAP/POP3, and SquirrelMail for webmail. It involves installing packages, configuring files like main.cf and dovecot.conf, creating users, enabling services at startup, and testing connections via telnet and a web browser. The goal is to set up a full-featured mail server for receiving, accessing, and managing email.
Install iRedMail on Red Hat Enterprise Linux, CentOSInfoExcavator
This guide will walk you through the steps to install iRedMail on RedHat 7. iRedMail is an easy to deploy, configure and manage Mail solution for Linux, FreeBSD and OpenBSD systems. With iRedMail, it becomes so easy to deploy an opensource, fully fledged, powerful mail server with features only available in commercial mail solutions
to visit my website www.excavatorinfo.com
Install iRedMail on Red Hat Enterprise Linux, CentOSMd Meherab Hossen
This guide will walk you through the steps to install iRedMail on RedHat 7. iRedMail is an easy to deploy, configure and manage Mail solution for Linux, FreeBSD and OpenBSD systems. With iRedMail, it becomes so easy to deploy an opensource, fully fledged, powerful mail server with features only available in commercial mail solutions.
The document provides information about MySQL, including that it is an open source database software that is widely used. It describes how to install and configure MySQL on Linux, and provides examples of common SQL queries like creating tables, inserting/updating/deleting data, and exporting/importing databases. Key topics covered include the benefits of MySQL, installing it on Linux, basic configuration, and using SQL statements to define schemas and manipulate data.
This document provides instructions for installing a LAMP server with Drupal on it. It describes installing CentOS as the base Linux server, then using yum to add Apache, MySQL, PHP, and additional packages to create a full LAMP stack. It details configuring DHCP and FTP services. It also explains downloading and extracting Drupal, creating a MySQL database for it, and navigating through the Drupal installation process via a web browser. The key steps are: 1) installing a base Linux server; 2) using yum to add Apache, MySQL, PHP to create a LAMP server; 3) downloading and extracting Drupal; 4) creating a MySQL database; and 5) navigating through the Drupal installation
The document provides instructions for setting up a Bacula backup system. It discusses installing Bacula and its components, configuring the director, storage daemon, and file daemon. It describes setting passwords, creating a backup pool and schedule, and configuring a client. Specific configuration files are edited to configure the director, storage daemon, file daemon, and set addresses, passwords and other settings. Commands are provided to start services, run backups and restores, and check configurations for errors. The goal is to have a working Bacula system that can back up and restore a client on a scheduled basis.
Scaling on EC2 in a fast-paced environment (LISA'11 - Full Paper)Nicolas Brousse
Managing a server infrastructure in a fastpaced environment like a start-up is challenging. You have little time for provisioning, testing and planning but still you need to prepare for scaling when your product reaches the tipping point. Amazon EC2 is one of the cloud providers that we experimented with while growing our infrastructure from 20 servers to 500 servers. In this paper we will go over the pros and cons of managing EC2 instances with a mix of Bind, LDAP, SimpleDB and Python scripts; how we kept a smooth working process by using NFS, auto-mount and shell-scripting; why we switched from managing our instances based on tailor-made AMI/Shell-scripting to the official Ubuntu AMI, Cloud-init and puppet; and finally, we will go over some rules we had to follow carefully to be able to handle billions of daily non-static http request across multiple Amazon EC2 regions.
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...Chanaka Lasantha
This document provides instructions for configuring various server applications and services on a Linux server including Apache, PHP, MySQL, FTP, SSL, IPTables, PHPMyAdmin, and server monitoring. It discusses installing and configuring each of these applications and services individually with specific configuration details. The document is intended to provide a complete solution for setting up these common LAMP stack components and services on a Linux server.
The document discusses various stages in architecting an application for the cloud as it grows in scale and complexity.
Stage 1 involves a simple architecture suitable for startups with low overhead. Stage 2 adds redundancy as the business grows. Stage 3 requires the addition of load balancers and more servers as publicity increases load. Stage 4 requires database replication and partitioning as single databases can no longer handle the load. Later stages involve rearchitecting the application and databases to support further scaling through techniques like data partitioning, database clustering, and optimizing code and resources.
Intrusion Detection System using Snort webhostingguy
This document summarizes the installation and configuration of an intrusion detection system using the open source tools Snort, MySQL, Apache web server, PHP, ACID, SAM, and SNOT. It provides step-by-step instructions for installing each component, configuring them to work together, and testing the system using SNOT to generate attack packets that can be monitored through the SAM and ACID interfaces.
Intrusion Detection System using Snort webhostingguy
This document summarizes the installation and configuration of an intrusion detection system using the open source tools Snort, MySQL, Apache web server, PHP, ACID, SAM, and SNOT. It provides step-by-step instructions for installing each component, configuring them to work together, and testing the system using SNOT to generate attack packets that can be monitored through the SAM and ACID interfaces.
Similar to Build your own secure mail server on the cloud using Amazon Web Services (20)
Build your own secure mail server on the cloud using Amazon Web Services
1. Nishanth Ponukumatla Cloud Architect
1 Buildyourownsecure mail server
Build your own secure mail server on the
cloud using Amazon Web Services.
Services needed by amazonin order to setup the initial layout:
EC2 ( Elastic Load balancing)
RDS
Route53
Amazon SES (RELAY SERVER)
Applicationsneededby Ec2 Instances:
Ubuntu 14.4 ( Base OS forall the ec2 instances)
Postfix
Nginx
Dovecot
Amavisd
Setting up the Proxy Servers.
2. Nishanth Ponukumatla Cloud Architect
2 Buildyourownsecure mail server
Here is the architecture of the mail server.
Setting up the MySQL RDS | Postfix
server.
First we launch an RDS instance , I used mysql as it integrates better with postfix. !
3. Nishanth Ponukumatla Cloud Architect
3 Buildyourownsecure mail server
1. Select Multi-AZ deployment as it willbe more Highly Available.
2. Make it a publicly NOT available
4. Nishanth Ponukumatla Cloud Architect
4 Buildyourownsecure mail server
3.After launching the RDS instance , make sure to note the “ENDPOINT” of the mysql RDS instance.
Setting up the Postfix Server.
1.I chose a R3.largeUbuntu14.4 instance , as it is high on networking performance and has
enhanced networking enabled.
https://www.exratione.com/2014/05/a-mailserver-on-ubuntu-1404-postfix-dovecot-
mysql/
Thelinkabovegivesusa detailedexplanationonhowto setup a postfixserverwithmysql
backend.
In the instructions in the link above he uses a locally setup mysql server, where as in our case we
are using a RDS instance hence where ever he uses 127.0.0.1 to define the mysql server , we
replaceit with the “HOSTNAME”of theRDS instance whichwe had noted down earlier.
I am specifyingon the hostnameas weare using a private RDS instance and the IP ADDRESS will
change periodically by amazon.
Once yousetup your postfix server we have little more modification,in order to setup relaying.
Relay Configuration
Since we are using a relay server wehave to add the followingto the postfix main.cf file.
####RELAYCONFIG###
enable_original_recipient=no
relayhost=[email-smtp.us-east-1.amazonaws.com]:587
smtp_sasl_auth_enable=yes
smtp_sasl_security_options=noanonymous
smtp_sasl_password_maps =hash:/etc/postfix/sasl_passwd
smtp_use_tls=yes
smtp_tls_security_level=encrypt
smtp_tls_note_starttls_offer=yes
5. Nishanth Ponukumatla Cloud Architect
5 Buildyourownsecure mail server
As we can see a it is pointing towards a “sasl_passwd” filewhere weare supposed to load
credentials.
Please do not mistake these credentials with your regular iam credentials , we are supposed to
generate them using amazon SES. Youcan do it by following the steps below.
1. Open amazon SES
2. Open Smtp Settings and select Create My Smtp Credentials
3. After clickingon create youwill have your SES SMTP credentials
4. Copy access ID and secret Key Id into the SASL_Passwdfile.
5. If the sasl_passwd file doesn’t exist please create it.
6. On your mail server, open the master.cf file. On many systems, this file resides in
the/etc/postfix folder.
7. Comment out the following line of the master.cf file by putting a # in front of it: -o
smtp_fallback_relay=
Save and close the master.cf file.
8. Edit the /etc/postfix/sasl_passwd file. If the file does not exist, create it. Add the
following lines to the file, replacing USERNAME and PASSWORD with your SMTP
user name and password. If Postfix cannot authenticate with the Amazon SES SMTP
endpoint because the hostname does not match, try adding the additional line
specified in Amazon SES SMTP Issues.
Important
Use your SMTP user name and password, not your AWS access key ID and secret
access key. Your SMTP credentials and your AWS credentials are not the same. For
6. Nishanth Ponukumatla Cloud Architect
6 Buildyourownsecure mail server
information about how to obtain your SMTP credentials, see Obtaining Your
Amazon SES SMTP Credentials.
[email-smtp.us-east-1.amazonaws.com]:25 USERNAME:PASSWORD
Save and close the sasl_passwd file.
9. At a command prompt, issue the following command to create a hashmap database
file containing your SMTP credentials.
sudo postmap hash:/etc/postfix/sasl_passwd
10. (Optional but recommended) Remove the /etc/postfix/sasl_passwd file.
11. (Optional but recommended)
The /etc/postfix/sasl_passwd and /etc/postfix/sasl_passwd.dbfiles you created in the
previous steps are not encrypted. Because these files contain your SMTP credentials,
it is a good idea to use the following commands to change the owner to root and set
permissions to restrict access to the files as much as possible. (Note that if you
deleted /etc/postfix/sasl_passwd in the previous step, you should omit it from the
commands below.)
sudo chown root:root /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db
sudo chmod 0600 /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db
12. Tell Postfix where to find the CA certificate (needed to verify the Amazon SES server
certificate). You could use a self-signed certificate or you could use default
certificates as follows:
If running on the Amazon Linux AMI:
sudo postconf -e 'smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.crt'
If running on Ubuntu Linux:
sudo postconf -e 'smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt'
7. Nishanth Ponukumatla Cloud Architect
7 Buildyourownsecure mail server
13. When you have finished updating the configuration, stop and start Postfix by typing
the following at the command line:
sudo postfix stop
sudo postfix start
14. Send a test email by typing the following at a command line, pressing Enter after
each line. Note that you must replace from@example.com with your "From" email
address, which you must have previously verified with Amazon SES.
Replace to@example.com with your "To" address. If your account is still in the
sandbox, the "To" address must also be verified. Also note that the final line is a
single period.
sendmail -f from@example.com to@example.com
From: from@example.com
Subject: Test
This email was sent through Amazon SES!
.
15. Check your inbox for the email. If the message was not delivered, check your Junk
box, and then check your system's mail log (typically /var/log/maillog) for errors.
For example, you will get an "Email address not verified" error if you have not
verified the "From" address that follows "-f" on the command line.
Now, once the postfix server is setup we are done with 80% of the work.
8. Nishanth Ponukumatla Cloud Architect
8 Buildyourownsecure mail server
Setting up the Proxy Servers.
The main reason of setting up the proxy server is , it Que’s the incoming mails before it
actually hits the mail server. This helps us , if in case our “postfix server” is down for any
reason , the incoming mail will be present in the proxy server que , this helps us in a lot of
ways as there is not loss of mail.
1. I chose a m3.medium for proxy servers , as I get a average traffic (~10,000 mails
per day)
2. Please do realize this is only for the incoming mail.
3. After launching your instance, install latest nginx version (nginx/1.8.0) with the
mail module.
4. You can type apt-get install nginx* and it will show you all the nginx modules and
you can choose the mail module.
5. After install nginx with mail module , open /etc/nginx/nginx.conf
6. Paste the following configuration , and modify accordingly.
user www-data;
worker_processes 1;
error_log logs/error.log info;
events {
worker_connections 1024;
multi_accept on;
}
mail {
server_name mail.example.com;
auth_http localhost:8008/auth-smtppass.php;
server {
listen <ipaddr of the current server>:25;
10. Nishanth Ponukumatla Cloud Architect
10 Buildyourownsecure mail server
}
}
}
7. Please make sure to change whatever is highlighted in red to its respective
IPaddress’s
8. After loading the configuration do a “ nginx –t ” if the configuration is okay.
9. Start the nginx server.
You can launch the second proxy server by following the same steps above.
Setting up the load balancer.
1. Create an external facingload balancer and add the twoReverse Proxy instance’s to the
load balancer.
2. Make sure to make the load balancer listen on port 25 and forward requests to the proxy
server on port 25.
3. Once the load balancer is created please take the DNS NAME info, whichis present in the
description of the load balancer.
Settingup Route53.
Create a MX record foryour domain and point the MX record to the External load balancer which
we created in the previous step.
We are all done !
Youcan start testing it by sending and receiving some emails.
To make it more redundant, you can deploy the same setup in other region as Ireland , Frankfurt
etc..
And youcan do a dns failoverin the route53 , whichwould take around 300 seconds to switchto
the other region whichcould result in a loss of mail sometimes.
11. Nishanth Ponukumatla Cloud Architect
11 Buildyourownsecure mail server
Youcan set it up in any region depending on the edge data or whicheverregion has the most traffic.
Credits:
Joel Nishanth Ponukumatla
Aleksandr Korneinko
https://www.exratione.com/2014/05/a-mailserver-on-ubuntu-1404-postfix-dovecot-
mysql/