Web Hosting for Fame and Fortune. A Guide to using Apache as your web-server solution



Similar documents
The current version installed on your server is el6.x86_64 and it's the latest available.

Davor Guttierrez 3 Gen d.o.o. Optimizing Linux Servers

Securing the Apache Web Server

Installing Apache Software

How To Configure Apa Web Server For High Performance

Apache2 Configuration under Debian GNU/Linux. Apache2 Configuration under Debian GNU/Linux

Created by : Ashish Shah, J.M. PATEL COLLEGE UNIT-5 CHAP-1 CONFIGURING WEB SERVER

The Monitis Monitoring Agent ver. 1.2

Installing and Configuring Apache

Wednesday, October 10, 12. Running a High Performance LAMP stack on a $20 Virtual Server

How To Improve Performance On An Asa 9.4 Web Application Server (For Advanced Users)

SVNManager Installation. Documentation. Department of Public Health Erasmus MC University Medical Center

GestióIP IPAM v3.0 IP address management software Installation Guide v0.1

Performance Tuning and Optimization for high traffic Drupal sites. Khalid Baheyeldin Drupal Camp, Toronto May 11 12, 2007

How To Use Ngnix (Php) With A Php-Fpm (Php-Fmm) On A Web Server (Php5) On Your Web Browser) On An Ubuntu Web Server On A Raspberry Web 2.5 (Net

The only skill required really is to locate and edit text-files with a text-editor like Notepad.

WEB2CS INSTALLATION GUIDE

Information Systems Application Administration Manual Request Tracker

Installing and Configuring Apache

Red Hat Enterprise Linux (RHEL 6) Courses

Web Server: Principles and Configuration Web Programming 8) Web Server

The course will be run on a Linux platform, but it is suitable for all UNIX based deployments.

Host your websites. The process to host a single website is different from having multiple sites.


What's new in httpd 2.2?

1. What is this? Why would I want it?

SMT v4.0 Users Guide (Linux version)

Scalability and Performance with Apache 2.0

ServerXchange 2.5 Release Notes

CloudLinux is a proven solution for shared hosting providers that:

Ensim WEBppliance 3.1 for Linux (LH) Release Notes

iweb Management Packages - List of supported services and software

Apache 2.0 Installation Guide

Minimum Requirements for Cencon 4 with Microsoft R SQL 2008 R2 Express

HOW TO BUILD A VMWARE APPLIANCE: A CASE STUDY

Virtual Host (Web Server)

QuickDNS 4.6 Installation Instructions

imhosted Web Hosting Knowledge Base

A candidate following a programme of learning leading to this unit will be able to:

Bigstep Server Management Service Details

Setting up an Apache Web Server for Greenstone 2 Walkthrough

MFPConnect Monitoring. Monitoring with IPCheck Server Monitor. Integration Manual Version Edition 1

CA Nimsoft Monitor. Probe Guide for Apache HTTP Server Monitoring. apache v1.5 series

Apache Usage. Apache is used to serve static and dynamic content

PERFORMANCE TUNING ORACLE RAC ON LINUX

Redmine Installation on Debian. v1.1

No.1 IT Online training institute from Hyderabad URL: sriramtechnologies.com

Lesson 7 - Website Administration

Table of Contents. Introduction. Audience. At Course Completion

Instructions for update installation of ElsaWin 5.00

Technical specification

WebCT 3.7 Campus Edition System Administrator s Guide. Technical Communications

Fifty Critical Alerts for Monitoring Windows Servers Best practices

1 Discussion of multithreading on Win32 mod_perl

Agenda. Enterprise Application Performance Factors. Current form of Enterprise Applications. Factors to Application Performance.

Web Application s Performance Testing

How to Install Multicraft on a VPS or Dedicated Server (Ubuntu bit)

Installation of PHP, MariaDB, and Apache

QuickBooks Enterprise Solutions. Linux Database Server Manager Installation and Configuration Guide

PeopleSoft Online Performance Guidelines

Installation Guide for WebSphere Application Server (WAS) and its Fix Packs on AIX V5.3L

dotdefender v5.12 for Apache Installation Guide Applicure Web Application Firewall Applicure Technologies Ltd. 1 of 11 support@applicure.

Using the AVR microcontroller based web server

OS Installation Guide Red Hat Linux 9.0

Monitoring. Zenoss, Inc. Release

GL254 - RED HAT ENTERPRISE LINUX SYSTEMS ADMINISTRATION III

Host Hardening. OS Vulnerability test. CERT Report on systems vulnerabilities. (March 21, 2011)

Assignment # 1 (Cloud Computing Security)

Sawmill Log Analyzer Best Practices!! Page 1 of 6. Sawmill Log Analyzer Best Practices

Server Installation Manual 4.4.1

1.0 DHCPD.CONF. option domain-name-servers ; option domain-name "smuth-mru.org.zm"; option broadcast-address

Redatam+SP REtrieval of DATa for Small Areas by Microcomputer

Introduction to Operating Systems

UPSentry Smart User s Manual. Shutdown Management Software. for Mac OS X 10.2

CURSO: ADMINISTRADOR PARA APACHE HADOOP

Monitoring and Alerting

Kaspersky Endpoint Security 8 for Linux INSTALLATION GUIDE

Talk Internet User Guides Controlgate Administrative User Guide

WebHost Manager 7 User Guide DOCUMENTATION VERSION: 1.2

IT6203 Systems & Network Administration. (Optional)

Best Practices for Monitoring Databases on VMware. Dean Richards Senior DBA, Confio Software

Apache & Virtual Hosts & mod_rewrite

Security Correlation Server Quick Installation Guide

Decision Support System to MODEM communications

Center for Internet Security Benchmark for Apache Web Server v2.1 January 2008

Bitrix Intranet Portal. Installation Guide

Configuring Apache HTTP Server With Pramati

Table of Contents Introduction and System Requirements 9 Installing VMware Server 35

Disaster Recovery on the Sun Cobalt RaQ 3 Server Appliance with Third-Party Software

Transcription:

Web Hosting for Fame and Fortune A Guide to using Apache as your web-server solution

Why use Apache? n Extremely portable n Completely Open Source n Proven track-record n Most popular web server on the planet n Support available from informal and formal channels

Picking the Server Hardware n Fast Pentium class server n Load up on ECC RAM (at least 128M) n Fast Disks n Choose a 10/100Mbps Ethernet card n Tape Backup n UPS

Picking the OS n Best Choice is an Open Source OS n East of Installation n Hardware support n Robustness and Reliability n Personal comfort level n We prefer FreeBSD

Downloading Apache n Grab the tarball from www.apache.org or the closest mirror $ lynx http://www.apache.org/dist n Decompress the tarball $ gunzip apache_1.3.x.tar.gz n De-tar the tarball $ tar xvf apache_1.3.x.tar

Building Apache n Determine the modules you want Basic Apache modules 3rd party module (mod_php) n Configure or configure? First time? Use configure Need suexec? Use configure Like command line? Use Configure

Useful Modules n mod_php Adds very powerful server-side scripting language (<? echo <b>hi World</b> ;?>) Fast performer and easy to learn Provides access to various SQL databases Most popular module for Apache http://www.php.net/

Useful Modules n mod_macro Streamlines complex conf files <Macro MyVirtualHost $host $port $dir> Listen $port <VirtualHost $host:$port> DocumentRoot $dir </VirtualHost> </Macro> Use MyVirtualHost www.apache.org 80 /projects/apache/web Use MyVirtualHost www.perl.com 8080 /projects/perl/web http://www.cri.ensmp.fr/~coelho/mod_macro/

Useful Modules n mod_vhost_alias Perfect when using hundreds/thousands of vhosts Allows for real-time addition of new vhosts without server restarts Smaller memory footprint Cons: No individual log files Not as comprehensive as true <VirtualHost> Somewhat slower

Useful Modules n mod_perl Embeds a true Perl interpreter to Apache Most Perl scripts work with little modification MUCH faster performance for "CGI" Can write Apache modules completely in Perl http://perl.apache.org/

Performance Issues - Platform n Have plenty of RAM n Use SCSI if you can n Use separate SCSI buses n Set aside swap space n Tune the Operating System (kernel) n Dedicate server to Apache

Performance Issues - Platform n Don t allow shell access n Don t use for development n Adjust number or size of: File descriptors (fstat) Mbufs (netstat) Process slots (maxusers & CHILD_MAX) Listen queue (SOMAXCONN) Available RAM (vmstat)

Performance Issues - Apache n Tune basic directives MinSpareServers MaxSpareServers StartServers MaxClients / HARD_SERVER_LIMIT MaxRequestsPerChild ThreadsPerChild

Performance Issues - Apache n AllowOverride / htaccess Causes expensive "stat" for each directory Set AllowOverride None at top directory n Disable DNS lookups Latency effects perceived speed of site n Mutex locking (optimal)

Performance Issues - Apache n Trim memory usage Modules mod_status / ExtendedStatus Off mod_info DSO n Trim cycle usage mod_status / ExtendedStatus Off mod_rewrite

Performance Issues - Apache n Avoid unneeded I/O Logging (LogLevel) Content (mod_mmap_static) Logs on separate drive/bus n Ensure KeepAlives are active KeepAlive On KeepAliveTimeout KeepAliveRequests

Security Issues - Platform n Also effect performance: Win Win! n Keep up to date n No shell / no cleartext passwords n FTP setup n Disable unneeded daemons sendmail / smail / qmail The "r" family tftpd

Security Issues - Apache n Run server as unprivileged user Use a dedicated account n Log files and PID file locations Avoid file overwrites n Protecting file access Symbolic links and DocumentRoot n Monitor the server and Apache

Security Issues - Apache n Protect sensitive information mod_status and mod_info <Location /.status> SetHandler server-status order deny,allow deny from all allow from 192.168.103.10 </Location> <Location /.status> <Limit GET> SetHandler server-status require valid-user </Limit> </Location>

Security Issues - Apache n Protect about the risks of multiple users and CGI scripts cgiwrap CGI scripts are run as the actual "user" Prevents against users over-writing others files "Limits" location of cgi-scripts http://www.umr.edu/~cgiwrap/ suexec Allows for per-vhost user/group

Thank you! n Q&A n That's all folks!