Posts

E: The package XXXXX needs to be reinstalled, but I can't find an archive for it.

E: The package XXXXX needs to be reinstalled, but I can't find an archive for it. Solution: sudo gedit /var/lib/dpkg/status Search for the broken / problematic package and delete the lines (a paragrah like or something like that whatever you might call it. Then save.

cannot open `/usr/share/sendmail-cf/m4/cf.m4

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf /etc/mail/sendmail.mc:10: m4: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory Reason :  sendmail-cf    is not installed yum install sendmail-cf

Redirect apache request to another domain

if you have example portal.tenerife.com portal.mazaredo.com portal.antolines.com and you want to redirect it to www.mazaredo.com in httpd.conf put this line RewriteEngine on RewriteCond %{HTTP_HOST} !^portal\.!^\.com$ [NC] RewriteRule ^(.*)$ http://www.mazaredo.com/$1 [R=301,L] As you can see the the url has 3 parts    portal, domain, com  !^portal\.!^\.com$ first part is !^portal\     you can also remove portal so any .com request going to your site will be redirected. second part is !^\ where it is like * anything. last part is .com$

Xen Hvm Multi Home Different Subnet, Guest Multi Home Different Subnet Crap!

Setup: Centos 5.8 HVM Xen (Use Default Installation) My ethernets are eth1 and eth2 since somethings wrong with eth0 so change eth numbers to your needs 1. Edit Xen Config : xend-config.sxp edit the network script to (network-script network-xen-multi-bridge) 2. Copy network-bridge to network-bridge.xen in scripts folder ---- network-xen-multi-bridge script---- #!/bin/sh # network-xen-multi-bridge # Exit if anything goes wrong. set -e # First arg is the operation. OP=$1 shift script=/etc/xen/scripts/network-bridge.xen case ${OP} in start)         $script start vifnum=1 bridge=xenbr1 netdev=eth1         $script start vifnum=2 bridge=xenbr2 netdev=eth2         ;; stop)         $script stop vifnum=1 bridge=xenbr1 netdev=eth1         $script stop vifnum=2 bridge=xenbr2 netdev=eth2  ...

Virtualmin / Usermin Error Logging In Connection Reset

http://www.virtualmin.com/node/21964#comment-99307 https://www.virtualmin.com/node/21963#comment-99306 Problem on logging in on usermin https://domain.com:20000 connection reset Probable solution is Edit /etc/usermin/miniserv.conf And add this line to the end: no_pam=1 After that, restart Usermin: /etc/init.d/usermin restart Solution by : andreychek on bugtracker

mod evasive not logging not sending mail

To enable logging and mail, 1. Set the desired configuration in mod_evasive conf or in httpd conf (depending on your distribution 2. Create a folder on /var/log $ mkdir mod_evasive $ chown apache:apache mod_evasive 3. Set the path on mod_evasive conf / httpd.conf to /var/log/mod_evasive 4. Restart httpd / apache ---- EOF ----

Migration Email Server

 postfix/pipe[14916]: 863524FD92: to=<user@example.com>, relay=maildrop, delay=0.02, delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (user unknown. Command output: Invalid user specified. ) FIX : COMPILE MAILDROP uncomment line: WITH_AUTHLIB=yes NOTE: compile maildrop so it will have:   maildrop 2.5.5 Copyright 1998-2005 Double Precision, Inc. GDBM/DB extensions enabled. Courier Authentication Library extension enabled. Maildir quota extension are now always enabled. This program is distributed under the terms of the GNU General Public License. See COPYING for additional information.     Virtual Domains and Users w/ Postfix / Courier-IMAP / MySQL Introduction Disclaimer MySQL Install MySQL Setup Create the database Create the Tables Create the Alias Table Create the Domain Table Create the Mailbox Table Populate the Tables Postfix Install Postfix Setup main.cf mysql_virtual_alias_maps.cf mysql_virtual_domains_m...