Archive for March, 2009

phpMyAdmin Error

Tuesday, March 31st, 2009

In a Cpanel server, when you go for the option phpMyAdmin under WHM you might end up with this error :-
=================================
cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
=================================
The problem is with the session path value in the php.ini for phpMyAdmin. The [...]

SSH password-less login

Monday, March 30th, 2009

To enable password-less login using SSH to any linux server do the following. It requires you generate your own personal set of private/public key pair. Consider you have two linux machines HostA & HostB. I am trying to configure password-less login from HostA to HostB
root@HostA # ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in [...]

Enable ftp on plesk

Monday, March 30th, 2009

To enable FTP on Plesk you will need to login to the server using a shell and do the following:-
First check whether ftp is running in the server using “ps” and then check the status using
>>chkconfig ftp_psa status
Now to turn on FTP
>>chkconfig ftp_psa on
and similarly if you want to turn OFF FTP
>>chkconfig ftp_psa off
The FTP [...]

mod_security

Monday, March 30th, 2009

Error :-
=====================
ModSecurity: Access denied with code 500 (phase 2). Match of “rx ^HTTP/(0\\\\.9|1\\\\.0|1\\\\.1)$” against “REQUEST_PROTOCOL” required. [file "/usr/local/apache/conf/modsec2/rules.conf"] [line "38"] [id "340000"] [msg "Bad HTTP Protocol"] [severity "ALERT"] [hostname "www.xxxxxx.com"] [uri "/favicon.ico"] [unique_id "OuT1Q0VI6HoAAQvX@BIAAAAJ"]
=====================
You might receive this error at times if mod_security is not properly configured. If you happen to receive this error make the [...]

Time Zone

Monday, March 30th, 2009

How to echo the time in a specified zone ?
Use the command zdump, which is called the time zone dumper
for eg :-
linuxcom:~ # zdump EST
EST  Mon Mar 30 06:31:21 2009 EST
linuxcom:~ # zdump IST
IST  Mon Mar 30 11:31:38 2009 GMT
Check out the man page for the same for more options.
And if you want to change [...]

Yet another Fantastico Error

Monday, March 30th, 2009

Scenario :-  You might receive the following error while going for the Fantastico option in Cpanel although the Fantastico installation appears fine from WHM :-
Fantastico is not installed at the default location
/usr/local/cpanel/3rdparty/fantastico. Either move the Fantastico directory
from it’s current location to /usr/local/cpanel/3rdparty/fantastico OR
enable ioncube loaders in WHM -> Tweak settings.

This error won’t get fixed if [...]