Friday, September 19, 2008

ZPanel Hosting Control Panel

ZPanel Hosting Control Panel

ZPanel is just another control panel for hosting business. Current version is BETA 11 v2.5, working on Linux, Windows Server systems and XP computers/servers. It's likely to be cPanel name and having Zantastico like Fantastico as addon to install scripts automatically.

Monday, September 8, 2008

How to install WebMin

How to install WebMin

Installation of webmin is extremely easy especially for newbies. We will try to tell how to install webmin via all distributions like rpm, tar.gz and so on..

I am starting to tell installation, assuming you have downloaded your appropirate version of WebMin from here.



Command for installing webmin rpm:
rpm -U webmin-1.430-1.noarch.rpm

The rest of the installation will be done automaticaly on to the directory /usr/libexec/webmin. Login details will be same with your root and rootpassword. You should reach to panel at the url http://YOUR-IP:10000/

-------

Command for Deb package:
dpkg --install webmin_1.430_all.deb

The rest of the installation will be done automaticaly on to the directory /usr/share/webmin. Login details will be same with your root and rootpassword. You should reach to panel at the url http://YOUR-IP:10000/

-------

Command for tar.gz installation:
[root@server /tmp]# gunzip webmin-1.x.tar.gz
[root@server /tmp]# tar xf webmin-1.x.tar
[root@server /tmp]# cd webmin-1.x
[root@server /tmp/webmin-1.x]# ./setup.sh /usr/local/webmin

Before installing webmin from tar.gz, you will need to have Perl5 installed on your server. Perl is usually installed on the directory /usr/bin/perl and is a default package for most types of Linux OSes. You will need to follow the directions prompted on SSH.


Not depending on the way you have installed WebMin, you will need to open port 10000 if you have an active firewall/iptables installed. Otherwise you will be blocked on port 10000 and WebMin will not be used. If your firewall/iptables is blocking the port 10000, obviously you will have to open it to reach the control panel.

Please refer to our Linux section for more information about opening up ports.

Thank you for listening to us!

Friday, September 5, 2008

How to install MRTG on DirectAdmin

How to install MRTG on DirectAdmin

This will guide you to install MRTG bandwidth report tool on your DirectAdmin control panels fully automated! Please follow the guide step by step to avoid misconfigurations. Tested on Redhat 9, FC 2 and 3, centOS 3, 4 and 5..


The installer script will check if there are any installed MRTG before in folder /var/www/html/mrtg. If you have installed MRTG before, make sure you have removed it and it's crontab entry to make the script work correctly!

- You will need root access.
- wget http://serveio.com/da/install.mrtg.sh
- chmod +x install.mrtg.sh
- ./install.mrtg.sh

And it's installed. That's just easy as 1-2-3..
When it's completed, MRTG will be installed in /var/www/html/mrtg and can be viewed at http://yourhostname/mrtg.


To uninstall the copy installed by using this script;
- Edit /etc/crontab and remove the following line
*/5 * * * * root /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg
- rm -rf /usr/local/mrtg-2/
- rm -rf /var/www/html/mrtg/



That's all.

Thursday, September 4, 2008

How to Find PHP -nobody- spammers

How to Find PHP -nobody- spammers

It has been always problem in shared hosting servers that customers sending out large spam mails. Your server's loads go higher and higher, customers begin moarning.. Now it's easy to find out the PHP nobody spammers in cPanel based servers. Following script is not developed by me but I am using it actively on our shared web hosting servers. It's highly recommended for hosters..


Please follow the guide correctly.
- mv /usr/sbin/sendmail /usr/sbin/sendmail.real
- pico /usr/bin/sendmail (into this file, paste the code below)
- chmod +x /usr/bin/sendmail
- chmod 777 /var/log/formail
- echo > /var/log/formmail


#!/usr/local/bin/perl

# use strict;
use Env;
my $date = `date`;
chomp $date;
open (INFO, ">>/var/log/formmail.log") || die "Failed to open file ::$!";
my $uid = $>;
my @info = getpwuid($uid);
if($REMOTE_ADDR) {
print INFO "$date - $REMOTE_ADDR ran $SCRIPT_NAME at $SERVER_NAME \n";
}
else {

print INFO "$date - $PWD - @info\n";

}
my $mailprog = '/usr/sbin/sendmail.real';
foreach (@ARGV) {
$arg="$arg" . " $_";
}

open (MAIL,"|$mailprog $arg") || die "cannot open $mailprog: $!\n";
while ( ) {
print MAIL;
}
close (INFO);
close (MAIL);

#finishes




Thanks to Matt for tweaks.