Posts

Showing posts from September, 2008

Performance : Alternative PHP Cache (APC)

1. yum install php-pecl-apc If for some reason centosplus repo is not enabled then: 1. cd /usr/src/ 2. wget http://pecl.php.net/get/APC-3.0.19.tgz 3. tar xvzf APC-3.0.19.tgz 4. cd APC-3.0.19 5. yum install php-devel 6. yum install automake 7. yum install libtool httpd-devel* 8. /usr/bin/phpize 9. ./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/bin/php-config 10. make 11. make install 12. ls /usr/lib64/php4/ or /usr/lib64/php/modules/ 13 #emacs /etc/php.ini extension=apc.so apc.enabled=1 apc.shm_segments=1 apc.shm_size=128 apc.ttl=7200 apc.user_ttl=7200 apc.num_files_hint=1024 apc.mmap_file_mask=/tmp/apc.XXXXXX apc.enable_cli=1

Understanding LVM

LVM terminology: a. Physical Volume (PV) : A PV is nothing more than a physical medium with some administrative data added to it - once you have added this, LVM will recognise it . b. Physical Extents (PE) :- Physical Extents are like really big blocks, often with a size of megabytes. c. Volume Group (VG) - A VG is made up of a number of Physical Extents (which may have come from multiple Physical Volumes or hard drives). While it may be tempting to think of a VG as being made up of several hard drives (/dev/hda and /dev/sda for example), it's more accurate to say that it contains PEs which are provided by these hard drives. d. Logical Volumes (LV) - A logical volume functions like a normal partition -- it have a filesystem such as Ext3, and a mount point. From , Volume Group, PEs can be assigned to a logical Volume (LV). Creating Physical volumes: #pvcreate /dev/sda3 Multiple physical volumes #pvcreate /dev/sda9 /dev/sda10 Creating a volume group: #vgcreate home2 /dev/sda3 Mult

Roaming Profile on samba with PDC controller, windows as client

1. Make these change in samba configuration file : emacs /etc/samba/smb.conf Important terms to understand a. wins support = yes b. domain master = yes c. netbios name = samba d. workgroup = OFFICE e. domain logons = yes 2. Samba root access #smbpasswd -a 3. Add new user : #useradd prabhat (adding linux user) #passwd prabhat #smbpasswd -a prabhat (converting linux user into samba user) 4. On the windows machine,Aadd window machine in 'OFFICE' domain of samba. On desktop, Right click on "My Computer" -> "properties" -> "Network identificatation" tab -> "change" while joing it will ask for username password "root" & "OFFICE" (see serial no 2.) Important Points: 1. There will be one and only one PDC over network. 2. The machine name must be unique over network. 3. While login from client domain name must be 'OFFICE' #emacs /etc/samba/smb.conf [global] log file = /var/log/s