Tags » CentOS

How to install Redmine 2.5 on CentOS 6.5

This installation assumes that You have already Apache 2.2 and MySQL 5.x up and running.

Ruby 2.1

For whole operation we’ll need to install Development Tools, which can be done by: 384 more words

Linux

Starting httpd: /usr/sbin/httpd: error while loading shared libraries: libm.so.6

The Problem:

Yum update on CENTOSĀ 2.6.18-371.6.1.el5 causes the apache httpd unable to start.

I activated the httpd manually through:

#service httpd start

this induces error message: 94 more words

Apache

Setting up Open Chef Server and a Workstation

The quick and dirty way…

Prep work

For me, I stood up two Centos 6.5 instances in virtualbox. I did the basics of installing the EPEL repo, groupinstall of “Base” and “developer tools” in YUM, setup and configured a user for myself. 648 more words

Centos

Configure LVM In CentOS

  
# pvcreate --help
  pvcreate: Initialize physical volume(s) for use by LVM

pvcreate 
        [--norestorefile]
        [--restorefile file]
        [-d|--debug]
        [-f[f]|--force [--force]] 
        [-h|-?|--help] 
        [--labelsector sector] 
        [-M|--metadatatype 1|2]
        [--pvmetadatacopies #copies]
        [--bootloaderareasize BootLoaderAreaSize]
        [--metadatasize MetadataSize]
        [--dataalignment Alignment]
        [--dataalignmentoffset AlignmentOffset]
        [--setphysicalvolumesize PhysicalVolumeSize
        [-t|--test] 
        [-u|--uuid uuid] 
        [-v|--verbose] 
        [-y|--yes]
        [-Z|--zero {y|n}]
        [--version] 
        PhysicalVolume 

# pvcreate --setphysicalvolumesize 16GB /dev/md0
  Physical volume "/dev/md0" successfully created
# pvs
  PV         VG       Fmt  Attr PSize  PFree 
  /dev/md0            lvm2 a--  16.00g 16.00g
# pvdisplay
  --- NEW Physical volume ---
  PV Name               /dev/md0
  VG Name               
  PV Size               16.00 GiB
  Allocatable           NO
  PE Size               0   
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               Sv1sjn-0PH6-wUSm-IKNr-365r-3wPf-QrkXIU
   
# vgcreate --help
  vgcreate: Create a volume group

vgcreate
        [-A|--autobackup {y|n}] 
        [--addtag Tag] 
        [--alloc AllocationPolicy] 
        [-c|--clustered {y|n}] 
        [-d|--debug]
        [-h|--help]
        [-l|--maxlogicalvolumes MaxLogicalVolumes]
        [-M|--metadatatype 1|2] 
        [--metadatacopies #copies] 
        [-p|--maxphysicalvolumes MaxPhysicalVolumes] 
        [-s|--physicalextentsize PhysicalExtentSize] 
        [-t|--test] 
        [-v|--verbose]
        [--version] 
        [-y|--yes]
        [ PHYSICAL DEVICE OPTIONS ] 
        VolumeGroupName PhysicalDevicePath 

# vgcreate vg_md0 /dev/md0
  Volume group "vg_md0" successfully created
# vgs
  VG       #PV #LV #SN Attr   VSize  VFree 
  vg_md0     1   0   0 wz--n- 16.00g 16.00g
# vgdisplay
  --- Volume group ---
  VG Name               vg_md0
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  1
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               16.00 GiB
  PE Size               4.00 MiB
  Total PE              4095
  Alloc PE / Size       0 / 0   
  Free  PE / Size       4095 / 16.00 GiB
  VG UUID               AfZ9L0-SOpe-SLuq-v9Nn-exfh-4Tah-dKOnye
   
# lvcreate --help
  lvcreate: Create a logical volume

lvcreate 
        [-A|--autobackup {y|n}]
        [-a|--activate {y|n}]
        [--addtag Tag]
        [--alloc AllocationPolicy]
        [-C|--contiguous {y|n}]
        [-d|--debug]
        [-h|-?|--help]
        [--ignoremonitoring]
        [--monitor {y|n}]
        [-i|--stripes Stripes [-I|--stripesize StripeSize]]
        [-k|--setactivationskip {y|n}]
        [-K|--ignoreactivationskip] 
        {-l|--extents LogicalExtentsNumber[%{VG|PVS|FREE}] |
         -L|--size LogicalVolumeSize}
        [-M|--persistent {y|n}] [--major major] [--minor minor]
        [-m|--mirrors Mirrors [--nosync] [{--mirrorlog {disk|core|mirrored}|--corelog}]]
        [-n|--name LogicalVolumeName]
        [--noudevsync]
        [-p|--permission {r|rw}]
        [--minrecoveryrate Rate]
        [--maxrecoveryrate Rate]
        [-r|--readahead ReadAheadSectors|auto|none]
        [-R|--regionsize MirrorLogRegionSize]
        [-T|--thin  [-c|--chunksize  ChunkSize]
          [--discards {ignore|nopassdown|passdown}]
          [--poolmetadatasize MetadataSize]]
          [--poolmetadataspare {y|n}]
        [--thinpool ThinPoolLogicalVolume{Name|Path}]
        [-t|--test]
        [--type VolumeType]
        [-v|--verbose]
        [-Z|--zero {y|n}]
        [--version]
        VolumeGroupName 

lvcreate 
        { {-s|--snapshot} OriginalLogicalVolume |
          [-s|--snapshot] VolumeGroupName -V|--virtualsize VirtualSize}
          {-T|--thin} VolumeGroupName 
                      -V|--virtualsize VirtualSize}
        [-c|--chunksize]
        [-A|--autobackup {y|n}]
        [--addtag Tag]
        [--alloc AllocationPolicy]
        [-C|--contiguous {y|n}]
        [-d|--debug]
        [--discards {ignore|nopassdown|passdown}]
        [-h|-?|--help]
        [--ignoremonitoring]
        [--monitor {y|n}]
        [-i|--stripes Stripes [-I|--stripesize StripeSize]]
        [-k|--setactivationskip {y|n}]
        [-K|--ignoreactivationskip] 
        {-l|--extents LogicalExtentsNumber[%{VG|FREE|ORIGIN}] |
         -L|--size LogicalVolumeSize}
        [--poolmetadatasize MetadataVolumeSize]
        [-M|--persistent {y|n}] [--major major] [--minor minor]
        [-n|--name LogicalVolumeName]
        [--noudevsync]
        [-p|--permission {r|rw}]
        [-r|--readahead ReadAheadSectors|auto|none]
        [-t|--test]
        [--thinpool ThinPoolLogicalVolume]
        [-v|--verbose]
        [--version]
        


# lvcreate --name lv_md0 -l 75%VG vg_md0
  Logical volume "lv_md0" created
# lvs
  LV      VG       Attr       LSize   Pool Origin Data%  Move Log Cpy%Sync Convert
  lv_root VolGroup -wi-ao----   6.71g                                             
  lv_swap VolGroup -wi-ao---- 816.00m                                             
  lv_md0  vg_md0   -wi-a-----  12.00g                                             
# lvdisplay
  --- Logical volume ---
  LV Path                /dev/vg_md0/lv_md0
  LV Name                lv_md0
  VG Name                vg_md0
  LV UUID                JnyDyq-Hy3X-umtH-CweB-Y1Cb-ruUT-9ibhc8
  LV Write Access        read/write
  LV Creation host, time algiers.dz.io, 2014-04-17 16:54:45 +0100
  LV Status              available
  # open                 0
  LV Size                12.00 GiB
  Current LE             3071
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     6144
  Block device           253:2
CentOS

Set the Time for an Instance

Set the timezone

  1. open the timezone file: sudo vi /etc/sysconfig/clock and in “ZONE” row set your timezone (to view a list of timezones avalable lookup with a…
  2. 91 more words
Linux

Address already in use: make_sock: could not bind to address 0.0.0.0:80

Happens with httpd with ssl and key with passphrase

Simply find the httpd process, kill it, restart from shell and insert passphrase

  1. netstat -ltnp | grep ‘:80′
  2. 29 more words
Linux

Install Xampp/Lampp on Linux (RHEL/CentOS)

Install Xampp/Lampp on Linux (RHEL/CentOS)

Xampp is a free web server software, which includes MySQL, PHP, and Perl. Or in Linux , we can call it lampp. 189 more words

Linux