Fixing su: cannot set user id: Resources temporarily unavailable in Linux VPS

Last night when i login into my VPS, i found a weird issue in my VPS.
When i type a su command below it shows :

#su -
su: cannot set user id: Resource temporarily unavailable

After searching and googling few minutes, i found a quick resolution to fixing this issue.
This is all about VPS limit.

Edit limit.conf below or change if needed.

#vi /etc/security/limit.conf
#### add/change on these line below:
*    soft    nproc    2047

Steps To Fixing Linux Crash Filesystem After Power Outage.

Sometime if we didn't properly shutdown a server that running linux, it will cause a crash for the filesystem.
We need a tool that able to repair it immediately, the tool is FSCK or file system consistency check.

Below is the fsck command :

Usage: fsck [-sACVRTNP] [-t fs-optlist] [filesystem] [fs-specific-options]

Example :

I have a drive /home or /dev/sda3
Then the next step is we need a root access to run the command.

How To Install Apache, PHP and MySQL Latest Version In Windows 7

How To Install Apache, PHP and MySQL Latest Version In Windows 7

This is a short tutorial to install apache, php and mysql latest for windows 7 in my laptop.
First, We need to preparing packages

Download Apache 2.4.4

1. Create folder "TEMP" without quote in your Drive C: and click on that "TEMP" folder
2. Download Windows Apache Packages

How To FSCK Your Linux LVM Partition

Yesterday i have a problem when my computer can't booting up.
After checking more detail i found that i need to FSCK my partition.

The problem is my linux partition using LVM
Then after googling it for a while

I Found a simple steps to fsck Linux LVM Partition.

First We need to have a linux livecd / rescue cd
Then after reboot it into the livecd and we can see a linux prompt

Then type few lines below to fixed it.
$vgchange --ignorelockingfailure -ay
$lvscan --ignorelockingfailure
$fsck -y /dev/VolumeGroup/LVname

Fixed Error: curses.h: No such file or directory on CentOS

Sometimes when you install some packages, it will automatically find others dependency
one of them may be curses.h: No such file or directory

in this case i'm using CentOS as a server.
So we will need to install ncurses-devel and ncurses using yum.

Below is the step to install it.

1. Login as root into your CentOS server
2. Type a command line below
# yum install ncurses-devel ncurses

If everything success then you are good to go.

How To Moving All Websites Content Using Wget

Last Week i want to moving a large sites from one server to a new server.
There is a few method to moving all websites content to a brand new server,
First we can using RSYNC, FTP and WGET

In this tutorial i want to using WGET that will moved all sites content in a single line using FTP protocol

We need to prepare a FTP Login from an Old Server that currently host the websites
example :
ip new server :
user : new
pass : newpassword123

FreeBSD Upgrade Packages Stop at pkg-config-0.25_1

When i want to upgrade all packages using portmaster to the latest packages
The portmaster shows me something like below :

===>  pkgconf-0.8.5 conflicts with installed package(s):
      They install files into the same place.
      Please remove them first with pkg_delete(1).
*** Error code 1
Stop in /usr/ports/devel/pkgconf.

To solved this problem , We can just fixed it using pkg_delete

Simple Tutorial to Banned Country IP Address With CSF

I just figure it out a simple way to banned country ip address using CSF.

If you are using a CSF you can edit your CSF config files like below :

Edit csf.conf

#vi /etc/csf.conf

Edit two letters country code in CC_DENY files.
Example : i want to banned US, ID, HK country

CC_Deny = US,ID,HK

If you want to banned others country.
You can take a look link below for the Country Code

How To Install Apache 2.x To Work With GnuTLS

There is another way to using ssl with apache 2.x
The common solution is using OpenSSL with Apache 2.x

But right now i trying to get Apache 2.x to work with mod_gnutls

FYI, GnuTLS support TLS 1.2 and TLS 1.1 that also supported by OpenSSL
But GnuTLS will not supported SSL 2.0

We need to prepare anything related to GnuTLS to work with Apache 2.x
First we need to install those packages below :

Login as Root

1. GnuMP

#mkdir /root/temp
#cd /root/temp

How To Integrate AWStats With Apache Webserver in FreeBSD

What is AWStats ?

AWStats is a web statistics and log analyzer which create a statistics reports based on rich data from apache or server logs.

First We need to install AWStats in FreeBSD server
- Login into the FreeBSD server using SSH and root access
# cd /usr/ports/www/awstats
# make
# make install
# make clean

After AWStats is installed on the server we will need to configure our apache webserver.
Usually if we are installed Apache from ports then the apache config files will be stored in

Facebook Fans