How To Change Your Linux Server’s Hostname

April 21st, 2008 · No Comments

To change your server’s hostname manually on CentOS / RHEL is quite easy. Simply edit the file /etc/sysconfig/network with your favorite text editor and change the value of the HOSTNAME parameter to the new hostname. Your configuration file should look something like this:
/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=”newhostname.domainname.com”
GATEWAY=”192.168.0.1″GATEWAYDEV=”eth0″
FORWARD_IPV4=”yes”
You’ll also need to replace all occurencies of your old hostname in /etc/hosts. [...]

Linux Basics: Scheduling Tasks Using Cron

April 17th, 2008 · No Comments

There are times when you might need to automate the execution of some particular tasks on your web server. Some of these tasks could be maintenance tasks, backups, monitoring, etc. Just as with Microsoft Windows, Linux / Unix workstations and servers have the possibility to run shell commands periodically on a given schedule.
The service in [...]

Linux Basics: Understanding File Ownership And Permissions

March 24th, 2008 · No Comments

While the basics of web hosting are not that complex, it’s important to know what you’re doing in order to keep your web server efficient and secure.
As many web servers out there are running on Linux while most workstations are running on Windows, mastering Linux administration concepts can be confusing at first. Today we’re going to [...]

Linux Basics: Where Are Those Hidden Files?

March 17th, 2008 · No Comments

Unlike MS Windows’ file system (NTFS), hidding a file on Linux is not done by setting it’s hidden attribute: it’s done by setting its name. That’s right. File names that start by a “.” are automatically hidden. Here are a few examples of common hidden files on Linux systems:

.htaccess
.profile
.bash_history

To list all files including hidden ones [...]

Find Out How Much Space A Directory Is Using On Linux / Unix

March 12th, 2008 · 1 Comment

Sometimes it’s useful to be able to find out how much disk space a directory is taking. While there are some web interfaces or desktop applications that allows you to do that, it’s always useful to know how it can be done through a command shell.
The DU Command
To find out how much space is being [...]

How To Use “Screen” To Keep Session Alive Upon Network Failure

February 18th, 2008 · No Comments

When you’re working remotely on a Linux server through SSH, you are at risk of losing important data if you encounter a network failure. Worst than that, you could even end up “breaking” your Linux box or locking yourself out. Think about a critical component installation interrupted by a network problem. That could mean disaster [...]

How To Prevent SSH Root Access

February 7th, 2008 · 1 Comment

While this is a well know security measure, I still see so many Linux servers that allow root login through SSH that I thought I’d post it here.
Before you make change to your Linux box, make sure that you’ve got a normal user account created otherwise you’ll lock yourself out unless you’ve got physical access [...]

How To Create Redirects

January 21st, 2008 · No Comments

Sometimes you need to redirect visitors to a different URL than the one they came to. This could be for various reasons: a moved file, protecting your links, setting up friendly URLs, etc.
There are many ways to achieve that, some at the server level and some at the browser level. Let’s see a few ways [...]

Dedicated Servers
 
VPS
Website Hosting
 

Recent Comments

Recent Webmasters

Hosting Type :
Monthly Price :
Storage :
Transfer :
Sort By :
Search