Monthly Archives: February 2009

PHP 5 Local

As php5 compiled in the cgi mode customers cannot to use .htaccess directives like php_admin, php_value, php_flag. In phpsuexec setup (for main php) it is overridden by allowing customers place custom php.ini with the variables. However if you build the

Posted in Php

Open SSL

wget tar zxf openssl-0.9.7d.tar.gz cd openssl-0.9.7d ./configure –prefix=/usr make make test make install ./configure make make test make install

Posted in General discussions, Issues

Cron to mail backup notification

echo “Backup completed” | mail -s “Backup Notification”

Posted in Mail, Scripts

Wild Card DNS

For the DNS, edit the DNS zone file and add the following: Code: * IN A x.x.x.x (where x.x.x.x is the IP for the hosting account using the wildcard) Edit your httpd.conf config file for your web server and add

Posted in Dns

OpenDNS error

change etc/named.conf from: options { directory “/var”; auth-nxdomain no; pid-file “/var/run/named/”; to this: options { directory “/var”; auth-nxdomain no; pid-file “/var/run/named/”; allow-recursion {; };

Posted in Dns, Issues

mysql showing wrong version on cpanel

edit /home/username/.cpanel-datastore/_usr_sbin_mysqld_–version if you have multiple accounts with problem find ./*/.cpanel-datastore/ | grep _usr_sbin_mysqld_–version | awk ‘{system (“rm ” $1)}’

Posted in Issues, Mysql, Scripts

Ssh not restarting in vps

Please do this commands in shell rm -rf /dev/null mknod /dev/null c 1 3 /etc/rc.d/init.d/sshd restart

Posted in Cpanel, Issues, VPS

Kernel compilation

Go to the /usr/src directory Unpack the source code with tar -xvzf linux-2.x.x.tag.gz. Move to the /usr/src/linux sub-directory. make mrproper make menuconfig make all     — make vmlinux — make modules — make bzimage make modules_install make install cp /usr/src/linux/arch/i386/boot/zImage /zImage

Posted in General discussions, Server Setup

Unable to load iptables module (ipt_state), aborting

Starting APF:Unable to load iptables module (ipt_state), aborting. Just enable the no kernel option in /etc/apf/conf.apf It should be like this: SET_MONOKERN=”1″ Save and then restart apf: /usr/sbin/local/apf -r

Posted in Issues, Server Security

Script to change permission of files

find /home/*/public_html/ -type d -perm 777 -exec chmod 755 {} \;>/dev/null 2>&1 find /home/*/public_html/ -type f -perm 777 -exec chmod 644 {} \;>/dev/null 2>&1

Posted in Scripts
Blog Stats
  • 117,309 hits

Get every new post delivered to your Inbox.

Join 209 other followers