background preloader

Config

Facebook Twitter

An In-Depth Discussion of Virtual Host Matching - Apache HTTP Se. The virtual host code was completely rewritten in Apache 1.3. This document attempts to explain exactly what Apache does when deciding what virtual host to serve a hit from. With the help of the new NameVirtualHost directive virtual host configuration should be a lot easier and safer than with versions prior to 1.3. If you just want to make it work without understanding how, here are some examples. Config File Parsing There is a main_server which consists of all the definitions appearing outside of <VirtualHost> sections. The directives ServerName and ServerPath can appear anywhere within the definition of a server.

The main_server has no default ServerPath, or ServerAlias. Port numbers specified in the VirtualHost directive do not influence what port numbers Apache will listen on, they only discriminate between which VirtualHost will be selected to handle a request. Each address appearing in the VirtualHost directive can have an optional port. Virtual Host Matching Hash table lookup Tips. 1 Reference Manual :: 13.6.2 InnoDB Configurati. Re: Best MySQL/InnoDB my.cnf configuration. * Turn off HyperThreading -- it tends to slow things down. * key_buffer = 16M -- very small if you use any MyISAM. In which case, set it to 3000M. (It must not be bigger than 4G.) Since you are not using any MyISAM, leave it at 16M. * query_cache_size = 1024M -- The bigger it is, the slower it runs.

. * innodb_buffer_pool_size=2048M -- You have 16GB of RAM. . * If mixture of MyISAM and Innodb, adjust proportionally. * InnoDB database with 1,7 GiB of data? * #log_slow_queries = /var/log/mysql/mysql-slow.log #long_query_time = 2 Do you have any control over the schema or queries? * #max_connections = 100 -- I don't know what the default is; keep an eye on max_used_connections. . * #table_cache = 64 -- You can probably set this to something, then watch open_tables to see whether it needs to be bigger. Executive summary: Your current settings are close to the best available.

Joe Hruska . com » Example MySQL configuration tuned for InnoDB. Someone asked for a sample InnoDB configuration and since nearly all of the MySQL tables in RescueTime are InnoDB, I thought I would post this. Digg this. Innodb configuration and optimization. Just thought i should have a quick guide for configuring an optimized for innodb my.cnf use innodb_data_home_dir & innodb_data_file_path to specify the location and size of the tablespace. innodb_data_home_dir = /path/to/datainnodb_data_file_path = ibdata1:50M;ibdata2:50M:autoextend:max:10Ginnodb_autoextend_increment = 10This asks innodb to create two files ibdata1 & ibdata2 (as tablespace) and keep them in the /path/to/data directory.

Both would be of 50 MB initially, but ibdata2 would expand automatically by innodb_autoextend_increment MBs (yes the value is in MB) till the max size of 10 GB. InnoDB forms the directory path for each data file by textually concatenating the value of innodb_data_home_dir to the data file name, adding a path name separator (slash or backslash) between values if necessary. By default innodb creates all its tables in the tablespace specified by the innodb_data_file_path directory - in a single file - as specified. Innodb_file_per_table innodb_open_files=300. Bacula: backups that don&#039;t suck. Led by head developer Kern Sibbald, the Bacula team has built an open source backup solution that is fast, reliable, and exceptionally configurable.

Bacula is not a monolithic application, but rather a collection of programs that together provide a robust backup, recovery, and verification toolset suitable for five or 500 systems. Getting started For this review we tested Bacula on a single CentOS 4 server using the file system as our backup medium. In our production environment we use Bacula to manage more than 500GB of backups from multiple clients using a tape robot. Bacula is available as a package using the standard package management tools yum or apt-get, but we prefer to install the application from source.

After downloading and uncompressing the project's source code you'll need to run the configure script. Next, you must create the Bacula database and tables and set appropriate access permissions. The console handles communications between the administrator and Bacula. Bacula: Let&#039;s talk about it! - TechSoup. Enabling PHP in Mac OS X 10.5.

Mac OS X 10.5 (Leopard) comes with both Apache 2.2.6 and PHP 5.2.4 preinstalled, but they're not enabled by default. The following instructions should help you get up and running. Open BBEdit or TextWrangler (a free, cut-down version of BBEdit available from www.barebones.com). From the File menu, select Open Hidden. In the Open dialog box, select All Files from the Enable drop-down menu. Open php.ini in BBEdit or TextWrangler using Open Hidden in the same way as with http.conf. NOTE: If you did an upgrade install of Leopard, you cannot view pages stored in your personal Sites folder, because the necessary file(s) won't have been copied to the correct folder for Apache 2. Cd /private/etc/httpd/users ls You should see at least one file that uses your Mac username followed by .conf. Sudo cp davidpowers.conf /private/etc/Apache2/users If there are several .conf files to copy, you can use the following command instead: sudo cp *.conf /private/etc/Apache2/users.

Mac OS X Unleashed &gt; Apache Configuration. Copyright Copyright © 2002 by Sams All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from the publisher. No patent liability is assumed with respect to the use of the information contained herein. Although every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions. Library of Congress Catalog Card Number: 2001089383 Printed in the United States of America First Printing: November 2001 Trademarks All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized.

Warning and Disclaimer Every effort has been made to make this book as complete and as accurate as possible, but no warranty or fitness is implied. Credits Executive Editor Jeff Schultz Acquisitions Editor Development Editor Susan Hobbs Managing Editor.