Add Private Name Servers to Plesk Domain

To Create and Register Your Domain Hosts in Parallels Plesk Panel Log in to Parallels Plesk Panel as an administrator. Go to the Websites & Domains tab, and then click DNS Settings. For the row with the Record Type of NS, click your domain name, change the following, and then click OK: Record type — … Read more

Testing Using Curl

Curl can be helpful in testing many things including web sites. See if curl is installed Using ssh: This will tell you if the system has curl installed. But you need to have libcurl, and the curl PHP extension to be able to use curl in PHP. To see if it’s enabled, simply do: in … Read more

Find All The Files Owned By a Particular User / Group

Find file owned by a group Use the following syntax:find directory-location -group {group-name} -name {file-name} Where, directory-location : Locate the file in this directory path. -group {group-name} : Find the file belongs to group-name. -name {file-name} : The file name or a search pattern In this example, locate or find all files belongs to a … Read more

Change OpenSSH Port CentOS

Want to change the ssh port for ssh? Here is a good tutorial. (Note: If you are making these changes – ssh to the server and keep the terminal open as you make the changes. Test with a new terminal. This way if something is amiss – you are not locked out.) Edit /etc/ssh/sshd_config, enter: … Read more

Verisign SSL Certificates

Verisign SSL Certificates You have generated a certificate request (CSR and private key) using plesk. You would like to know how to complete the certificate request process. The Verisign digital certificate can be downloaded in the X.509 format as three files. The three files are designated as: 1) End Entity Certificate 2) First Intermediate Certificate … Read more

Migrate MySQL from Slaved Drive

Migrate MySQL from Slaved Drive 1. Mount the slave drive. We’ll assume you mounted it at /media/slave Find the drive: sdb is the drive – the slaved drive after the reinstall Check to see if it is ext3 or ext4 Mount according to ext3 or ext4 Add to fstab 2. Edit the MySQL config file … Read more

Optimize Mysql

Did you know that mysql comes with configuration files for better optimization? These files are located at: /usr/share/doc/mysql-server-5.1.71/my-huge.cnf /usr/share/doc/mysql-server-5.1.71/my-innodb-heavy-4G.cnf /usr/share/doc/mysql-server-5.1.71/my-large.cnf /usr/share/doc/mysql-server-5.1.71/my-medium.cnf /usr/share/doc/mysql-server-5.1.71/my-small.cnf /usr/share/man/man5/openssl.cnf.5ssl.gz Or /usr/share/mysql/my-huge.cnf /usr/share/mysql/my-innodb-heavy-4G.cnf /usr/share/mysql/my-large.cnf /usr/share/mysql/my-medium.cnf /usr/share/mysql/my-small.cnf Stop mysql # service mysqld stop Stopping mysqld: [ OK ] backup the original my.cnf file. # mv /etc/my.cnf /etc/my.cnf.original Move the new config file to … Read more

Mytop

Install the repository CentOS 5.x rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm CentOS 6.x 64 bit rpm -Uhv http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm Install mytop yum -y install mytop Configuration Odds are, you will get an error initially running this program unless you configure it first. whereis mytop Example: /usr/bin/mytop or /usr/local/bin/mytop nano /usr/bin/mytop or nano /usr/local/bin/mytop Locate the following lines: my %config … Read more