Category Archives: Linux

5 Simple Commands to Monitor the Performance of Your Linux VPS

The orders are accessible under all flavors of Linux and can be helpful to screen and locate the genuine reasons for execution issue. This rundown of orders appeared here are sufficient for you to pick the one that is appropriate for your checking situation.

images

It’s diligent work observing and investigating Linux execution issues, however it’s less demanding with the right devices at the opportune time. Here’s the most 5 basic summons rundown of Linux Monitoring Tools on the Internet:

1) Top:

Linux Top command is an execution observing project which is utilized regularly by numerous framework directors to screen Linux execution and it is accessible under many Linux/Unix like working frameworks. The top summon used to dipslay all the running and dynamic continuous procedures in requested rundown and redesigns it routinely. It display CPU usage, Memory usage, Swap Memory, Cache Size, Buffer Size, Process PID, User,Commands and substantially more. It likewise indicates high memory and cpu utilization of a running processess. The top charge is much userful for framework executive to screen and make right move when required. How about we see top summon in real life. This is a little device which is pre-introduced on numerous unix frameworks. When you need a review of the considerable number of procedures or strings running in the framework: top is a decent apparatus. Request forms on various criteria – the default of which is CPU.

2) VmStat:

Linux VmStat command used to show measurements of virtual memory, kernerl threads, disks, CPU activity and substantially more. As a matter of course vmstat charge is not accessible under Linux frameworks you have to introduce a bundle called sysstat that incorporates a vmstat program. vmstat or virtual memory insights is a little inherent apparatus that screens and shows a rundown about the memory in the machine.

3) Lsof:

Lsof order utilized as a part of numerous Linux/Unix like framework that is utilized to show rundown of all the open records and the procedures. The open records included are plate documents, system attachments, channels, gadgets and procedures. One of the primary explanation behind utilizing this charge is the point at which a plate can’t be unmounted and presentations the mistake that records are being utilized or opened. With this commmand you can without much of a stretch recognize which records are being used.

4) Htop:

Htop is an abundantly progressed intelligent and continuous Linux process observing apparatus. This is much like Linux top charge yet it has some rich elements like easy to use interface to oversee process, alternate way keys, vertical and flat perspective of the procedures and considerably more. Htop is an outsider device and does excluded in Linux frameworks, you have to introduce it utilizing YUM bundle chief device.

5) Psacct or Acct:

Psacct or acct apparatuses are exceptionally valuable for checking every clients movement on the framework. Both daemons keeps running out of sight and keeps a nearby watch on the general movement of every client on the framework furthermore what assets are being devoured by them.

These devices are extremely helpful for framework chairmen to track every clients action like what they are doing, what charges they issued, the amount of assets are utilized by them, to what extent they are dynamic on the framework and so on.

If you are planning to buy linux vps hosting, contact Strad Solutions. We provides cheap linux vps with control panel and SSH.

How to move website to new host by using cpanel?

Step1: Login to your cPanel

 

Step 2: Click on the “File Manager”

 

Step 3: It will prompt with a pop-up menu ask for directory.

 

Step 4: Just go to your website files are stored and check the “Web Root” and press “Go.”

 

Step 5: “Show Hidden Files” box is checked

 

Step 6: then click on compress (selesct zip option) to cmpress the file.

 

Step 7: Once Copmpress done then click on download option

 

step 8: After that go to backup wizard and selest your database to take backup of database

 

Step 9: Go to new Cpanel Interface

 

Step 10 : go to Backup Wizard

 

Step 11 : Just click on restore option

 

Step 12: Click on MsSQLDatabase

 

Step 13: Choose the database compress file and upload it

And  for more information

 

Please see the below mentioned video to move the website to new host with cpanel:

 

 

http://www.stradsolutions.com/linux-vps.php

How to install wordpress on Cpanel?

WordPress:

WordPress is a free and open source blogging tool . It is very popular blogging system in use on the web. It is a software which used to create web site.

Installtion Steps:

Step1:Login to cpanel

 

Step2:Got to Software/Services and click to quickinstall

 

Step3:just below of Blog Software there is WordPress, Just click on WordPress

 

Step4:then Click on continue to install wordpress

 

Step5:After that it will ask for your daefault domain details so you have to put it mannually eg: http://yourdomain.com/blog

 

Step6:After that fill the required information which it ask: Admin Email, Blog Title, First Name, Last Name and all

Step7:and then it installed finally you will see a “Congratulations” Message.

For more information Please see this video to install wordpress on Cpanel:

 

 

http://www.stradsolutions.com/linux-vps.php

How to upload website using cpanel?

Cpanel:

Cpanel is the web based control panel which run on Linux operating sytem. It provide graphical interface and designed tool which simplify the process of hosting website.

Steps:

Step1: Login to your cPanel

 

Step 2: Click on the “File Manager”

 

Step 3: It will prompt with a pop-up menu ask for directory.

 

Step 4: Just go to your website files are stored and check the “Web Root” and press “Go.”

 

Step 5: “Show Hidden Files” box is checked if you need to work with the php.ini or the .htaccess files.

 

Step6: Click on Upload Icon

 

Step7 : Click on browse and select your data which you want upload on cpanel

 

Please see below mentioned video for more information

Kindly see the Video to upload the websites:

 

 

http://www.stradsolutions.com/linux-vps.php

 

How to install Agenti control panel on ubuntu?

Introduction:

Agenti is an open source linux web based control panel. It has graphical interface like webmin. Due to graphical interface very easy to use.
Installation steps:

Step 1: sudo su

Step 2: apt-get update     –>to download the latest package file

step 3: wget http://repo.ajenti.org/debian/key -O- | apt-key add –
To download the key

Step 4: echo “deb http://repo.ajenti.org/ng/debian main main ubuntu” >> /etc/apt/sources.list     —> to add repository to source list
Step 5: apt-get update && apt-get install ajenti -y       —>To update and install the ajenti package

Step 6: Service ajenti restart        —-> to restart ajenti service

Step 7: Go to URL         —-> https://ip:8000

The default username is root and password is admin.
http://www.stradsolutions.com/managed-dedicated-server.php

How to change root password using single user mode in ubuntu?

Single USer Mode:
Single user mode is also known as Runlevel-1 in unix operating system.
Single user mode is used in situation when user cannot login into the system.
We can change the root password by using single user mode in unix/linux.
Follow the steps to change the root password by using single user mode or runlevel-1:

Step1: start your system and press”Shift” key continuously, once grub loader come then

Step2: select first line (i.e Ubuntu,with Linux 3.2-generic-pae)

Step3: Press ‘e’ to edit the grub

Step4: go to “linux /boot/vmlinuz-3.2………….. ro quite splash $vt_handoff”

Step5: Replace “ro quite splash $vt_handoff” with “rw init=/bin/bash”

Step6: After that press “cltl-x” to boot with single user mode

Step7: you will get prompt of single user mode.

Step8: type command
#password root
it will ask for new password

Step9: After that sync and reboot the system

#sync
#init 6

 

http://www.stradsolutions.com/linux-vps.php

How to install Webmin on Linux?

Webmin: It is a web based interface for unix/linux. you can make user account, Setup DNS, Install apache and much more.

Installation Steps:

1. yum install wget

2. yum install -y httpd

3. systemctl start httpd

4. systemctl enable httpd

5. yum install -y mariadb mariadb-server

6. systemctl start mariadb

7. systemctl enable mariadb

8. mysql secure installation

9. yum install -y php php-mysql

10. sytemctl restart httpd

11. wget http://prdownloads.sourceforge.net/webadmin/webmin-1.690-1.noarch.rpm

12. rpm -U webmin-1.690-1.noarch.rpm

13. systemctl disable firewalld

14. yum install -y iptables-services

15. systemctl enable iptables

16. nano /etc/sysconfig/iptables

just below of :OUTPUT line7 put

-A INPUT -p tcp -m tcp –dport 80 -j ACCEPT

-A INPUT -p tcp -m tcp –dport 10000 -j ACCEPT

and save it

17. systemctl restart iptables

18. go to browser an type

192.x.x.x:10000

 

http://www.stradsolutions.com/linux-vps.php

How to change primary IP address from whm/cpanel and SSH?

Steps in WHM:

You can change primary ip in whm very easily

1.just Log into WHM and go to Basic cPanel & WHM Setup
2. Change Primary IP

And the 2nd way Log in to SSH:

1. Edit it by using
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
to Change the IPADDR

2. vi /etc/sysconfig/network –to change the gateway

3. vi /etc/ips —–> remove the primary ip

4. vi /var/cpanel/mainip —–>replace with old to new

5. vi /etc/hosts —>>>> Replace with old to new IP

6. /etc/init.d/network restart

7. /etc/init.d/ipalias restart

8. /usr/local/cpanel/cpkeyclt —>to refresh the licence.

 

http://www.stradsolutions.com/linux-vps.php

Installing Zimbra Mail server on Cent OS 6.5

Steps:

1. Update your system

#yum update

2. Install prerequisite pakages for zimbra

#yum install sudo sysstat libidn gmp libtool-ltdl compat-glib vixie-cron nc perl libstdc++.i686

3. Modify /etc/host file

#vi /etc/hosts

like this:
127.0.0.1 localhost localhost.local domain
serverip hostname
save it

4. Disable startup service
a. chkconfig postfix off
b. service postfix off
c. chkconfig sendmail off
d. service sendmail stop

5. Modify /etc/sudoers file

#vi /etc/sudoers

comment out * Defaults requiretty * line

6. Disable the firewall

a. chkconfig iptables off
b. service iptables stop
c. chkconfig ip6tables off
d. service ip6tables stop

7. Disable selinux

# vi /etc/selinux/config

SELINUX=disabled

save it

8. reboot it

#init 6

9. Download zimbra and install it

a.     #wget http://files2.zimbra.com/downloads/8.0.4_GA/zcs-8.0.4_GA_5737.RHEL6_64.20130524120036.tgz – See more at: http://www.techtunebd.net/install-configure-zimbra-open-source-mail-server-centos-6-x-rhel-6-x/#sthash.SBel04Nx.dpuf

b.    extract Zimbra tar file using below command
#tar -zxpvf zcs-8.0.4_GA_5737.RHEL6_64.20130524120036.tgz – See more at: http://www.techtunebd.net/install-configure-zimbra-open-source-mail-server-centos-6-x-rhel-6-x/#sthash.SBel04Nx.dpuf

c. #cd zcs-8.0.4_GA_5737.RHEL6_64.20130524120036

d. # ./install.sh –platform-override
It takes 5-10 minutes
Change Domain Name
Change admin password
10.   #su – zimbra

check zimbra status

# zmcontrol status

11. Go to URL
https://ip

 

http://www.stradsolutions.com/linux-vps.php

how to install Apache Solr on a CentOS 7 VPS ?

Apache Solr is an open source enterprise search platform used to easily create search engines which searches websites, files and databases.

 

Please follow the given steps to install Solr :

 

1. Type

yum update

2.  Install the latest version of Java :

yum list available | grep -i jdk

java-1.7.0-openjdk.x86_64

3. Verify that Java is properly installed:

java -version
java version "1.7.0_65"
OpenJDK Runtime Environment (rhel-2.5.1.2.el7_0-x86_64 u65-b17)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

4. The next step is to download and unpack the Solr archive.

cd /opt
wget http://www.bizdirusa.com/mirrors/apache/lucene/solr/4.9.0/solr-4.9.0.tgz
tar -xvf solr-4.9.0.tgz
mv /opt/solr-4.9.0 /opt/solr
mv /opt/solr/example /opt/solr/core

5. Create an init script for the Solr service:

vi /etc/init.d/solr
#!/bin/bash
#
# chkconfig: 2345 20 20
# short-description: Solr
# description: Startup script for Apache Solr Server

SOLR_DIR="/opt/solr/core"
LOG_FILE="/var/log/solr.log"
JAVA="/usr/bin/java -DSTOP.PORT=8079 -DSTOP.KEY=stopkey -jar start.jar"

start() {
echo -n "Starting Solr... "
cd $SOLR_DIR
$JAVA > $LOG_FILE 2>&1 &
sleep 2
RETVAL=$?

    if [ $RETVAL = 0 ]
    then
        echo "done."
    else
        echo "failed. See error code for more information."
    fi
    return $RETVAL
}

stop() {
echo -n "Stopping Solr... "
pkill -f start.jar > /dev/null
RETVAL=$?

    if [ $RETVAL = 0 ]
    then
        echo "done."
    else
        echo "failed. See error code for more information."
    fi
    return $RETVAL
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo $"Usage: solr {start|stop|restart}"
exit 3
esac
exit $RETVAL

6. Set the proper permission for the ‘solr’ script and make Solr automatically start on server boot:

chmod +x /etc/init.d/solr

chkconfig --add solr

7. You can now start Solr using the following command:

/etc/init.d/solr start

 

8.  Once Solr is up and running you should be able to access it through your favorite web browser at
http://server_IP:8983/solr/

 

http://www.stradsolutions.com/linux-vps.php