Archive for the ‘Error and solution’ Category

Incompatible archive: PCLZIP_ERR_BAD_FORMAT

Wednesday, March 10th, 2010

Error : Are you getting this wordpress error whilst trying to automatically update wordpress or a plugin

Incompatible archive: PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature

Solution :

The error due the disk space is full of your account.  You need to upgrade your hosting plan or deleted some unwanted files from your account.

 

Remove IP from Brute Force Protection

Monday, February 22nd, 2010

How to remove blocked  ip address from the Brute Force Protection by using SSH  ?

When WHM locks out an user account, especially “root”, the best way is to wait for 10 minutes to see if the account will be unlocked. If the locks persists, webmaster and administrator who still can remote login via SSH to the server as root can manually remove the lockouts via following steps:

mysql> use cphulkd;

 

mysql> BACKUP TABLE `brutes` TO ‘/var/lib/mysql/cphulkd-bak’;

mysql> BACKUP TABLE `logins` TO ‘/var/lib/mysql/cphulkd-bak’;

Above command will backup the brutes table, the main table used by cPHulk to record locked accounts and denied IP addresses.

mysql> DELETE FROM `brutes`;
mysql> DELETE FROM `logins`;

Above commands will remove all blocked IP addresses and locked accounts from the system, enabling full access again

mysql> quit;

 

Done

Warning: POST Content-Length of

Thursday, February 18th, 2010

Error  : Warning: POST Content-Length of 9897293 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

Solution:

If you are facing same error in joomla then you need to increase the “post_max_size”  in php.ini file

post_max_size =8M

Replaced with

post_max_size = 12 M

Done

Redirect domain to .cgi file

Wednesday, February 17th, 2010

If you want to redirect your domain

http://domain.co.uk

to

http://domain.co.uk/cgi-bin/test/subdirectory/test.cgi file

then add the following rewrite rule in .htaccess file

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

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.domain\.co\.uk$ [NC]
RewriteRule ^/?$ "http\:\/\/www\.domain\.co\.uk\/cgi-bin\/test\/subdirectory\/test\.cgi$1" [R=301,L]

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

Or

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

http://domain.com

to

http://domain.com/cgi-bin/subdirectory/test.cgi

then add the following rewrite rule in .htaccess file

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

RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^domain.com$
RewriteRule ^/?$ "http\:\/\/domain\.com\/cgi-bin\/subdirectory\/test\.cgi" [R=301,L]

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

Done

Warning: shell_exec() has been disabled for security reasons in

Wednesday, February 10th, 2010

Warning: shell_exec() has been disabled for security reasons in

You would receive the above warning message while accessing Fantastico through cPanel.

Please check if the below options are selected in WHM (you need to access WHM as root)

Login to your WHM control panel as root scroll down to the PHP section and make sure the
IONCUBE PHP Loader option is selected.

Then log into your server as root using SSH and execute the following command:
#/scripts/makecpphp

Above command will check the php config files and will make the changes if required..

CodeIgniter redirection problem

Tuesday, February 9th, 2010
If CodeIgniter is installed on the linux server and the .htaccess file is correct but your domain is not working properly then you need to set the  “uri_protocol" in the "system/application/config/config.php” file is as follows.
$config['uri_protocol']    = "REQUEST_URI";

/bin/pwd: failed to stat `.’: Permission denied

Thursday, January 21st, 2010

Error :
After run /scripts/fixcommomproblems
Que this message

Code:

Processing mailman
/bin/pwd: failed to stat `.’: Permission denied
Processing zarautzi
/bin/pwd: failed to stat `.’: Permission denied
Processing alphaele
/bin/pwd: failed to stat `.’: Permission denied
Processing transjus
/bin/pwd: failed to stat `.’: Permission denied

Solution:

Hello,It seems to suid is not set for /bin/pwd binary please run following command to fix it.

chmod u+s /bin/pwd

Done

Fatal error: Allowed memory size of

Monday, January 11th, 2010

Error : Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2420 bytes) in /home/username/public_html/thumbnail.php on line 49

Solution : To change the memory limit for one specific script by including a line such as this at the top of the script:

Open the file /home/username/public_html/thumbnail.php

and

add the following  code below the code <?php ”

ini_set("memory_limit","128M");

Done

suEXEC mechanism enabled (wrapper:

Tuesday, December 22nd, 2009

Not able to start httpd & the error is as below

Configuration Failed
[Tue Dec 22 11:24:33 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Tue Dec 22 11:24:33 2009] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock

Checking your disk shows that you have plenty of space. The problem is that apache didn’t shut down properly, and it’s left myriads of semaphore-arrays left, owned by my apache-user. Run:-

ipcs -s | grep nobody

Removing these semaphores immediately should solve the problem and allow apache to start.

ipcs -s | grep nobody | perl -e 'while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}'

Done

database not connected

Tuesday, December 15th, 2009

Error : Your all database details is correct but the database is not connected  in any application.

Solution : The problem due the ” sql.safe_mode”  is “On” in php.ini file.  You need to turn off the sql.safe_mode in server  php.ini file

sql.safe_mode = Off

Done