How to – si altele

August 19, 2010

How to Check if Apache is Running Prefork or Worker

Filed under: Linux — Tags: , , , , — admin @ 8:36 pm

Today I want to change some settings on one of my server. But when to change I didn’t know if it’s prefork or worker module at the power of my apache.

So what to tune ?

Well this information is compile in Apache and is not loaded as module.

So if you want to find out what MPM module Apache is running you should run: httpd -l

And the output will be like this:

Compiled in modules:
core.c
mod_authn_file.c
mod_authn_default.c
prefork.c
http_core.c
Hope this will help someone.

June 16, 2009

Mytop Error in option spec: “long|!”

Filed under: Linux — Tags: , , — admin @ 8:06 pm

Recent mytop a inceput sa nu mai mearga pe versiunile mai noi de Centos

Eroarea este:

#mytop
Error in option spec: “long|!”

Ca sa repari, editezi /usr/bin/mytop, faci un search dupa  “long|!” => \$config{long_nums}, si pui un # in fata, salvezi si ar trebui sa functioneze.

Multa bafta

March 31, 2008

Fix syslog with FC2

Filed under: Linux — Tags: , , — admin @ 2:20 pm

If you have Fedora Core 2, and recive mail from logrotate with

etc/cron.daily/logrotate:

error: error running postrotate script

(more…)

How-To: Mod_Security

Filed under: Linux — Tags: , , — admin @ 2:10 pm

Mod_Security
This guide is going to show you how to install and configure mod_security which will help protect your server from exploits that are passed though apache. Mod_security does this by inspecting the information sent in apache and filtering out all of the “bad” requests as determined by the set of rules specified in the httpd.conf.

(more…)

How-To: Secure your /tmp directories

Filed under: Linux — Tags: , , , — admin @ 2:09 pm

How-To: Secure your /tmp directories

Every system needs temporary folders that any user is able to read and write BUT these directories should not be able to execute programs or scripts. Though this will only protect you from somebody running the script directly it will help with a large portion of the automated rootkits and trojans that script kiddies use.

(more…)

Powered by WordPress