linux

Nagios killing server

I have installed Nagios on my webserver but than server load is very high sometimes. A missconfig is the reason or what is wroing?

Compress dirs and files recursively but exclude self

tar -zcvf /home/everything_whole_server.tar.gz /home --exclude="/home/everything_whole_server.tar.gz"

You can remove -v to turn output off.

403 error after installing Nagios and Webmin (conflict)

After changing from rhel4-cpanel to a debian 5 lenny 64 bit server, I did some configs. I want to install nagios and munin for monitoring the box as recommended. It is a debian 5 root server with lamp(linux + apache 2 + php 5 + mysql 5) and webmin preinstalled. After first login I have installed virtualmin gpl module and migrated some cpanel-backup files. And than Nagios but after nagios I got 403 error of apache on all websites. Checking .htaccess, httpd.conf, chmod and chown did not help.

Ubuntu or CentOS or Fedora Linux or Debian on a Webserver (LAMP) ?

I cannot decide which OS should I take with the EQ4 Server from Hetzner. Really good hardware and much cheaper than Theplanet, 1&1 and Strato etc.

I need a secure and fast server for less than 100 domains and less than 10 active sites with daily 100k+ pageviews and monthly 1-2TB traffic.

I need a good linux distro as webserver with php, mysql, apache, webmin and virtualmin. Later I will need ffmeg. I dont want to pay extra money for control panel like cpanel or plesk. I am not a linux guru therefore it must be easy configurable.

Reasons why i can not decide:

How to install Munin and Nagios on a Redhat box?

I want to install network-server monitoring tools on my server. How can I install Munin and Nagios easily? Thnaks for any help!

Search only in .php files under linux

Sometimes we need to search in only .php, .inc, .txt or template files for a string. Search can take very long time if there are thausend of files or GB-sized files(logs, xml/csv data etc). We can ignore all other files with a find-grep combination and save performance.

find /home/USERNAME -name *.php -exec grep -l 'MYSTRING' {} \;

Server load watch

High loads are horror for server admins. It is sometimes not easy to find which software or script killing the box. Top command shows some information but detailed enaugh. This code below shows more details of top 20 and sorts by cpu usage.

ps aux | head -1 ; ps aux | sort -rn +2 | head -20

Do I need Iptables, Lokkit Firewall and APF same time?

Hello, I am a linux beginner. Why are three firewall software(iptables, apf, lokkit) installed on a dedicated server? Do I really need all of them? Is not there a conflict related big risk. For example they could block each other and all other network programms and connections. I just want to have an easy to use and secure webserver with less limit.

Fix Cpanel/WHM's easyapache and up2date issue (certificate verify failed)

Today morning woke up and saw httpd not running. I tried to install/update Apache using Cpanel's Easyapache script over webinterface(post 2086/2087) but no chance. I tried the same with ssh as root using putty but I got same error output like this:

Checking that all packages are present and up to date.
!! No method to auto repair package system !!
!! Please visit http://www.cpanel.net/support/could_not_ensurepkgs.htm for help with this error. !!
!! Restoring original working apache !!
!! Executing '/scripts/initsslhttpd' !!
!! Restarting 'httpd' ... !!

How to set up wildcard subdomains?

I want to setup wildcard subdomains. Also anything.example.com must be redirected or located to example.com. Can I do it with .htaccess or httpd.conf or do I need to change dns settings too ?

Syndicate content

CafeWebmaster.com(CW) is a free online community for webdevelopers and beginners. Anybody can share their code, articles, tips, tutorials, code-examples or other webdesign related material on the site. Newbies can submit their questions and reply to existing questions. CW does not guarantee or warrant reliability of code, data and information published on the site. Use the site on your own risk. The site takes no responsibility of direct or indirect loss or any kind of harm to its users. The site also doesn't take responsibility of infected files or source code with any kind of infection or viruses, worms, spywares, malwares, trojan horses. CW reserves the right to edit, move, or delete any of content for any reason.