Archive for the ‘Linux system’ Category

How to Cron Jobs In 5 Minutes working?

Sunday, January 8th, 2012

In Linux, the crontab command is used to schedule execution of commands at certain time intervals whether it be hourly, daily, monthly or every x amount of minutes. This article is designed to show you the simple way of understanding crontab. Understanding the fields: # (Use to post in the top of your crontab) # [...]

NameVirtualHost + Multiple domain on centos

Thursday, January 5th, 2012
NameVirtualHost + Multiple domain on centos

It’s the example to configure virtual hostings. Following example is done as domain name[topupdeals.com (root directory[/var/www/html])], Virtual domain name[marketing.dvtrust.com (root directory[/home/www/public_html])]. Before doing it, it’s necessarry to add new doman name in your DNS first. [1] Configure httpd for Virtual Hostings [root@www ~]# vi /etc/httpd/conf/httpd.conf # line 972: uncomment NameVirtualHost *:80 # at the last [...]

How To Disable a User Account in Linux Shell

Monday, November 28th, 2011
How To Disable a User Account in Linux Shell

This short howto will show how to disable a user account under linux. This might be useful in the situation where you don’t want to permanently remove the user, but you just want it disabled and no longer able to use the system. The user will still receive emails for example, but he will not [...]

Upgrade CentOS 5 to PHP 5.2

Saturday, November 12th, 2011

When installing latest CentOS version 5.5 you will notice that when you install PHP, the latest version you are getting is version 5.1. In order to add the latest CentOS version of PHP which is 5.2.10 is to enable CentOS 5 Testing Repositories. How To: 1. vi /etc/yum.repos.d/CentOS-Testing.repo # CentOS-Testing: # !!!! CAUTION !!!! # [...]

How to fix deprecated pam_stack module error

Saturday, November 12th, 2011

In this article we will see an effective way of fixing the Linux deprecated pam_stack module error for pam.d. If you access your /var/log/secure log file you might notice different services including sshd with the following error: Deprecated pam_stack module called from service “sshd”. The workaround of this is simple Edit /etc/pam.d/sshd Uncomment #auth required [...]

Add Jobs To cron Under Linux or UNIX?

Tuesday, November 8th, 2011

How do I add cron job under Linux or UNIX like operating system? Cron job are used to schedule commands to be executed periodically. You can setup setup commands or scripts, which will repeatedly run at a set time. Cron is one of the most useful tool in Linux or UNIX like operating systems. The [...]

3 Steps to Perform SSH Login Without Password Using ssh-keygen & ssh-copy-id

Tuesday, November 8th, 2011

You can login to a remote Linux server without entering password in 3 simple steps using ssky-keygen and ssh-copy-id as explained in this article. ssh-keygen creates the public and private keys. ssh-copy-id copies the local-host’s public key to the remote-host’s authorized_keys file. ssh-copy-id also assigns proper permission to the remote-host’s home, ~/.ssh, and ~/.ssh/authorized_keys. This [...]