Linux

Setting up a Static IP and route in Linux

The first step is to setup the interface with an IP and a netmask:

 

# ifconfig eht0 192.168.1.25 netmask 255.255.255.0 up

 

Next we need to tell where we want to route the information to:

 

# route add default gw 192.168.1.1 eth0 

 

The above command is saying that we want a default gateway on interface eth0 to be 192.168.1.1 which is a router.

Pushing / Forwarding Email from one server to another.

When transfering domains from one server to another, sometimes the emails get delievered to the old server after the DNS has been updated. When that happens, you can run the following script to forward the emails to the other server, or to a different email address.

 

Plesk Backup Error: Specified file is not accessible

 I just did a kernel upgrade on the server and after making sure that the IPs and services were working properly I tried to backup a domain through the web interface and got this error:

 

Plesk Backup Error: Specified file is not accessible

 

I know that the location for Plesk back up files are located here:

 

/var/lib/psa/dumps

 

FTP per_source_limit Error

While trying to download and upload files via FTP, I was getting

Oct 11 15:19:39 209443-www2 xinetd[12269]: EXIT: smtp status=1 pid=8309 duration=0(sec)
Oct 11 15:19:39 209443-www2 xinetd[12269]: FAIL: ftp per_source_limit from=xxx.xxx.xxx.xxx

In order to fix this I had to modify the /etc/xinet.d/ftp_psa file. I did so by adding the bold lines to the file:

Showing Hidden Files in ProFTPD

Files that begin with a . (dot) are technically hidden and don't show up in FTP clients such as FileZilla. To get get .htaccess files to show up alone with other hidden files add the following to the <Global> sections:
 
ListOptions "-la"
 

Plesk Disk Limit not Affected by User Interaction

Problem

Plesk states that the domain's alloted disk space is unlimited by when attempting to upload files, an error is thrown stating the quota has been reached.

Debugging PHP Sites with Netbeans and XDebug

Prequesists and Assumptions

This HowTo/Tutorial assumes the following you have:

  • Basic Knowledge of Gentoo or Fedora (ie, installing and editing files)
  • Working local Apache Server with basic knowledge of said server
  • General knowledge of Netbeans
  • Netbeans installed

The following is requred:

Logging out Other Users

There's been times that I forget to log off my computer at work. I do have the ability to VPN into the office and ssh into my box. From there I can log myself out:
Find out which terminal I forgot to log myself out of:
# who
Kill the terminal I'm logged in at, if I am logged in at pts/0, then I would issue the following command:
# skill -KILL pts/0
To log out users based on user name:
# skill -KILL -u paulus

Upgrading PHP on Red Hat EL

By default, Red Hat EL has an out dated version of PHP. To get a newer version of PHP on the system issue the following commands:
# wget http://www.atomicorp.com/installers/atomic.sh
# sh atomic.sh
# yum upgrade php

Making a Linux Plesk 8.6 Server PCI Compliant

To make a server that is running Plesk PCI compliant follow these steps:
 

Syndicate content