Archive Page 2

21
Jun
08

PROBLEM:

While access PHPmyAdmin from CPanel or WHM you are getting following error:

==========

Warning: session_start() [_function.session-start_
(http://xxx.xxx.xxx:2082/3rdparty/phpMyAdmin/function.session-start) ]:  SQLite: failed to open/create
session database  `/var/cpanel/userhomes/cpanelphpmyadmin/sessions/phpsess.sdb’
- unable to open  database:
/var/cpanel/userhomes/cpanelphpmyadmin/sessions/phpsess.sdb in
/usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/session.inc.php on  line 86

Fatal error: session_start() [<a
href='function.session-start'>function.session-start</a>]: Failed to  initialize storage module: sqlite (path:
/var/cpanel/userhomes/cpanelphpmyadmin/sessions/phpsess.sdb) in
/usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/session.inc.php on  line 86
======

SOLUTION

1)Login to shell of the server using root login details and open the file ” /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini ” using vi or any other editor

2) Search for [Session] and change the following

FROM:

-=-=-
session.save_handler = sqlite
session.save_path =/var/cpanel/userhomes/cpanelphpmyadmin/sessions/phpsess.sdb
-=-=-

TO

-=-=-
session.save_handler = files
session.save_path = /tmp
-=-=-

3) Save and exit

4) Restart Apache server using command ” service httpd restart “

25
Nov
06

How to uninstall Coldfusion

1) Login to mysql using admin password of plesk

===================================================
mysql -uadmin -p’pleskpassword’ -p 8306 psa
===================================================

2) Search for coldfusion values in misc table

===================================================
mysql> select * from misc where param like “cf%”;
+——————+——————-+
| param | val |
+——————+——————-+
| cf_instance_path | /opt/coldfusionmx |
| cf_instance_port | 51011 |
| cf_instance_type | server |
+——————+——————-+
3 rows in set (0.00 sec)
===================================================

3) Delete these values from the table

===================================================
mysql> delete from misc where param like “cf%”;
Query OK, 3 rows affected (0.05 sec)
===================================================

4) Quit and restart the mysql, plesk service (psa in linux).

This will uninstall Coldfusion from the server.

25
Nov
06

Easyapache ERROR:libXpm.(a|so) not found

While running EasyApache it gives following error:

==========================================================================================================================
configure php-4.4.1…(–with-apxs=/usr/local/apache/bin/apxs –prefix=/usr/local –with-xml –enable-bcmath –enable-calendar –enable-ftp –with-gd –with-jpeg-dir=/usr/local –with-png-dir=/usr –with-xpm-dir=/usr/X11R6 –enable-magic-quotes –with-mysql=/usr –enable-discard-path –with-pear –enable-sockets –enable-track-vars –enable-versioning –with-zlib)…. . . . . . . . . . . . . . . . . . . . . Done
configure: error: libXpm.(a|so) not found.
make -j 4 php-4.4.1…(clean)…. Done
make -j 4 php-4.4.1……. Done
make php-4.4.1…(install)…. Done
/etc/rc.d/init.d/httpd start: httpd started
configure php-4.4.1…(–prefix=/usr –with-xml –enable-bcmath –enable-calendar –enable-ftp –with-gd –with-jpeg-dir=/usr/local –with-png-dir=/usr –with-xpm-dir=/usr/X11R6 –enable-magic-quotes –with-mysql=/usr –enable-discard-path –with-pear –enable-sockets –enable-track-vars –enable-versioning –with-zlib)…. . . . . . . . . . . . . . . . Done
configure: error: libXpm.(a|so) not found.
==========================================================================================================================

Additionally, the previous build appears to have failed due to some missing dependencies for GD. You have to ran the following commands to resolve these dependency issues:

==========================================================================================================================
root@server [/home/cpapachebuild/buildapache/build-log]# ln -s/usr/X11R6/lib/libXpm.so.4 /usr/X11R6/lib/libXpm.so
root@server [~]# yum install xorg-x11-devel
==========================================================================================================================

25
Nov
06

cPanel bugfix: new users can’t access cPanel

This only affects VPS’s due to mishandling of adding passwords for new users when the VPS environment does not seem to configure pam to support MD5 password hashes.

SSH to VPS and do the following:

pico /etc/pam.d/system-auth

find this line:

password sufficient /lib/security/$ISA/pam_unix.so nullok use_authtok

add “md5 shadow” to the end of it, so that it looks like this

password sufficient /lib/security/$ISA/pam_unix.so nullok use_authtok md5 shadow

ctrl+x, save and tell client to recreate the users that can’t login in cPanel.
_________________

25
Nov
06

Installing/reinstalling Fantastico

UNINSTALL:

============================================================================
rm -rf /var/netenberg/
rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/
rm -rf /usr/local/cpanel/3rdparty/fantastico*
rm -rf /usr/local/cpanel/base/frontend/*/fantastico
rm -f /usr/local/cpanel/base/frontend/x/cells/fantastico.html
============================================================================

INSTALL:

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

Now go to WHM, login as root and follow the link
WHM -> Add-Ons -> Fantastico De Luxe WHM Admin (scroll down the left menu).

Upon loading, Fantastico De Luxe WHM Admin will auto-update your existing installation (if existing). All admin files (masterfiles, tarballs, settings etc) will be moved to or created at /var/netenberg.

After the installation is complete, click on “Settings” and go through the settings. While some settings are not important, some other (marked below with an *) are essential for a proper functioning of Fantastico installations.
Language: Select the language for the admin backend AND default language for users without a language selected.
Email notifications: Enter an email address in order to receive notifications when users perform installations using Fantastico.
Master files settings (*): If you are not an advanced user who modifies the master files, leave this to “Remove”. Change this only if you know what you are doing
PHPsuexec (*): VERY ESSENTIAL!!! Changing this value will not install or de-install phpsuexec for you. It will only tell Fantastico that you have phpsuexec installed or not installed on your server. Change to “installed” if you perform installations which produce an “Internal Server Error”. Notice: Changes will not apply to existing installations! You have to re-install in order to have working installations.
Path to netPBM: Enter the full path to the netPBM binaries in order to enable Gallery installations. As long as this field has no value, your users will not be able to install Gallery.
Select Fantastico licensing and files server: If the Fantastico pages take long to load switch to the server that works best for you. Fantastico will auto-switch if connections time out.
Update preference: Select latest version (sometimes experimental) or stable version (best working).

If your users don’t see a Fantastico link in their CPanel: Go to WHM and edit the “default” Features List. Activate Fantastico.

25
Nov
06

Steps to install Clamv

You can use following this steps for installing Clamv Antivirus.

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

HOWTO install and configure ClamAV (clamd) on a Red Hat or Fedora system running amavisd-new.

Absolutely no warranty. Use entirely at your own risk.

Thankfully, Dag Wieers at http://dag.wieers.com/packages/clamav/ has the packages we need. Here I illustrate installing version 0.87 on a RH9 i386 box. Modify the six lines below as needed for the current version of ClamAV, your version of OS and your architecture. We need to download and install ‘clamav-db’, ‘clamav’ and ‘clamd’ (in that order). Hopefully, you will not have any problems with dependencies.

cd /usr/local/src
Download the latest version of Clamv(clamd-0, clamav-0, clamav-db-0 ):

wget http://dag.wieers.com/packages/clam…rh9.rf.i386.rpm
wget http://dag.wieers.com/packages/clam…rh9.rf.i386.rpm
wget http://dag.wieers.com/packages/clam…rh9.rf.i386.rpm

If you have a previous version of ClamAV on your system, you will first need to remove it (in reverse order of installation), for example:
rpm -e clamd-0.86.2
rpm -e clamav-0.86.2
rpm -e clamav-db-0.86.2

The system will save copies of your config files. You may choose to use the old clamd.conf, or reconfigure the new one (preferred). Remember to add the clamav user to the amavisd user’s group as described below. Now you can install (and configure) the new version:
rpm -Uvh clamav-db-0.87-1.0.rh9.rf.i386.rpm
rpm -Uvh clamav-0.87-1.0.rh9.rf.i386.rpm
rpm -Uvh clamd-0.87-1.0.rh9.rf.i386.rpm

We may want to make a couple of modifications to the supplied clamd.conf:
If you would like to use the default TCPSocket method of communication, then you do not necessarily need to make changes to the supplied clamd.conf. The default in our Dag Wieers clamd.conf is ‘TCPSocket 3310′ and ‘TCPAddr 127.0.0.1′. Simply skip to the next section.

If you would like to use the LocalSocket method, then:
vi /etc/clamd.conf
Uncomment ‘LocalSocket /var/run/clamav/clamd.sock’
Comment out ‘TCPSocket 3310′

Save and exit. Here we use LocalSocket instead of TCPSocket. These settings cannot be used together.

One key to getting clamd and amavisd-new to work with each other is to add the user ‘clamav’ to the ‘amavis’ (or ‘vscan’) group. Doing so magically resolves file permission issues (one cause of the the dreaded “Can’t connect to UNIX socket” or “Can’t connect to INET socket”). The following instructions assume your amavisd-new group is called ‘amavis’:
Let’s add the ‘clamav’ user to the ‘amavis’ group; modify if your group is ‘vscan’ or some other name:

gpasswd -a clamav amavis

You can test your efforts by issuing the command: groups clamav

Now we need to prepare amavisd-new to use clamd. The other key to getting the two programs to work together is to insure the value after ‘CONTSCAN’ in amavisd.conf is the same as the ‘LocalSocket’ (or TCPSocket) setting in clamd.conf. In our case this would be ‘/var/run/clamav/clamd.sock’ which is the file that the two programs use to talk to each other (the Unix socket). If using TCPSocket / TCPAddr, the value would be ‘127.0.0.1:3310′.
vi /etc/amavisd.conf

To enable virus scanning, comment out: @bypass_virus_checks_acl = qw( . );

You may need to uncomment the ClamAV section:

['Clam Antivirus-clamd',
\&ask_daemon, ["CONTSCAN {}\n", '/var/amavis/clamd'],
qr/\bOK$/, qr/\bFOUND$/,
qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],

If you choose to use LocalSocket as opposed to TCPSocket:
Notice the value after CONTSCAN in this example above is currently ‘/var/amavis/clamd’
Edit this to reflect what our LocalSocket is set to, which in our case is:
‘/var/run/clamav/clamd.sock’

If you choose to use TCPSocket instead of LocalSocket, edit the value after CONTSCAN like so:

['Clam Antivirus-clamd',
\&ask_daemon, ["CONTSCAN {}\n", '127.0.0.1:3310'],
qr/\bOK$/, qr/\bFOUND$/,
qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],

You should take a look at these items in amavisd.conf and modify them to meet your needs (my personal settings are shown):
$final_virus_destiny = D_DISCARD;
$virus_admin = “postmaster\@$mydomain”;
$virus_quarantine_to = “virii\@$mydomain”; # I created a new mailbox to accommodate this.
$mailfrom_notify_admin = “postmaster\@$mydomain”;
$mailfrom_notify_recip = “postmaster\@$mydomain”;
$mailfrom_notify_spamadmin = “postmaster\@$mydomain”;
$hdrfrom_notify_sender = “amavisd-new <postmaster>”;

Before proceeding, obtain the eicar test virus from http://www.eicar.com/anti_virus_test_file.htm and prepare your email client to send an email containing the “virus” through the system. I suggest downloading eicar.com.txt, renaming it to eicar.txt and then attaching it to the email.
Start clamd using the command:
clamd

Run freshclam using the command:
freshclam

Stop amavisd-new:
amavisd stop

Start up amavisd-new in debug mode:
amavisd debug

Now test the system by sending the email containing the eicar test virus through the system. You should see:
Clam Antivirus-clamd: Connecting to socket
and:
INFECTED (Eicar-Test-Signature)

If all goes well, stop debug mode with [Ctrl]+c and restart amavisd-new:
amavisd start

The RPMs I installed only update the database once each day (/etc/cron.daily/freshclam), If this is the case for you I suggest adding a new file to /etc/cron.d that runs freshclam once each hour. We will call the file ‘freshclam’.
vi /etc/cron.d/freshclam

And insert the following:
MM * * * * clamav [ -x /usr/bin/freshclam ] && /usr/bin/freshclam –quiet

Replace MM with a number between 1 and 59. It is best not to use the digit “0″

I suggest you check the health of your new ClamAV installation by reading /var/log/clamav/clamd.log and /var/log/clamav/freshclam.log. It is a good idea to insure the daily freshclam cron job and the hourly freshclam cron job do not run at exactly the same time.

http://www200.pair.com/mecham/spam/…hat-amavis.html

Let me know if there is any more information about it.

25
Nov
06

What is Resin + installation

Resin is a very popular JSP/Servlet web server. It can be installed either as a stand alone Java/HTTP server or in conjunction with either Apache or IIS. For the purpose of this article we will focus on the installation procedure of Resin through Web Host Manager.

For more information on Resin and its functionality, please visit the following URL: http://www.caucho.com/

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

Just like Tomcat JSP/Servlet Server, installing Resin on a cPanel based server is pretty much straight forward. First of all make sure that you have the latest version of cPanel (either Stable or Release, although I personally go with Stable). I recommend having version 9.9.0 and above.

2. Next, log on to your WHM (Web Host Manager) via your favorite web browser.

3. Scroll down on the left frame, until you’ve reached the cPanel section, then click on Addon Modules.

4. A new window will appear on the right frame. Scroll down until you see the Resin module, and check the Install and Keep Update field. When you’re done, scroll down and click on Save.

5. cPanel will now begin the process of installing Resin on your server. First it will install the latest j2sdk from Java on your server, and then the Resin module.

When the installation is complete, Resin will be fully integrated with your Apache web server. All that is left for you to do is to add the domain which you want to be able to serve JSP/Servlets pages. To do so, you will have to SSH into your server, and run the following command:

/scripts/addresin

————————————

If there is no option in WHM to install Resin, make sure to update it to Current version. It should be alright afterwards. If it’s already installed but not working, simply reinstall it by unclicking it – save – and then clicking it again and save again. That should do the trick.

25
Nov
06

Remove Boxtrapper

Please follow the steps to remove boxtrapper completely :-

rm -rf /usr/local/cpanel/base/frontend/x/mail/boxtrapper.css
rm -rf /usr/local/cpanel/base/frontend/x/mail/boxtrapper.html
rm -rf /usr/local/cpanel/base/frontend/xmail/mail/boxtrapper.html
rm -rf /usr/local/cpanel/base/frontend/xmail/mail/boxtrapper.css
rm -rf /usr/local/cpanel/base/frontend/x/pro/boxtrapper*
rm -rf /usr/local/cpanel/base/webmailboxtrapper.cgi
rm -rf /usr/local/cpanel/etc/exim/per
rm -rf /usr/local/cpanel/etc/exim/perl/boxtrapper
rm -rf /usr/local/cpanel/etc/boxtrapperrm -rf /usr/local/cpanel/bin/boxtrapper

Go to WHM uncheck the option for boxtrapper in Tweak Settings the go to Feature Manager->Edit default feature option and uncheck it from there as well.

cp /etc/exim.conf /etc/exim_bak.conf

And remove all the instances of it from /etc/exim.conf

Save and restart exim.

25
Nov
06

Transferring Address Book from Neomail to Horde and Squirrel

How to Transfer the address book from Neomail to Horde and SquirrelMail ?

hehe Good Question. Here is the solution :

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

From Neomail to Horde -

If you had entries in your Addressbook in NeoMail it is a pretty easy process to import them into Horde.

1. Log into the account using an FTP program and download the addressbook from the .neomail-emailuser/cpanelusername folder that is in your root folder and save them to your computer.

2. Go to Horde and click on Organizing then Address Book.

3. Click on the Import/Export icon at the top.

4. Using the comma delimited format browse for the file on your computer and follow the steps and it should work fine.

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

From Neomail to SquirrelMail -

After writing up how to import the Addressbook from Neomail to Horde now whether it is possible with SquirrelMail since
SquirrelMail does not have an import option enabled.

It is possible and fairly easy to do. Neomail only has two fields in the addressbook, the nickname and the email address.
SquirrelMail has five fields and the order is Nickname, First Name, Last Name, email address, and Other Info. Here are the
steps to copy your addresses over:

1. Download the Neomail address book by using an FTP program and going to .neomail-emailuser/cpanelusername. The file is
called addressbook.

2. Edit the file in a text editor. Change the colon to three bars, i.e. find : and replace with |||.

command is # replace “:” “|||” — addressbook

3. Save the file to a folder called .sqmaildata in your root folder to a file in the form of emailuser@yourTCHdomain.com.abook.
(You can overwrite the file that is there if you have not stored addresses in SquirrelMail since it will create an empty
file by default.)

That’s it. You should have your addresses in SquirelMail now.

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

Please note that this only works in the SquirrelMail that is accesses by using /webmail after the domain name or accessed
through your CPanel.

If you need the addressbook in the installation accessed by adding /sqmail at the end of your domain you would need to
log in using /webmail, perform the steps above.

25
Nov
06

cPanel bugfix: Can’t receive email via mail client

There’s a bug in cPanel which prevents user from checking mail from mail client, while you can login to webmail without a problem and you can send out email without a problem.

To fix this, SSH into server/vps, try to receive email within mail client using account that client provided and then run: tail -f /var/log/messages

just to make sure it’s this problem. It should be something similar to this:

server1 popa3d(pam_unix)[13128]: check pass; user unknown
server1 popa3d(pam_unix)[13128]: authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=
server1 popa3d[13128]: Authentication failed for UNKNOWN USER from 127.0.0.1

then: cd /etc/xinetd.d/ and edit these files:

pop3s
popa3d
popa3ds
cpimap

You’ll see one line saying:

disable = ‘no’

make it

disable = ‘yes’

Save and exit. Then restart xinetd and cppop and it should be alright.




 

November 2009
M T W T F S S
« Oct    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Flickr Photos

il paese che muore

Looking Beyond

The Race Against Time

Dawn Dreams

Field of Dreams

The Squirrel

surrounded by nature

Weather subject

More Photos

Twitter