Migration account server to server cPanel

February 17th, 2012 | Posted by cahpct in cPanel - (0 Comments)

1) on old server: /scripts/pkgacct –skiphomedir account
2) on new server: rsync -vaz -e ssh root@202.20.181.193:/home/cpmove-account .tar.gz /home/cpmove-account .tar.gz
3) on new server: /scripts/restorepkg account
4) on new server: rsync -vaz -e ssh root@202.20.181.193:/home/account / /home/account

Cek Version of Tomcat

#./version.sh
Using CATALINA_BASE:   /usr/local/apache-tomcat6.0
Using CATALINA_HOME:   /usr/local/apache-tomcat6.0
Using CATALINA_TMPDIR: /usr/local/apache-tomcat6.0/temp
Using JRE_HOME:       /usr/local/jdk1.6.0
Server version: Apache Tomcat/6.0.18
Server built:   Jul 22 2008 02:00:36
Server number:  6.0.18.0
OS Name:        FreeBSD
OS Version:     7.2-RELEASE
Architecture:   i386
JVM Version:    1.6.0_03-p4-yamaha_11_jul_2009_13_09-b00
JVM Vendor:     Sun Microsystems Inc.

Generate Key Pair and Generating a Certificate Signing Request (CSR)

#keytool -keysize 2048 -genkey -alias tomcat -keyalg RSA -keystore tomcat.keystore

#keytool -certreq -keyalg RSA -alias tomcat -file <your file name>.csr -keystore tomcat.keystore

download = valicert_class2_root.crt

https://certs.godaddy.com/anonymous/repository.seam;jsessionid=FFsaB0VCh4uykddhEW8H0A__.s2p02jb?streamfilename=valicert_class2_root.crt&actionMethod=anonymous%2Frepository.xhtml%3Arepository.streamFile%28%27%27%29&cid=359875

Installing Root and Intermediate Certificates

#keytool -import -alias root -keystore tomcat.keystore -trustcacerts -file valicert_class2_root.crt

#keytool -import -alias cross -keystore tomcat.keystore -trustcacerts -file gd_cross_intermediate.crt

#keytool -import -alias intermed -keystore tomcat.keystore -trustcacerts -file gd_intermediate.crt

Installing SSL Certificate

#keytool -import -alias tomcat -keystore tomcat.keystore -trustcacerts -file prigad.com.crt

Updating the server.xml Configuration File

#vi /usr/local/apache-tomcat6.0/conf/server.xml

<Connector port="9700" minSpareThreads="5" maxSpareThreads="75" enableLookups="true" disableUploadTimeout="true" acceptCount="100"  maxThreads="200" scheme="
https" secure="true" SSLEnabled="true" keystoreFile="/usr/home/kutukupret/ssl_2017/tomcat.keystore" keystorePass="passwordnya" clientAuth="false" sslProtocol="TLS"
/>

Restart  Tomcat

#cd /usr/local/apache-tomcat6.0/bin/

#./shutdown

#./startup

 

1. First install the apache with this command:

apt-get install apache2

2. Now use locate to find if the mod_rewrite.so is availble on your server:

updatedb

locate mod_rewrite.so

it will found in “/usr/lib/apache2/modules” (more…)

ls -altrh

Ask = Where can I  download the drivers?

Answer = Here http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx

 

How setting compiz

http://www.howtoforge.com/enabling-compiz-fusion-on-ubuntu-11.10-oneiric-ocelot

http://ubuntuguide.net/enable-compiz-desktop-cube-in-ubuntu-11-10-oneiric-unity

PySDM is a nifty Linux program that lets you auto mount partitions and external devices easily without messing with the /etc/fstab file. Editing /etc/fstab can be daunting for new users, so by installing PySDM new users can mount partitions using a GUI tool, because one small mistake will render important partitions unusable.

In this brief tutorial, I’ll show you how to install and use PySDM in Ubuntu 11.10.

Objectives:

  • Install PySDM
  • Configure mount points
  • Enjoy!

To get started, press Ctrl – Alt – T to open Terminal. When it opens, run the commands below to install PySDM

sudo apt-get install pysdm

(more…)

Remove list mailman from command line

November 15th, 2011 | Posted by cahpct in Mailman - (0 Comments)

root@mail:/usr/local/mailman/bin# ./rmlist -a Testmilis

License a Host Without vCenter Server
If you are directly connected to the host through the vSphere Client, you can license the host.

Procedure
1. From the vSphere Client, click the Configuration tab.
2. Under Software, click Licensed Features.
3. Click Edit.
4. Assign a license key.
  ■ Select Assign an existing license key to this host and select a license key from the Product list.
  ■ Select Assign a new license key to this host, click Enter Key, and enter a license key and an optional label for the license key.
5. Click OK.

Using Public Key Authentication in cPanel

October 31st, 2011 | Posted by cahpct in cPanel - (0 Comments)

What is Public Key Authentication?

Public key authentication uses a public and a private key when connecting to a server for added security. Public and private key are similar to a puzzle. They are created together to use during the login/authentication process. The public key resides on the server (the remote location) The private key resides locally on your computer/server. When you attempt to login to a server, the public and private key are compared. If they "match", then you will be allowed to login to the server location.

Why does Public Key Authentication benefit me?

Public Key Authentication keeps the server that your site(s) is(are) on more secure. No longer can your password to access the server be guessed or cracked by hackers. Now, to access the server, both your private key, and a password are needed. Even if someone knows your password, they will need to obtain your private key to gain access. Wthout the private key, they cannot access the server.

This also holds true with everyone else on the server. Now, all their accounts are more secure as well. This reduces the risk of server wide problems and will keep your account and the whole server more secure. (more…)

Install mod_evasive in Debian

October 27th, 2011 | Posted by cahpct in Debian | Security - (0 Comments)
#apt-get install libapache2-mod-evasive