Fatal! Write Failure to /etc/valiases

May 3rd, 2010 by tech No comments »

Fatal! Write Failure: /etc/valiases/yourdomain.tld. Ignore any messages of success this can only result in failure!

First, verify that your domain exists (as a file) in /etc/valiases, and that it has “username:mail” permissions.

# touch /etc/valiases/yourdomain.tld
# chown username:mail /etc/valiases/yourdomain.tld

Share

Exim Guide

May 3rd, 2010 by tech No comments »

I could write up a post on exim commands, but it would take some time, and “Bradthemad” has already done it. With that, the exim cheatsheet.

Share

Where are the Mail Filters Located?

May 3rd, 2010 by tech No comments »

Account level filters:
/home/user/.filter

User Level Filters:
/home/user/.cpanel/filter.yaml

Share

How to Restart Mailman

May 3rd, 2010 by tech No comments »

Currently, cPanel does not include a restartsrv_mailman script in /scripts. Until they do, you can use the following:

cpanel# /usr/local/cpanel/3rdparty/mailman/bin/mailmanctl -s restart

Or you can restart the cpanel service, but that’s overkill.

Share

How to Install rkhunter

May 3rd, 2010 by tech No comments »

Change directories and download the source

# cd /usr/src/
# wget http://downloads.sourceforge.net/project/rkhunter/rkhunter/1.3.6/rkhunter-1.3.6.tar.gz?use_mirror=cdnetworks-us-1

Extract the source
# tar -xvzf rkhunter-1.3.6.tar.gz

Change into the directory and do a default install
# cd rkhunter-1.3.6
# sh installer.sh --install --layout default

If you want to do a custom install, run the installer to see usage:
# sh installer.sh

Share

How to Uninstall cPanel (no, not really)

April 22nd, 2010 by tech No comments »

You shouldn’t try to uninstall cPanel (reinstall your OS), and the cPanel “uninstall” script reenforces that:

# cat /usr/local/cpanel/uninstall

#!/bin/sh
# Uninstall script for Cpanel
rm -f "/usr/local/cpanel/uninstall"
#### END OF UNINSTALL
echo "Cpanel has been uninstalled."

Share

PHPInfo

April 22nd, 2010 by tech No comments »

PHPInfo pages can be useful when needing to verify what php modules are installed/loading properly, or to see which php.ini a site is using.

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?>

http://us3.php.net/phpinfo

Share

How to Install Fantastico

April 22nd, 2010 by tech No comments »

cd /usr/local/cpanel/whostmgr/docroot/cgi
wget -N http://files.betaservant.com/files/free/fantastico_whm_admin.tgz
tar -xzpf fantastico_whm_admin.tgz
rm -rf fantastico_whm_admin.tgz

Now login to WHM, and navigate to Fantastico De Luxe WHM Admin to continue your install.

If the install hangs, try again, but first increase the wget timeout. I see this happen quite a bit, unfortunately.

Share

WHMCS: Chunky Parser Error

April 22nd, 2010 by tech No comments »

This is caused by Display Errors in cPanel being set in Tweak Settings (or from /var/cpanel/cpanel.config, errortostdout=1). Uncheck that, which should resolve your issue.

Share

How to Install OpenVZ on a 64-bit Server

April 22nd, 2010 by tech No comments »

These are more of a note for myself than anything, so I don’t have to navigate through the docs to do an install. The more verbose install guide can be found here, and includes instructions for 32-bit architecture:

http://wiki.openvz.org/Quick_installation

#cd /etc/yum.repos.d
#wget http://download.openvz.org/openvz.repo
#rpm --import http://download.openvz.org/RPM-GPG-Key-OpenVZ
#yum install ovzkernel.x86_64

Verify the new kernel is set to boot in /boot/grub/grub.conf, then reboot into this new kernel.

Once you’re back online, edit /etc/sysctl.conf, adding/modifying the following values:

# On Hardware Node we generally need
# packet forwarding enabled and proxy arp disabled
net.ipv4.ip_forward = 1
net.ipv6.conf.default.forwarding = 1
net.ipv6.conf.all.forwarding = 1
net.ipv4.conf.default.proxy_arp = 0

# Enables source route verification
net.ipv4.conf.all.rp_filter = 1

# Enables the magic-sysrq key
kernel.sysrq = 1

# We do not want all our interfaces to send redirects
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0

# yum install vzctl.x86_64 vzquota.x86_64
# wget -c http://download.openvz.org/template/utils/vzyum/2.4.0-11/vzyum-2.4.0-11.noarch.rpm
# rpm -ivh vzyum*
#yum install vzpkg vzrpm43-python vzrpm44-python vzctl-lib

The installation is now complete, and you can download a CentOS OpenVZ image template to get you started.

#cd /vz/template/cache
#wget http://download.openvz.org/template/precreated/centos-5-x86_64.tar.gz

Share

cPanel Web Site Hosting by IntraHost