Posted Wed, 03/13/2013 - 07:07 by sentono
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
Posted Thu, 03/07/2013 - 07:57 by sentono
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.
Posted Mon, 03/04/2013 - 20:24 by sentono
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 http://www.apachelounge.com/download/win32/binaries/httpd-2.4.4-win32.zip
Posted Fri, 12/14/2012 - 04:40 by sentono
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
Posted Fri, 11/16/2012 - 20:48 by sentono
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.
Posted Wed, 11/07/2012 - 21:15 by sentono
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 :10.10.10.10
user : new
pass : newpassword123
Posted Mon, 09/03/2012 - 06:37 by sentono
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):
pkg-config-0.25_1
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
Posted Sat, 08/04/2012 - 23:26 by sentono
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
Posted Fri, 07/20/2012 - 21:38 by sentono
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
Posted Mon, 06/11/2012 - 06:19 by sentono
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
/usr/local/etc/apache22/httpd.conf