Set up mailman on CentOS 6.6

Here is how to install the mailman mailing list on CentOS 6.6. Install Mailman via yum: Next, edit its Apache configuration file: Uncomment the redirect parameter and enter the correct domain name. Set the site master password: This password can be used to access any list or any page. Edit the Mailman configuration file: The … Read more

Block IP with Plesk Firewall

Plesk 9.x 1. Login to Plesk control panel. 2. Click on Modules >> Firewall >> Edit Firewall Configuration. 3. Click on ‘Add Custom Rule’. 4. Enter a name for the rule. 5. Select the option ‘Incoming’ for ‘Match direction’. 6. Select ‘Deny’ for Action. 7. If you wish to add port, you can enter the … Read more

Force SSL in .htaccess file

If you have existing code in your .htaccess, add this above where there are already rules with a similar starting prefix.

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
Be sure to replace www.yourdomain.com with your actual domain name.

Read more

Hard Drive shows 100% after removing files

Still at 100% disk usage after deleting files? Deleting file won’t free the space until you delete the processes that have open handles against that file. Nevertheless, you can reclaim the space. All you need to do is to remove the file descriptors. First execute lsof | grep deleted to identify the process holding the file.

Read more

Change Date for Ubuntu Server

Check your current timezone by just running # date Thu Mar 21 18:02:49 MST 2012 Or checking the timezone file at # more /etc/timezone US/Arizona So to change it just run $ sudo dpkg-reconfigure tzdata And follow on screen instructions. Easy. Also be sure to restart cron as it won’t pick up the timezone change … Read more

R1Soft Backup on SAN Storage on ESXi

Set up the backups: http://wiki.r1soft.com/display/ServerBackup/Documentation Connect your NAS to your master VM. All other VM’s will connect to the master to backup there. Your VM’s will need to connect to your private network so each VM will need two NIC’s. The SAN is attached to the hypervisor (ESXi) and then you can add a virtual … Read more

A chkconfig alternative to Ubuntu

sysv-rc-conf is an alternate option for Ubuntu. # sudo apt-get install sysv-rc-conf # sysv-rc-conf –list xxxx Also, to disable a process at boot, you could simply disable it by: # sudo update-rc.d apache2 disable and then if you would like to enable it again: # sudo update-rc.d apache2 enable