Wednesday, May 13, 2009
CPanel error: account listed on suspended without being suspended
The problem is that the password of the account is blank and need to be fixed.
Hope it helps :)
Friday, May 8, 2009
Cpanel Scripts List
When cPanel and WHM is installed, a number of predefined scripts become available in your server’s /scripts directory. You can use any of the scripts simply by typing its location in a terminal session. For example, if you wanted to run the update script, you would type:
/scripts/upcp
Warning: Do not use a script within the /scripts directory if it is not listed here. Executing one of these scripts may damage your server.
easyapache — Upgrades and reinstalls Apache.
phpextensionmgr — Manages PHP extensions.
bandminup — Bandmin application.
courierup — Courier mail server.
cpaddonsup — cPanel’s addon scripts.
dovecotup — Dovecot mail server.
eximup — Exim mail exchanger.
ftpup — FTP servers (ProFTP and Pure-FTP).
imapup — IMAP mail server.
mysqlup --MySQL service.
nsdup — BIND nameserver.
phpup — Current version of PHP.
suphpup — SuPHP tool for handling PHP requests.
restartsrv_* — Restarts a service. We currently provide restart scripts for the following; simply replace the asterisk (*)in restartsrv_* with the term in bold:
apache — Apache web server.
bind — BIND nameserver software.
chkservd — cPanel’s TailWatch? log processing service.
clamd — ClamAV anti-virus software.
courier — Courier mail server.
cpdavd — cPanel’s WebDAV server.
cppop — cPanel’s POP server.
dovecot — Dovecot mail server.
entropychat — Entropy chat client.
exim — Exim mail exchanger.
eximstats — Exim mail statistics tracker.
ftpserver — FTP server.
httpd — Apache web server.
imap — IMAP server.
inetd — Super-server daemon for managing Internet services.
interchange — Interchange e-commerce software.
ipaliases — IP aliasing software.
melange — Melange chat client.
mysql — MySQL database server.
named — BIND nameserver software.
nsd — Open-source NSD nameserver daemon.
postgres — PostgresSQL database service.
postgresql — PostgreSQL database service.
proftpd — ProFTP server daemon.
pureftpd — Pure-FTP server daemon.
rsyslogd — Open-source log forwarder daemon.
spamd — Spam-deferral daemon.
sshd — Secure shell daemon.
syslogd — Log forwarder daemon.
tailwatchd — cPanel’s TailWatch? log processing service.
tomcat — Apache Tomcat service.
xinetd — Open-source super-server daemon.
addpop — Adds a POP account.
delpop — Removes a POP account.
wwwacct — Adds a cPanel account.
killpkg — Removes a package.
restorepkg — Restores a package.
cpbackup — Backup all accounts.
pkgacct — Handles cPanel packages.
upcp — Updates cPanel and WHM.
setupmailserver — Allows you to switch between mailservers.
setupftpserver — Allows you to switch between FTP servers.
setupnameserver — allows switching between DNS servers.
checkperlmodules — Contains a list of standard CPAN modules to install on cPanel servers. This script is used in conjunction with realperlinstaller, below. This script can be used with the following arguments:
--force will reinstall everymodule regardless of whether or not it is working.
--full will ensure that all modules are present as opposed to only checking for essential modules.
realperlinstaller — A wrapper script that automates the installation of Perl CPAN modules.
suspendacct — Suspends an account.
unsuspendacct — Unsuspends an account.
runweblogs — Update statistics for a user.
runstatsonce — Updates statistics for all users.
makecppphp — re-install cpanel’s internal php.
portsup — update ports (FreeBSD only).
/scripts/upcp
Warning: Do not use a script within the /scripts directory if it is not listed here. Executing one of these scripts may damage your server.
easyapache — Upgrades and reinstalls Apache.
phpextensionmgr — Manages PHP extensions.
- up — Updates a service. We currently provide the following update scripts for the services noted:
bandminup — Bandmin application.
courierup — Courier mail server.
cpaddonsup — cPanel’s addon scripts.
dovecotup — Dovecot mail server.
eximup — Exim mail exchanger.
ftpup — FTP servers (ProFTP and Pure-FTP).
imapup — IMAP mail server.
mysqlup --MySQL service.
nsdup — BIND nameserver.
phpup — Current version of PHP.
suphpup — SuPHP tool for handling PHP requests.
restartsrv_* — Restarts a service. We currently provide restart scripts for the following; simply replace the asterisk (*)in restartsrv_* with the term in bold:
apache — Apache web server.
bind — BIND nameserver software.
chkservd — cPanel’s TailWatch? log processing service.
clamd — ClamAV anti-virus software.
courier — Courier mail server.
cpdavd — cPanel’s WebDAV server.
cppop — cPanel’s POP server.
dovecot — Dovecot mail server.
entropychat — Entropy chat client.
exim — Exim mail exchanger.
eximstats — Exim mail statistics tracker.
ftpserver — FTP server.
httpd — Apache web server.
imap — IMAP server.
inetd — Super-server daemon for managing Internet services.
interchange — Interchange e-commerce software.
ipaliases — IP aliasing software.
melange — Melange chat client.
mysql — MySQL database server.
named — BIND nameserver software.
nsd — Open-source NSD nameserver daemon.
postgres — PostgresSQL database service.
postgresql — PostgreSQL database service.
proftpd — ProFTP server daemon.
pureftpd — Pure-FTP server daemon.
rsyslogd — Open-source log forwarder daemon.
spamd — Spam-deferral daemon.
sshd — Secure shell daemon.
syslogd — Log forwarder daemon.
tailwatchd — cPanel’s TailWatch? log processing service.
tomcat — Apache Tomcat service.
xinetd — Open-source super-server daemon.
addpop — Adds a POP account.
delpop — Removes a POP account.
wwwacct — Adds a cPanel account.
killpkg — Removes a package.
restorepkg — Restores a package.
cpbackup — Backup all accounts.
pkgacct — Handles cPanel packages.
upcp — Updates cPanel and WHM.
setupmailserver — Allows you to switch between mailservers.
setupftpserver — Allows you to switch between FTP servers.
setupnameserver — allows switching between DNS servers.
checkperlmodules — Contains a list of standard CPAN modules to install on cPanel servers. This script is used in conjunction with realperlinstaller, below. This script can be used with the following arguments:
--force will reinstall everymodule regardless of whether or not it is working.
--full will ensure that all modules are present as opposed to only checking for essential modules.
realperlinstaller — A wrapper script that automates the installation of Perl CPAN modules.
suspendacct — Suspends an account.
unsuspendacct — Unsuspends an account.
runweblogs — Update statistics for a user.
runstatsonce — Updates statistics for all users.
makecppphp — re-install cpanel’s internal php.
portsup — update ports (FreeBSD only).
Thursday, May 7, 2009
How to install roundcube on cPanel Server
To install roundcube on a cPanel or Linux Server, you should know your MySQL root password. Replace your MySQL root password with Database Password.
If you have already used RoundCube installation before then make sure you have removed traces of it.
Follow the steps given below and remove any traces of it with,
You will have to specify your root password when prompted.
Let us begin with installation
A) Download roundcube first from the given sourse and apply the proper permission to directories
B) Create the database and install the intial sql file. The following commands will do this for you.
replace the mysql password in place of DATABASEPASSWORD
C)Set the configuration as given below
D) Configure cPanel to show roundcube in the theme. Please note this is for the X theme(default) only!! If you use another theme please skip the next part and see below.
That’s it! You may now access roundcube via "www.YOURDOMAIN/webmail"
If you have already used RoundCube installation before then make sure you have removed traces of it.
Follow the steps given below and remove any traces of it with,
cd /usr/local/cpanel/base
rm -rf roundcube*
mysql -p -e ‘drop database roundcube’;
chattr -i /usr/local/cpanel/base/frontend/x/webmaillogin.html
chattr -i /usr/local/cpanel/base/webmaillogin.cgi
/scripts/upcp
You will have to specify your root password when prompted.
Let us begin with installation
A) Download roundcube first from the given sourse and apply the proper permission to directories
cd /usr/local/cpanel/base
wget -O roundcube.tar.gz http://heanet.dl.sourceforge.net/sourceforge/roundcubemail/roundcubemail-0.1-rc1.tar.gz
tar -zxvf roundcube.tar.gz
rm -rf roundcube.tar.gz
mv -f roundcubemail-0.1-rc1 roundcube
cd roundcube
chmod -R 777 temp
chmod -R 777 logs
B) Create the database and install the intial sql file. The following commands will do this for you.
replace the mysql password in place of DATABASEPASSWORD
mysql -e “CREATE DATABASE roundcube;” -pDATABASEPASSWORD
mysql -e “use roundcube; source SQL/mysql.initial.sql;” -pDATABASEPASSWORD
C)Set the configuration as given below
cd config
mv db.inc.php.dist db.inc.php
mv main.inc.php.dist main.inc.php
Now open db.inc.php
nano db.inc.php
Find
$rcmail_config[’db_dsnw’] = ‘mysql://roundcube:pass@localhost/roundcubemail’;
Replace with
$rcmail_config[’db_dsnw’] = ‘mysql://root:DATABASEPASSWORD@localhost/roundcube’;
Now Open main.inc.php
nano main.inc.php
Find
$rcmail_config[’default_host’] = ‘’;
Replace with
$rcmail_config[’default_host’] = ‘localhost’;
D) Configure cPanel to show roundcube in the theme. Please note this is for the X theme(default) only!! If you use another theme please skip the next part and see below.
cd /usr/local/cpanel/base/roundcube/skins/default/images/
cp –reply=yes roundcube_logo.png /usr/local/cpanel/base/frontend/x/images/roundcube_logo.png
cp –reply=yes roundcube_logo.png /usr/local/cpanel/base/webmail/x/images/roundcube_logo.png
cd /usr/local/cpanel/base
wget http://www.hostgeekz.com/files/hostgeekz/HGpatch-roundcube-0.1-rc1
patch -p0
Remember to chattr +i the files or add the patch to your /scripts/upcp
chattr +i /usr/local/cpanel/base/frontend/x/webmaillogin.html
chattr +i /usr/local/cpanel/base/webmaillogin.cgi
That’s it! You may now access roundcube via "www.YOURDOMAIN/webmail"
Wednesday, May 6, 2009
Basic steps to avoid being hacked
Check if you see any of these common causes for security breaches:
1.- outdated blogs/cms software (third party applications)
2.- 777 permission on folders (galleries and upload folders)
3.- forums/software in general that allows uploads and don't check if the file
uploaded is really what it poses to be (an image for instance that is really
php code)
4.-Scan your computer in serach for viruses and trojans.
5.-Update all your web applications (like wordpress, joomla, etc)
6.- Change his site's password.
Hope this helps
1.- outdated blogs/cms software (third party applications)
2.- 777 permission on folders (galleries and upload folders)
3.- forums/software in general that allows uploads and don't check if the file
uploaded is really what it poses to be (an image for instance that is really
php code)
4.-Scan your computer in serach for viruses and trojans.
5.-Update all your web applications (like wordpress, joomla, etc)
6.- Change his site's password.
Hope this helps
Subscribe to:
Posts (Atom)