Instalar debian 6 atualizado. Executar a sequencia abaixo



Similar documents
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

TABLE OF CONTENTS. I. Executive Summary II. Results Overview III. Performance Testing Methodology... 5

How to install RADIUSdesk on CentOS 6.4 using Nginx

How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu

Artur Bergman perl hacker varnish hacker Operations & Engineering at Wikia

Running Nginx as Reverse Proxy server

Varnish Tips & Tricks, 2015 edition

Setting up a Web Server using Raspbian Wheezy on the Raspberry Pi ( Kenneth A Spencer)

HOW TO BUILD A VMWARE APPLIANCE: A CASE STUDY

Magento Optimised Template CentOS 6 with cpanel/whm V1.0

Drupal Memcached Nginx

Nginx Tricks for PHP Developers. Ilia

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

owncloud 8 and DigitalOcean Matthew Davidson Bluegrass Linux User Group 03/09/2015

HTTP. Internet Engineering. Fall Bahador Bakhshi CE & IT Department, Amirkabir University of Technology

Install Cacti Network Monitoring Tool on CentOS 6.4 / RHEL 6.4 / Scientific Linux 6.4

CloudOYE CDN USER MANUAL

How To Start Libres3 On A Ubuntu (Sx) Or Libres 3 (S3) On A Raspberry Web 2.5 (Sbt) Or Sbt (Sos) On Ubuntu 8

Implementing HTTPS in CONTENTdm 6 September 5, 2012

Ultimate htaccess Article

Bubble Full Page Cache for Magento

APACHE WEB SERVER. Andri Mirzal, PhD N

Version 1.6. MDweb installation and configuration (scripts databases) Windows Platform. 1.3 Authors: Jean Christophe Desconnets

Tonido Cloud Admin Guide

Varnish the Drupal way

Installing an open source version of MateCat

With VTE On-Site you can have VTE CRM installed directly at your company.

How To Run Owncloud (Ahem) On A Linux Computer Or Mac Or Ipad Or Ipa Or Ipro (Awn) Or Ipo (Ampa) Or Mac (Aprox

Version 1.6. MDweb installation and configuration (scripts databases) Linux Platform. 1.3 Authors: Jean Christophe Desconnets

Installation Guide. Copyright (c) 2015 The OpenNMS Group, Inc. OpenNMS SNAPSHOT Last updated :19:20 EDT

Bubble Full Page Cache for Magento

INUVIKA OVD INSTALLING INUVIKA OVD ON UBUNTU (TRUSTY TAHR)

How To Backup On Ubuntu (Amd64) With Back In Time (Amd) On Windows Xp) On A Windows Xp (Amd32) On Ubunus On A Ubuntu

Contents of the document

at () in C:\wamp\www\icaatom-1.2.0\icaatom \plugins\sfLucenePlugin\lib\vendor\Zend\Search\Lucene\Document.php line

How to Setup a Dedicated Web Server for Free

Advantech AE Technical Share Document

Installation. Installation centreon + nagios mai LISTE DES PRE-REQUIS. Nagios/centreon Paquets divers. 1.1.

CIC Web Applications


of HTTP Headers Dirk Licence:

Office Fax

HaProxy możliwości i zastosowania. Marek Oszczapiński m.oszczapiński@polskapresse.pl

deploying meteor with meteor up

People Data and the Web Forms and CGI. HTML forms. A user interface to CGI applications

OVERVIEW Methodology Objectives Terminology Recommended Test Protocol... 3 CLOUD SERVICES VS. DEDICATED HOSTING...

IBM DB2 for Linux, UNIX, and Windows. Deploying IBM DB2 Express-C with PHP on Ubuntu Linux

TODAY web servers become more and more

owncloud Server Administration Manual

Reseller Quick Start Guide 1. Domain & Name Servers...2. Payment Gateways Dedicated Servers Setup Your Landing Page/Website...

EZcast Installation guide

Wordpress Security. A guide on how to not get hacked when using wordpress. David Kennedy (ReL1K) Twitter: Dave_ReL1K

Hardening web application (DOS and Application firewalls. Margus Ernits

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

OpenPro ERP Software Installation Guide Talbert Ave Suite 200 Fountain Valley, CA USA Phone Fax

1 Recommended Readings. 2 Resources Required. 3 Compiling and Running on Linux

Solr Bridge Search Installation Guide

Installing Moodle on a Windows x64 Environment

owncloud Administrators Manual

itixi Ubuntu Server Deployment How-To/Information

MCAFEE FOUNDSTONE FSL UPDATE

The objective of this lab is to learn how to set up an environment for running distributed Hadoop applications.

How to Configure edgebox as a Web Server

CTIS 256 Web Technologies II. Week # 1 Serkan GENÇ

Protocolo HTTP. Web and HTTP. HTTP overview. HTTP overview

A Beginner's Guide to Setting Up A Web Hosting System (Or, the design and implementation of a system for the worldwide distribution of pictures of

WNMS. WNMS v.1.2 Quick Start Guide. Revision 1.0 June 1, 2012

Optimizing your Magento store for heavy API access. 1.0 June 2013

1. Pimcore Version 3.x Documentation Installation and Upgrade System Requirements Installation (Apache)

Nginx "how to" - Fast and Secure Web Server

Cyber Security Workshop Ethical Web Hacking

Kollaborate Server Installation Guide!! 1. Kollaborate Server! Installation Guide!

System and Network Monitoring With Zabbix

Cache All The Things

CN=Monitor Installation and Configuration v2.0

OpenPro ERP Software Installation Guide REDHAT LINUX

WordPress Optimization

How to write a CGI for the Apache Web server in C

Project #2. CSE 123b Communications Software. HTTP Messages. HTTP Basics. HTTP Request. HTTP Request. Spring Four parts

Kultra Ubuntu Install

Network Technologies

Phpfox v3 vs. Social Engine 4

FileMaker Server 13. Custom Web Publishing with PHP

Magento & Zend Benchmarks Version 1.2, 1.3 (with & without Flat Catalogs)

Content Management System

Install and configure a Debian based UniFi controller

Zend Server 5.0 Reference Manual

Configuring the CSS and Cache Engine for Reverse Proxy Caching

Contents. 1. Infrastructure

owncloud Administrators Manual

CS615 - Aspects of System Administration

Implementation Guide:

Transcription:

Instalar debian 6 atualizado. Executar a sequencia abaixo echo deb http://packages.dotdeb.org stable all >> /etc/apt/sources.list echo deb-src http://packages.dotdeb.org stable all >> /etc/apt/sources.list wget http://www.dotdeb.org/dotdeb.gpg cat dotdeb.gpg apt-key add - apt-get update apt-get install php5 php5-fpm php-pear php5-common php5-mcrypt php5-mysql php5-cli php5-gd php5-pgsql php5-apc php5-cgi php5-curl php5-imap php5-ldap curl nginx curl http://repo.varnish-cache.org/debian/gpg-key.txt apt-key add - echo "deb http://repo.varnish-cache.org/debian/ $(lsb_release -s -c) varnish-3.0" >> /etc/apt/sources.list.d/varnish.list apt-get update apt-get install varnish Edita o www.conf do php-fpm vim /etc/php5/fpm/pool.d/www.conf definir no arquivo do php-fpm os valores abaixo. listen.owner = www-data listen = /var/run/php5-fpm.sock Configurar o nginx no site-enable default server { listen 8080; #listen [::]:80 default ipv6only=on; ## listen for ipv6 index index.php index.html index.htm; server_name expresso.prodeb.ba.gov.br; charset utf-8; location / { index index index.php; try_files $uri/ $uri /index.php?q=$uri&amp&$args; port_in_redirect off; location ~* ^.+.(jpg jpeg gif css png js ico xml)$ { access_log off; log_not_found off; expires max; location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$;

#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini # fastcgi_pass php; # fastcgi_pass 127.0.0.1:9000; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /var/www/expresso/$fastcgi_script_name; include fastcgi_params; fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_intercept_errors on; fastcgi_ignore_client_abort off; fastcgi_connect_timeout 60; fastcgi_send_timeout 360; fastcgi_read_timeout 360; fastcgi_buffer_size 128k; fastcgi_buffers 8 256k; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; location ~ /.htaccess { deny all; log_not_found off; access_log off; location ~ /.htpasswd { deny all; log_not_found off; access_log off; location = /favicon.ico { allow all; log_not_found off; access_log off; location = /robots.txt { allow all; log_not_found off; access_log off; Configurar o php.ini para ter o suporte a apc e liberar os short-tag vim /etc/php5/fpm/php.ini default_charset = "iso-8859-1" date.timezone = America/Sao_Paulo short_open_tag = On ;;;;; [APC] extension=apc.so apc.enabled = 1 apc.cache_by_default = 1 apc.stat = 1 apc.shm_segments = 1 apc.shm_size = 64 apc.write_lock = 1 apc.slam_defense = 0 apc.ttl = 7200 apc.user_ttl = 7200

Configura o varnish vim /etc/default/varnish DAEMON_OPTS="-a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -p thread_pool_add_delay=2 -p thread_pools=4 -p thread_pool_min=200 -p thread_pool_max=4000 -p cli_timeout=25 -p session_linger=100 -s malloc,512m" vim /etc/varnish/default.vcl backend default {.host = "127.0.0.1";.port = "8080";.first_byte_timeout = 300s; acl purge { # Only localhost can purge my cache "127.0.0.1"; "localhost"; sub vcl_recv { if ((req.http.host ~ "(ubuntubrsc.com)")) { set req.backend = default; else { if (!client.ip ~ purge) { error 405 "This IP is not allowed to send PURGE requests."; return (lookup); if (req.request == "POST") { if (req.url ~ "/feed") { if (req.url ~ "/wp-(login admin)") { set req.http.cookie = regsuball(req.http.cookie, "has_js=[^;]+(; )?", "");

set req.http.cookie = regsuball(req.http.cookie, " utm.=[^;]+(; )?", ""); set req.http.cookie = regsuball(req.http.cookie, " qc.=[^;]+(; )?", ""); set req.http.cookie = regsuball(req.http.cookie, "wp-settings-1=[^;]+(; )?", ""); set req.http.cookie = regsuball(req.http.cookie, "wp-settings-1=[^;]+(; )?", ""); set req.http.cookie = regsuball(req.http.cookie, "wp-settings-time-1=[^;]+(; )?", ""); set req.http.cookie = regsuball(req.http.cookie, "wordpress_test_cookie=[^;]+(; )?", ""); if (req.http.cookie ~ "^ *$") { if (req.url ~ ".(css js png gif jp(e)?g swf ico ttf otf)") { if (req.http.accept-encoding) { if (req.url ~ ".(jpg png gif gz tgz bz2 tbz mp3 ogg)$") { remove req.http.accept-encoding; elsif (req.http.accept-encoding ~ "gzip") { set req.http.accept-encoding = "gzip"; elsif (req.http.accept-encoding ~ "deflate") { set req.http.accept-encoding = "deflate"; else { remove req.http.accept-encoding; if (!req.http.cookie) { if (req.http.authorization req.http.cookie) { return (lookup); sub vcl_pipe { return (pipe); sub vcl_pass { sub vcl_hash { hash_data(req.url); if (req.http.host) { hash_data(req.http.host); else { hash_data(server.ip); if (req.http.accept-encoding) { hash_data(req.http.accept-encoding); return (hash); sub vcl_hit {

purge; error 200 "Purged."; sub vcl_miss { purge; error 200 "Purged."; return (fetch); sub vcl_fetch { if (req.url ~ ".(css js png gif jp(e)?g swf ico ttf otf)") { unset beresp.http.cookie; set beresp.ttl = 1800s; sub vcl_deliver { if (obj.hits > 0) { set resp.http.x-cache = "cached"; else { set resp.http.x-cache = "uncached"; unset resp.http.x-powered-by; unset resp.http.server; sub vcl_init { return (ok); sub vcl_fini { return (ok); VCL default backend default {.host = "127.0.0.1";.port = "8080"; /etc/init.d/php5-fpm restart /etc/init.d/nginx restart /etc/init.d/varnish restart