Archive

Archive for the ‘General’ Category

Reconfigure Perl CPAN

January 24th, 2009

Warning: file_get_contents(http://ecs.amazonaws.com/onca/xml?Service=AWSECommerceService&AWSAccessKeyId=1TJ8QTQ6ZFCVAJ3X1T02&AssociateTag=ii0c3-20&Operation=ItemSearch&SearchIndex=Books&ResponseGroup=Small,Images&Keywords=cpanel) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /home/manusia2/public_html/wp-content/plugins/amazonfeed/php/amazonfeed.class.php on line 271

I’m having some problems with installing modules with the MCPAN via shell.When I first ran it I let it auto configure and now I cannot install
anything. Is there a way I can force it to run the configure script again ??.. there is some question i found on net while looking for "reconfigure perl MCPAN".. and the solution is so easy….

login to your box, and execute the perl shell again

and then type "o conf init" without double quotes.

now you can reconfigure your MCPAN again..:)

Tags: General

Related posts

General

HyperVM : "Server refused to allocate pty"

January 22nd, 2009

If you are getting a server refused to allocate a PTY after a rebuild please login to HyperVM and the command console and run the following commands from the host node

vzctl exec <veid> /sbin/MAKEDEV tty && vzctl exec <veid> /sbin/MAKEDEV pty

please replace <veid> with the number id of server you want to fix. This will fix the issue. Hope help :)

Tags: General

Related posts

General

Mod_Security.. what is and how to ?

January 17th, 2009

    What Is ModSecurity?

    ModSecurity is a web application firewall that can work either embedded or as a reverse proxy. It provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time analysis.

    It is also an open source project that aims to make the web application firewall technology available to everyone.

    Licensing

    ModSecurity is available under two licenses. Users can choose to use the software under the terms of the GNU General Public License version 2 (licence text is included with the distribution), as an Open Source / Free Software product. A range of commercial licenses is also available, together with a range of commercial support contracts. For more information on commercial licensing please contact Breach Security.

    Note

    ModSecurity, mod_security, ModSecurity Pro, and ModSecurity Core Rules are trademarks or registered trademarks of Breach Security, Inc.

Tags: Apache, firewall, General, modsecurity, protection, security, software

Related posts

General , , , , ,

Fixing RPM Database

January 13th, 2009

I have got 3 servers that give problems when running yum update, ouch :( seems all update is failed.. anyway i try to searching on internet and found it.

1. Check for processes holding the rpm database open (usually in MUTEX/FUTEX states):

lsof | grep /var/lib/rpm

If it finds any, kill -9 them all.

2. Delete any temporary DB files:

rm -fv /var/lib/rpm/__*

3. Rebuild your RPM database:

rpm –rebuilddb -v -v

If you still have problems, a reboot is probably quickest, then repeat steps 2 and 3 above.

also don;t forget to kill all process yum and rpmq

At least i dont have to rebooted the server. after doing those command and try to run update again.. it’s work smoothly :)

Tags: corrupt, database, General, rpm, yum update

Related posts

General , , ,

Repair MySQL Database

January 7th, 2009

Here is some info how to repair all mysql database on your server with simple command.

The mysql database server needs to be running to do any of these checks. Log in as ‘root’ via SSH and:

Shows you if any need repair:
myisamchk –check /var/lib/mysql/*/*.MYI

Then try ’safe-recover’ first:
myisamchk –safe-recover /var/lib/mysql/*/*.MYI

and, if neither that nor this works:
myisamchk –recover /var/lib/mysql/*/*.MYI

Then use the ‘force’ flag:
myisamchk –safe-recover –extend-check –force /var/lib/mysql/*/*.MYI

or:
myisamchk –recover –extend-check –force /var/lib/mysql/*/*.MYI

also you can use the following commands :

mysqlcheck –all-databases -r  # repair databases
mysqlcheck –all-databases -a  #analyze databases
mysqlcheck –all-databases -o  #optimize databases

hope it will help :)

Tags: General, mysql, repair mysql

Related posts

General ,