apache crashes due to high traffic

June 17th, 2008

Although this wasn’t actually the all time solution, i’ll just post this to have a bit of solution to this problem. I used this due to some of the few reasons.

  1. there are too much waiting http requests that apache is queueing up and ends up to a crash.
  2. most of the requests gets timed out.
  3. server resources is not maximized at all.

know the capacity of your server, experiment on these settings.

ServerLimit - default setting is 256
MaxClients - normally equal to or less than ServerLimit

Here are the default settings as far as i am concerned:

<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>

Slowly increment the value of MaxClients and evaluate your web servers behaviour. Increasing this value will also increase server load.

If the ServerLimit directive is not found, you just simply add in like the above. MaxClients cannot be greater than the value of ServerLimit otherwise apache won’t start.

<IfModule prefork.c>
ServerLimit 750
StartServers 30
MinSpareServers 10
MaxSpareServers 30
MaxClients 750
MaxRequestsPerChild 3000
</IfModule>

Read ServerLimit documentation from apache website

Notes: I’m adding these posts for myself and anyone who will want it. if you have anything that can benefit anyone in the above topic, please do so. if you just want to criticize the way i write. get lost. i’m not a writer. :P

how to dump mysql database from command line

June 17th, 2008

From shell:

mysqldump -h localhost databasename > filename.sql

if you need to enter a password:

mysqldump -h localhost -p databasename > filename.sql

databasename is the name of the database you want to dump
filename.sql will be the target fila of the dumped database

Someday the scales of justice will be perfectly balanced

June 5th, 2008

I saw under the sun:

In the place of judgment, wickedness was there;
and in the place of righteousness, iniquity was there.

—Ecclesiastes 3:16

Trusting God turns problems into opportunities

May 15th, 2008

Neither this man nor his parents sinned, but that the works of God should be revealed in him.

—John 9:3

Because the Lord is watching over us

May 14th, 2008

As an eagle stirs up its nest, hovers over its young, spreading out its wings, . . . so the Lord alone led [Jacob].

—Deuteronomy 32:11-12

Because the Lord is watching over us, we don’t have to fear the dangers around us.

Busy days

May 14th, 2008

Been quite busy for the past few months, or should i say. I was always busy, period. haha… anyway, it’s been a while again since the last post, birthday’s passed. etc. etc. etc. and still can’t get really get much time to write! so i simply thought i’ll just write some passages that i get to read daily.

Actually someone is just passing passages over to me on a daily basis so i’ll just share it here. To share the blessings. :D

Kill multiple windows process forever!

March 13th, 2008

Hey guys, ever wondered how you can shut those ugly pop ups that surprises you computing days? these crazy adwares hidden from within your disk drives, that even if you install anti spywares, anti virus and adware removals, they still keep on coming back?
i’ve created a cool tip on kabarkada blogs on this read about Kill multiple windows process forever!

enjoy!

Migrating from Mail Enable to Exim Courrier

May 23rd, 2007

I’ve migrating my accounts from a Windows 2003 server, using Mail Enable to handle emails and powered by helm control panel. Since most of the users requirements are mostly linux supported. i’ve migrated the server to a CentOS Server, and is running a Cpanel Control panel.

I’ve been scavenging all over the net for a fast way to do it but to no avail. Then came the emails where problem started to be realized. I also need to copy users email to the new server!

Migrating from one linux box to another is quite an easy task, but this is quite different. So again, i then tried to google if there are any information on how to migrate mailenable mails to exim, since cpanel uses exim. but again, to no avail. So i’ll have to figure it out myself.

tried opening Mail Enables post offices and noticed that it resembles the courrier MTA, so i assumed mail enable uses courrier, which i didn’t bother realizing before.

So, what i did was to copy the mails from the Inbox folder of a certain user, and pasted them to the “cur” folder in the linux box corresponding to the users mail directory.

gladly it works, unfortunately for me, i’ll have to do that on each and every email account on the server. This is bad. :(

Looking to hire LAMP Programmer and Web Designers

May 9th, 2007

INTERMEDIATE /SENIOR PROGRAMMER

We are looking for an intermediate to advanced programmer to work remotely with our project managers on projects as they come in.

The programmer will be expected to follow directions provided by our project managers in plain English and work with the designer to incorporate the code into the web pages. Requirements:

  • Strong English skills
  • University degree in Computer Science or equivalent work experience
  • Intermediate to advanced PHP skills
  • Javascript validation
  • Intermediate SQL skills
  • Documents all code

Assets:

  • E-commerce / CMS experience a strong asset
  • Knowledge of AJAX methodology / SAJAX toolkit a strong asset
  • Open source knowledge, participation, and experience an asset
  • Database modeling an asset

Other

  • Able to work with little supervision towards a goal
  • Able to be proactive and identify potential design issues
  • Documents all code
  • Organized
  • Quick learner
  • Willing to learn new programming languages & methods
  • Punctual and dedicated
  • References a strong asset

INTERMEDIATE/SENIOR WEB DESIGNER

We are looking for an intermediate to advanced web designer to work remotely with our project managers on projects as they come in.

The designer will be expected to follow directions provided by our project managers in plain English and work with the programmer to incorporate the resulting code into the web pages.

Requirements:

  • Strong English skills
  • Proficient in Adobe Illustrator, Photoshop, and Imageready
  • Expert in W3C compliant HTML design
  • Expert in W3C compliant CSS design
  • Advanced in Flash Animation, Flash video FLV, and Quicktime video

Assets:

  • Action Scripting is a strong asset
  • Print media (300 DPI, bleed lines, CMYK process) is an asset
  • Multimedia editing (audio / video) is an asset

Other:

  • Able to work with little supervision towards a goal
  • Able to be proactive and identify potential design issues
  • Organized
  • Quick learner
  • Punctual and dedicated
  • References a strong asset

Send resume and desired Salary to info [AT] kabarkada [DOT] net

Learn to make CSS Based websites with PHP and AJAX from scratch

February 14th, 2007

If you are looking for a workshop that combines the three latest technologies in webmosphere. Now here is your chance to learn from the experts….

for more details visit: Learn to make CSS Based websites with PHP and AJAX from scratch workshop