IT Solutions / Apache2 optimization for vps
Server Version: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves


...
   
Admin Notes / Install Proxmox VE on Debian Lenny on 32-Bit Processor

Proxmox VE is only provided for 64-bit CPUs using the debian amd64 architecture. While this makes sense for the KVM hypervisor that depends on special hardware features not available in 32-bit CPUs, at least the container based virtualization OpenVZ can be supported on 32-bit CPUs.

Unfortunatly you cannot install Proxmox VE on those old 32-bit machines, that's why I ported the packages for i386 architecture.


...
   
Admin Notes / How To mount a Windows (samba) share with fstab

To mount a remote samba share, just follow this (adapt it according to your setup):

First, create a target dir, e.g.:

mkdir /mnt/samba1


...
   
IT Solutions / Installation and configuring Flash Operator Panel (FOP)
Before installation we have to fulfill FOP pre-installation requirements. FOP consists of 2 parts: daemon and flash panel.
Requirements
  1. Perl to run daemon part
  2. Web server to run flash panel
  3. Asterisk manager user account
After fulfilling the requirements we need to obtain FOP software. To get FOP run following command on the server console.
$ wget http://www.asternic.org/files/op_panel-x.xx.tar.gz
Extract content of archive.
$ tar zxf op_panel-x.xx.tar.gz
And go to the folder op_panel-x.xx
$ cd op_panel-x.xx
Let's see the content of folder.


...
   
Admin Notes / Configuring smarthost in sendmail

Откройте /etc/sendmail.cf и найдите в начале файла строки:

# "Smart" relay host (may be null)
DS

Вот после этого DS и запишите в квадратных скобках имя smtp-сервера. Должно получиться вот так:



...
   
Admin Notes / Resize extended partition
I wil give you just an example


~# apt-get install parted
Reading package lists... Done
Building dependency tree... Done

...
   
Admin Notes / ProFtpd works slow OR how to accelerate Proftpd
On a server running ProFTPd in certain configurations you can see a very slow load time (up to a minute or more) while listing the directory contents. This can be sped up greatly by adding these commands to the bottom of your ProFTPd configuration file.

...
   
Admin Notes / Howto use more than 4 GB RAM on Debian
Nowadays, many servers are running with 2-4 gigabytes of RAM, and their owners are discovering a problem: When they run 32-bit debian Linux distribution, their extra RAM is not being used. Fortunately, correcting the problem is only a matter of installing or building a kernel with a few specific parameters enabled or disabled.




...
   
Admin Notes / How to convert vmware vmdk image to kvm.

First convert the .vmdk to a format compatible with qemu-img.

Turns out this can be done with vmware-vdiskmanager.

1. Converting from .vmdk

vmware-vdiskmanager -r Ubuntu.vmdk -t 0 Ubuntu-copy.vmdk

Note: If you have multiple disks, use Ubuntu.vmdk as well (you do not need to convert each Ubuntu-f001.vmdk).

Note: That is a -t Zero not a capital O. see man vmware-vdiskmanager.

Note: vmware-vdiskmanager is part of vmware server (and workstation, not sure about player).


2.Convert to .qcow2 (KVM, QEMU)


qemu-img convert Ubuntu-copy.vmdk -O qcow2 Ubuntu-copy.qcow2

...
   
Admin Notes / How to shrink qcow file
Before shirinking  it would be best if you defragmented the image first and then wiped the free space to make sure that files that you have deleted are completely removed. So you may use http://www.microsoft.com/technet/sysinternals/FileAndDisk/SDelete.mspx. After that use following commands


...
   
 
«    September 2010    »
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
© 2008 All Rights Reserved. IT Solutions Studio.