Showing posts with label Debian. Show all posts
Showing posts with label Debian. Show all posts

Feb 3, 2014

Disable multi location access log in ISPConfig setup

This applies to ISPConfig 3.0.5.3 on Debian Wheezy 7.3.

By default, ISPConfig will save access log for each site at /var/log/ispconfig/httpd/<sitename>/access.log, and Apache also saves log for each vhost at /var/log/apache2/other_vhosts_access.log. If we have many sites hosted on the same server (of course that’s why we use ISPConfig), we do not want the same access log in 2 different locations which consumes server resources.

We can disable vhost access log of Apache by editing the config file
nano /etc/apache2/conf.d/other-vhosts-access-logthen comment out the line
#CustomLog ${APACHE_LOG_DIR}/other_vhosts_access.log vhost_combined Restart apache service apache2 restart

Feb 2, 2014

mpt-statusd: detected non-optimal RAID status

If we install Debian Wheezy 7.3 on VMware, we may get a lot of errors in /var/log/messages like:
mpt-statusd: detected non-optimal RAID status Because there is no RAID device within a VM, unless you setup RAID, we can disable the mpt-statusd
service mpt-statusd stop
update-rc.d mpt-statusd remove

Jan 31, 2014

How to install GlusterFS 3.4.x server and client on Debian Wheezy 7.3

1. Install glusterFS 3.4.x

Add the GPG key to apt
wget -O - http://download.gluster.org/pub/gluster/glusterfs/3.4/3.4.2/Debian/pubkey.gpg | apt-key add - Add the source and update package list
echo deb http://download.gluster.org/pub/gluster/glusterfs/3.4/3.4.2/Debian/apt wheezy main > /etc/apt/sources.list.d/gluster.list

apt-get update
Install gluster server and client apt-get install glusterfs-server glusterfs-client Ref: http://download.gluster.org/pub/gluster/glusterfs/3.4/3.4.2/Debian/README

2. Dealing with mounting issue at boot time

With GlusterFS 3.4.2, we may get in trouble trying to mount the gluster volume via /etc/fstab
<server-ip>:/gluster_volume /var/mount glusterfs defaults,_netdev 0 0 This may not mount the volume as we expect in previous version of glusterFS. Therefore, we have to use a script to mount our glusterFS volume at boot time.

Jan 26, 2014

Install VMware Tools on Debian Wheezy 7.3

To install VMware Tools on Debian Wheezy 7.3 we have install gcc, make, and linux hearders packages first (can be installed from the DVD source)
apt-get install gcc make linux-header* linux-kbuild*
Mount the VMware Tools iso
mount /dev/cdrom /mnt
Extract the tool
cd /mnt
tar xvf VMware* -C /tmp
Install VMware Tools
cd /tmp/vmware-tools-distrib
./vmware-install.pl
Note: If we clone a VM on vSphere and see the VMware Tools status as Current (not running), then we need to rerun the VMware Tools config after cloning
/usr/bin/vmware-config-tools.pl
After that, check if we can see the IP of the VM.