19 08 2008

ERROR: PleskException

Unable initialize session:

——————————————————————————–

0: /usr/local/psa/admin/plib/cmd_loginup.php:240
createSessionCommon(integer ’1′, string ‘admin’, boolean true, string ’65.93.164.55′, NULL null)
1: /usr/local/psa/admin/plib/cmd_loginup.php:373
createSessionAdmin(string ‘admin’, string ‘********’, string ‘***************************’, boolean false)
2: /usr/local/psa/admin/plib/cmd_loginup.php:130
createSession(string ‘admin’, string ‘********’)
3: /usr/local/psa/admin/htdocs/login_up.php3:28
++++++++++++++++++++++++++++++++++++++++++

If you are getting the above statements when you try to login to the plesk panel, here goes the resolution for it.

The issue is due to no free sapce in the hard disk for the plesk to start. In order to fix the issue, you can perform the following steps:

# Execute the following command in the konsole.

df -h
This command shows the current disk usage and available free space in each of the partition. In this case the “/” partition will have no free space. That is usage will be 100 %. So you need to delete the unwanted files in the filled up partition.

Once you have done this you need to restart the plesk service in the server using the following command:

/etc/init.d/psa restart

This should fix the issue





DDos Deflate

2 07 2008

Installation steps for DDos Deflate:

The following steps would help you to install DDoS Deflate in your unix machine:

1) Login to the server as root user.

2) Download the installation script to the server from the following link.

wget http://www.inetbase.com/scripts/ddos/install.sh

3) Allow sufficient permission for the script file to execute.

chmod 0700 install.sh

4) Run the installer

./install.sh

Thats it!!!!





ERROR: PleskException

30 06 2008

ERROR: PleskException

Unable initialize session:

——————————————————————————–

0: /usr/local/psa/admin/plib/cmd_loginup.php:240
createSessionCommon(integer ’1′, string ‘admin’, boolean true, string ’65.93.164.55′, NULL null)
1: /usr/local/psa/admin/plib/cmd_loginup.php:373
createSessionAdmin(string ‘admin’, string ‘********’, string ‘***************************’, boolean false)
2: /usr/local/psa/admin/plib/cmd_loginup.php:130
createSession(string ‘admin’, string ‘********’)
3: /usr/local/psa/admin/htdocs/login_up.php3:28
++++++++++++++++++++++++++++++++++++++++++

If you are getting the above statements when you try to login to the plesk panel, here goes the resolution for it.

The issue is due to no free sapce in the hard disk for the plesk to start. In order to fix the issue, you can perform the following steps:

# Execute the following command in the konsole.

df -h
This command shows the current disk usage and available free space in each of the partition. In this case the “/” partition will have no free space. That is usage will be 100 %. So you need to delete the unwanted files in the filled up partition.

Once you have done this you need to restart the plesk service in the server using the following command:

/etc/init.d/psa restart

This should fix the issue





A fatal error has occurred Could not connect to database for SQL SessionHandler. Details have been logged for the administrator.

27 06 2008
NB: This is the fix for cpanel servers

# Check the file /usr/local/cpanel/base/horde/config/conf.php

# You can find the following entry in the conf.php

$conf['sql']['hostspec'] = 'localhost';
$conf['sql']['username'] = 'horde';
$conf['sql']['password'] = '<password>';
$conf['sql']['protocol'] = 'tcp';
$conf['sql']['database'] = 'horde';

Try to connect the database horde using the following method
#mysql -uhorde -p<password>

The password is one you get from the above file.

 You will get the "ERROR 1045 (28000): Access denied for user
'horde'@'localhost' (using password: YES)"

5. grant the privilege to the database using the mysql( in mysql prompt)
mysql> grant all privileges on horde.* to horde@localhost identified by
'<password>';

You can now login into the Horde Webmail now.




Rvsitebuilder installation in Cpanel

27 06 2008

1. If the server has RVSkin installed, update RVSkin to v6.75 up. (Skip this step if you don’t have it).

perl /root/rvadmin/auto_rvskin.pl

2. After getting the license confirmation, SSH to the cPanel server as root, download the installer using the command below:

cd /usr/local/cpanel/whostmgr/docroot/cgi/
rm -f rvsitebuilderinstaller.tar
wget http://download.rvglobalsoft.com/rvsitebuilderinstaller.tar
tar -xvf rvsitebuilderinstaller.tar
chmod 755 addon_rvsitebuilder.cgi

3. Open WHM as root user, at the bottom left menu under Plugins section, you can find RVSiteBuilder Installer menu.

4. Click RVSiteBuilder Installer to begin the installation process.

5. After complete the installation, you will be sent to RVSiteBuilder Manager automatically.





Horde Error…….Could not connect to database for SQL SessionHandler

27 06 2008

1) Open the horde configuration file.

cd /usr/local/cpanel/base/horde/config
vi conf.php

2) Change the following two lines from:
$conf[’sql’][’hostspec’] = ‘localhost’;
$conf[’sessionhandler’][’params’][’hostspec’] = ‘localhost’;

To:

$conf[’sql’][’hostspec’] = ‘localhost:/var/lib/mysql/mysql.sock’;
$conf[’sessionhandler’][’params’][’hostspec’] = ‘localhost:/var/lib/mysql/mysql.sock’;





Uninstalling apf in linux machine

27 06 2008

First you need to stop the apf service running in the server.

/etc/rc.d/init.d/apf stop

Remove all the apf files from the server.

$ rm -Rf /etc/apf
$ rm -Rf /etc/rc.d/init.d/apf
$ rm -Rf /var/log/apf_log
$ rm -Rf /var/log/apfados_log
$ rm -Rf /usr/local/sbin/apf

Disable apf in the run levels to avoid unwanted resource usage.

$ /sbin/chkconfig –level 345 apf off

Open the following file:

/etc/cron.daily/fw

Now remove the following line from it and save.

/etc/rc.d/init.d/apf restart >> /dev/null 2>&1





How to enable viewing HTML content in Horde.

27 06 2008

By default it is not possible for us to view the emails in HTML format using
Horde webmail interface. All the html content will be displayed at the top of
the page and will be requested to download.

To fix this issue you have to enable “Inline HTML message viewing” for Horde in the server.

To enable “Inline html message viewing” you can perform the following steps:

# Goto the horde imp configuration folder at /usr/local/cpanel/base/horde/imp/config

# Edit the file mime_drivers.php using your favorite editor.

Change the following line
————————————————————
$mime_drivers['imp']['plain']['inline'] = false;
————————————————————

To

————————————————————
$mime_drivers['imp']['plain']['inline'] = true;
————————————————————

# Now restart the cpanel service in the server. Now you will be able to view the html content using
Horde webmail interface.





cpanel scripts in the folder /scripts

27 06 2008

* adddns – Adds a DNS zone.
* addnetmaskips – Add the netmask 255.255.255.0 to all IPs that have no netmask.
* addnobodygrp – Adds the group nobody and activates security.
* addpop – Add a Pop Account.
* addservlets – Add JSP support to an account (requires tomcat).
* adduser – Add a user to the system.
* betaexim – Installs the latest version of exim.
* biglogcheck – looks for logs nearing 2 gigabytes in size
* bsdcryptoinstall – Installs crypto on FreeBSD.
* bsdldconfig – Configures the proper lib directories in FreeBSD.
* bsdpkgpingtest – Tests the connection speed for downloading FreeBSD packages.
* buildeximconf – Rebuilds exim.conf.
* buildpostgrebsd-dev – Installs postgresql on FreeBSD.
* checkbadconf – Checks /usr/local/apache/conf/httpd.conf for bad users.
* checkbsdgroups – Checks and repairs proftpd ownership on FreeBSD.
* checkccompiler – Checks to make sure the C compiler works on your system.
* checkfpkey – Checks for the FrontPage suid key
* checkgd – Checks to see if GD is built.
* checkinterchange – (Internal use).
* checklibssl – Checks to make sure the proper libssl symlinks exist.
* checkmaxclients – Checks to see if apache has reached the maximum clients allowed.
* checkoldperl – Checks to see if the version of Perl on your system is old.
* checkrsync – Checks to make sure rsync is up to date.
* checksuexecpatch – Checks to see if mailman has been patched for suexec.
* checksuspendpages – Checks to see if suspend pages are properly named.
* checkup2date – Makes sure up2date is set up properly (RedHat)
* checkyum – Makes sure yum is set up properly.
* chkpaths – Makes sure /usr/sbin/chown has a symlink to /bin/chown
* chownpublichtmls – Change ownership of all users web space to them, which is useful for converting to
suexec. Files owned by nobody are deleted.
* ckillall – Allows you to kill a process (used like killall).
* cleanbw – Cleans up old bandwidth logs.
* cleandns8 – Clean up named.conf.
* cleangd – Cleans up old GD installs and reinstalls GD
* cleanmd5 – Fix CPAN md5 problems.
* cleanmsglog – cleans exim’s msglog
* cleanupmysqlprivs – Cleans up improper mySQL privileges.
* compilers – Disables the usage of compilers for unprivileged users.
* convert2maildir – Converts mail from mbox to maildir format and installs courier impap and pop (cpimap is
removed).
* cpbackup – Runs backups.
* distupgrade – Upgrades RedHat to the newest version (for testing only)
* dnscluster – Enables DNS clustering.
* dnstransfer – Only if the server has a DNS master (sync with DNS master).
* downgradefp – Downgrades FrontPage Extensions (to 5.0-0)
* dropmysqldb – Drops a mySQL database.
* easyapache – Upgrade Apache
* editquota – Change a users quota.
* enablechkservdwebmail – Enable service checking of webmaild.
* enablefileprotect – Protects home directories if file protection is built in apache.
* ensurepkg – Installs a FreeBSD package.
* ensurerpm – Installs a rpm.
* exim3 – Installs exim 3.
* exim4 – Installs exim 4.
* eximlocalsend – Enables/Disables exim local sending.
* eximup – Installs/Updates exim.
* findhacks – Search for common Trojan Horses.
* findoddrootprocesses – Lists root processes that may need to be checked out.
* findphpversion – Check to see if your php version file is up to date.
* fixallcartswithsuexec – Fixes permissions on carts when using suexec.
* fixbinpath – Makes sure all bin file paths are correct.
* fixbuggynamed – Updates bind to solve any problems with bugs.
* fixcommonproblems – Attempt to fix the most common problems.
* fixetchosts – Fixes problems with /etc/hosts
* fixeverything – Fix common problems and quotas.
* fixinterchange – Reinstall interchange Perl modules.
* fixinterchangeperm – fix permissions on a user’s interchange cart.
* fixlocalhostwithphp – Change /etc/hosts to work better with PHP 4.2.0 + MySQL.
* fixmailman – Updates and restarts mailman.
* fixmysql – Fixes problems with mySQL.
* fixmysqlbsd – Fixes problesm with mySQL on FreeBSD.
* fixnamed – Updates bind to handle many DNS zones (more than 512).
* fixpop – Fix a POP account and reset password.
* fixproftpdconf – Fixes problems with /usr/local/etc/proftpd.conf
* fixproftpddupes – Updates proftpd.
* fixquotas – Fix quotas.
* fixrndc – Fixes named.conf to prevent rndc staus failed.
* fixsubdomainlogs – Run if subdomain logs don’t show up in cPanel.
* fixsuexeccgiscripts – Fix CGI scripts that are broken after suexec installed.
* fixvaliases – Fix permisions on valiases.
* fixwebalizer – Repair a Webalizer that has stopped updating.
* fpanonuserpatch – Updates FrontPage extensions to include the anonymous user patch.
* ftpquaotacheck – Runs quota checking for all ftp users.
* ftpup – Updates your ftp server.
* fullhordereset – Resets Horde and displays the current Horde password.
* gcc3 – Installs gcc-3.3.3
* gencrt – Generate a .crt and .csr file.
* initfpsuexec – Enable FrontPage suexec support.
* initquotas – Turn on quota support on new drives.
* initsslhttpd – Make sure HTTP starts with SSL.
* initsuexec – Turn on suexec support if suexec is installed.
* installfpfreebsd – Installs FrontPage 5 Extensions on FreeBSD.
* installfpgentoo – Installs FrontPage on Gentoo.
* installgd – Builds GD.
* installpkg – Installs a FreeBSD package.
* installpostgres – Installs PostrgeSQL.
* installzendopt – Install zend optimzer.
* installzendopt-freebsd – Install zend optimizer on a freebsd machine.
* isdedicatedip – Checks an ip to see if it is dedicated.
* killacct – Delete an account.
* killdns – Delete a DNS zone.
* killpvhost – Removes a virtual host from proftpd.conf.
* killspamkeys – Removes a spam key.
* killsslvhost – Removes a SSL entry for a virtual host.
* killvhost – Delete a vhost.
* listcheck – Checks mailing lists for issues.
* listproblems – Lists common problems.
* listsubdomains – List subdomains.
* mailperm – Fix almost any mail permission problem.
* mailscannerupdate – Updates MailScanner
* makecpphp – Installs php.
* manualupcp – Updates cPanel manually.
* md5crypt – Encrypts a password into MD5.
* mysqladduserdb – Create a MySQL databse and user.
* mysqlconnectioncheck – Attempts to connect to MySQL, restarts SQL if necessary.
* mysqldeluserdb – Delete a MySQL database and user.
* mysqlpasswd – Change MySQL password.
* mysqlup – Updates mySQL.
* newexim – Installs the latest version of exim.
* nofsck – Make fsck always use -y
* nomodattach – Removes mod_attach from httpd.conf.
* nomodauthmysql -Removes mod_auth_mysql from httpd.conf.
* nomodbwprotect – Removes mod_bwportect from httpd.conf.
* nomodgzipconfmods – Removes mod_gzip from httpd.conf.
* nomodperl – Removes mod_perl from httpd.conf.
* park – Parks a domain.
* patcheximconf – Fixes exim.conf.
* perlinstaller – Installs perl.
* phpini – Create a php.ini file.
* proftpd128 – Installs proftpd-1.2.8.
* quickkernel – Updates your kernel.
* quicksecure – Quickly kill useless services.
* rebuildcpanelsslcrt – Rebuilds the cPanel SSL Certificate.
* rebuildcpusers – Rebuilds /var/cpanel/users.
* rebuildetcpasswd – Rebuilds /etc/passwd.
* rebuildeximbsd – Rebuilds exim on FreeBSD.
* rebuildhttpdconffromproftpd – Rebuild httpd.conf from the proftpd.conf file.
* rebuildnamedconf – Restore named.conf from files in /var/named.
* rebuildproftpd – Restore proftpd.conf from httpd.conf.
* reinstallmailman – Reinstalls mailman.
* reseteximtodefaults – Resets exim’s default settings.
* resetimappasswds – Resets all imap passwords.
* restartsrv – Restart a service.
* restartsrv_apache – Restart apache.
* restartsrv_bind – Restart bind.
* restartsrv_clamd – Restart clamd.
* restartsrv_courier – Restart courier imap.
* restartsrv_cppop – Restart cppop.
* restartsrv_entropychat – Restart entropy chat.
* restartsrv_exim – Restart exim.
* restartsrv_eximstats – Restart exim statistics.
* restartsrv_ftpserver – Restart your ftp server.
* restartsrv_httpd – Restart httpd.
* restartsrv_imap – Restart impad.
* restartsrv_inetd – Restart inetd.
* restartsrv_interchange – Restart Interchange Shopping Cart.
* restartsrv_melange – Restart melange chat.
* restartsrv_mysql – Restart mysqld.
* restartsrv_named – Restart named.
* restartsrv_postgres – Restart postgresql.
* restartsrv_postgresql – Restart postgresql.
* restartsrv_proftpd – Restart proftpd.
* restartsrv_pureftpd – Restart pure-ftpd.
* restartsrv_spamd – Restart spamd.
* restartsrv_sshd – Restart sshd.
* restartsrv_syslogd – Restart syslogd.
* restartsrv_tomcat – Restart tomcat.
* restartsrv_xinetd – Restart xinetd.
* restoremail – Restores a user’s mail.
* runstatsonce – Runs statistics (should be used from the crontab).
* runweblogs – Run analog/webalizer/etc. for a user.
* safeyum – Runs yum safely.
* setupfp – Install FrontPage 3 on an account.
* setupfp4 – Install FrontPage 4 (2000) installer on an account.
* setupfp5 – Install FrontPage 5 (2002) installer on an account.
* setupfp5.nosueuxec – Install FrontPage 5 (2002) installer on an account when not using suexec.
* unsetupfp4 – Removes FrontPage 4 or 5 from an account.
* unsuspendacct – Unsuspends an account.
* upcp – Updates cPanel.
* whoowns – Finds out who owns a domain.
* wwwacct – Creates an account.





Apache status page shows blank in WHM

27 06 2008

If you are having issue with WHM, that if the Apache status page is showing blank in WHM then here goes the fix.

Run the following command in the server konsole.

/scripts/addstatus

Now the issue should be fixed.








Follow

Get every new post delivered to your Inbox.