Archive for the 'Cpanel' Category

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

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

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.

25
Nov
06

SSL Failed

While Restarte ing Cpanel it shows SSL service failed as :

===================================================================
Starting eximstats: [ OK ]
Starting cPanel services: [ OK ]
Starting cPanel Log services: [ OK ]
Starting pop3 services: [ OK ]
Starting cPanel Chat services:
Starting Melange Chat services:
Starting cPanel ssl services: [FAILED]
Starting mailman services: Starting Mailman’s master qrunner.
===================================================================

Then just follow the following steps to solve the error:

1) Please check the stunnel version running on the Server / VPS by using the command “ps -aux | grep stunnel”

===================================================================
root@server [~]# ps -aux | grep stunnel
cpanel 23844 0.0 0.0 3832 1620 ? S Aug22 0:00 /usr/bin/stunnel-4.15local /usr/local/cpanel/etc/stunnel/default/stunnel.conf.run
root 1620 0.0 0.0 1432 444 pts/0 S Aug24 0:00 grep stunnel
===================================================================

Here the stunnel version is 4.15 “stunnel-4.15local”

2) Open stop stunnel file using vi and it will show the following contents:

===================================================================
root@server [~]# vi /usr/local/cpanel/etc/init/stopstunnel
#!/usr/bin/perl

killstunnel();
sub killstunnel {
system(“/scripts/ckillall -9 stunnel”);
system(“/scripts/ckillall -9 stunnel-3.22local”);
system(“/scripts/ckillall -9 stunnel-4.00local”);
system(“/scripts/ckillall -9 stunnel-4.02local”);
system(“/scripts/ckillall -9 stunnel-4.04local”);
system(“/scripts/ckillall -9 stunnel-4.05local”);
}
===================================================================

3) Copy the second last line and paste it below that line and change the stunnel version to 4.15 local. The file should look as :

===================================================================
root@server [~]# vi /usr/local/cpanel/etc/init/stopstunnel
#!/usr/bin/perl

killstunnel();
sub killstunnel {
system(“/scripts/ckillall -9 stunnel”);
system(“/scripts/ckillall -9 stunnel-3.22local”);
system(“/scripts/ckillall -9 stunnel-4.00local”);
system(“/scripts/ckillall -9 stunnel-4.02local”);
system(“/scripts/ckillall -9 stunnel-4.04local”);
system(“/scripts/ckillall -9 stunnel-4.05local”);
system(“/scripts/ckillall -9 stunnel-4.15local”);
}
===================================================================

Save and exit from the file.

4) Restart the cPanel and check if error persist. Smile

===================================================================
Starting eximstats: [ OK ]
Starting cPanel services: [ OK ]
Starting cPanel Log services: [ OK ]
Starting pop3 services: [ OK ]
Starting cPanel Chat services:
Starting Melange Chat services:
Starting cPanel ssl services: [ OK ]
Starting mailman services: Starting Mailman’s master qrunner.
===================================================================

25
Nov
06

Fantastico phpbb installation error

If you are getting following error while installing phpbb from Fantastico

——————————————————————
Warning: fileperms(): Stat failed for /home/qededu/.fantasticodata/temporary/phpBB2 (errno=2 – No such file or directory) in /usr/local/cpanel/3rdparty/fantastico//includes/enc_functions.php on line 287

Warning: is_file(): Stat failed for /home/qededu/public_html/test/config.php (errno=13 – Permission denied) in /tmp/cpanel_phpengine.1146740152.297467947.16752673597 on line 1147
1) File: /home/qededu/public_html/test/config.php [ERROR! ]

Warning: is_file(): Stat failed for /home/qededu/public_html/test/data.sql (errno=13 – Permission denied) in /tmp/cpanel_phpengine.1146740152.297467947.16752673597 on line 1147
2) File: /home/qededu/public_html/test/data.sql [ERROR! ]
——————————————————————-

Just check the permission of tar file. Try to run following commands:

root@venus [~]# whereis tar
root@venus [~]# ls -al /bin/tar

If permission of /bin/tar is not 755 just change it to 755.
root@venus [~]#ls -al /bin/tar
-rwx—— 1 root root 149484 Mar 13 10:57 /bin/tar*
root@venus [~]#chmod 755 /bin/tar*
root@venus [~]# ls -al /bin/tar
-rwxr-xr-x 1 root root 149484 Mar 13 10:57 /bin/tar*




 

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

Flickr Photos

27/365 : Escape

Large Format Study N. 14

let the wind blows

# 15

Okinawa Churaumi Aquarium

Untitled

fortune

Untitled

30 Days of Gratitude- Day 11

...

More Photos

Twitter