Sunday, November 29, 2009

sshd daemon in whm failed

If you have changed the shell default Port 22 on a cPanel powered server , restarting sshd from the WHM will fail.

===============

solution.

ssh into server
change the server port to 22
/etc/ssh/sshd_config
===============

Wednesday, November 25, 2009

squirrel mail error "Connection timed out 110 Can't open SMTP stream."

error:
Connection timed out
110 Can't open SMTP stream.

=================

solution:

vi /usr/local/cpanel/base/3rdparty/squirrelmail/config/config.php

$useSendmail = false;

to:

$useSendmail = true;


restart cpanel and exim service.

Thursday, November 19, 2009

Enable net-snmp

For enabling net-snmp we need to recompile php since it is a php module

Wednesday, November 18, 2009

How to enable fancy indexing

Fancy indexing means detailed explanation of each files

============
put this on .htaccess

IndexOptions FancyIndexing

=========

fantastico icon is not present in the cpanel accounts

1. check fantastico is enabled in the WHM's Feature Sets .
ie. feature manager >> fantastico

Saturday, November 14, 2009

horde login looping

cd /var/cpanel/userhomes/cpanelhorde/sessions
remove the file

==============

/scripts/restartsrv httpd

===========

unable to remove addon domain

==========

Error from park wrapper: Sorry, you do not control the domain acsinco.net

==========
remove folloaing entries

/var/named/domain.com.db
/etc/httpd/conf/httpd.conf
/var/cpanel/users/username remove (dd) related entries to domain,
/etc/userdomains
/etc/localdomains
vim /etc/named.conf remove (dd) related entries to domain
remove dns entry in whm
run /scripts/updateuserdomains

=============

for sending messgaes via ssh

wall message ==>>publicly send
write root pts/1 then enter messages1 ==>>send privately (pts/1 is the recipient)

Check the ssl is valid or not

http://www.madboa.com/geek/openssl/#cert-exam

To extract information from a certificate

openssl x509 -text -in cert.pem

To verify a certificate

openssl verify cert.pem

Tuesday, November 10, 2009

Dolphin (Boonex Software)

1. I had added Dolphin CMS into cpaddons so that users could install it similar to the way fantastico installs things

2. Technical Requirements
Dolphin requires the following pre-requisites for your server:

* Linux/Unix (Red Hat, Debian, FreeBSD, Mandrake, etc.) or Windows OS, Apache Web Server ver. 1.3

* If you're going to use media streaming features in some Flash apps, you should have VPS or Dedicated server in order to install and run RMS (Ray Media Server). You should be able to access root or administrator account on that server. JRE (Java Runtime Environment) ver. 1.6 or higher should be installed on the server as well.

* The ports 1935, 1936 and 5080 should be open on the server (where Dolphin is to be installed) and on the local computers of your site's members

* PHP 4.4.0/5.1.0 and higher

* register_globals must be Off
safe_mode must be Off
exec() (executable files) must be allowed
allow_url_fopen should be On
allow_url_include should be Off
open_basedir should not have any value memory_limit should be 128M or higher

* mbstring, domxml (only for PHP 4.x) and xslt extensions should be installed

* MySQL 4.1.2 and higher

* The magic_quotes_gpc extension is also required starting from Dolphin 6.1.5 version

* If some security module is installed on the server (such as mod_security for Apache), it should be able to be disabled or set up for specific folders.

* Direct connection to boonex.com should be able to be established (i.e. connection without requiring proxy authorization).

* You should be able to run executable files (necessary for ffmpeg.exe)

* The server should be able to read any document located in public_html directory via http protocol.

* GD library compiled with FreeType fonts (for photo processing) or ImageMagick as an alternative

* Sendmail or Postfix programs for sending emails

* Ability to create Cron Jobs

* 20MB of disk space and 1MB of MySQL DB space for installation

* 8MB of disk space and 50KB of MySQL DB space for an average user

* Your server should allow 15 KB/sec for media streaming capabilities for each user.

If all the above requirements are met on your server then you are ready for installation.

Check the Hosting page to choose among recommended hosting providers.

If you want to add Dolphin to your cpanel automatic installation you should follow these instructions. These instructions are for Hosting providers and/or VPS/Dedicated server holders.


======================

3. dolphin is not installed in shared server since it contains lot of videos etc

4. It is not work with suphp , work only with dso module

Click_be installation error

======================

Warning: shell_exec() has been disabled for security reasons in /var/netenberg/click_be/installer/functions/others.php on line 227

=======================

Solution:

vi /usr/local/lib/php.ini
check disable_functions
remove shell_exec

and install click_be

======================

Monday, November 9, 2009

Httpd failure

root@server [~]# /etc/init.d/httpd start
/etc/init.d/httpd: line 83: 21567 File size limit exceeded(core dumped) $HTTPD -DSSL
/etc/init.d/httpd start: httpd could not be started
root@server [~]#
====================================

Solution: Check the size of the logs....

error_log
====================================

Wednesday, November 4, 2009

Unable to download email attachement

Increase the value of max_exec_time in cpanels php.ini