Category Archives: Apache

Monitor linux services using bash script

# Vi check_httpd.sh #!/bin/sh run=`ps ax | grep /usr/local/apache/bin/httpd | grep -v grep | cut -c1-5 | paste -s -` if [ “$run” ]; then echo “apache is running” > /home/admin/check_httpd.log else /usr/local/apache/bin/apachectl -k restart mail -s “Apache server restarted … Continue reading

Posted in Apache, Linux, Optimize, Shell Script | Leave a comment

Install FFmpeg on CentOS or RedHat EL 6.x

Install FFmpeg on CentOS or RedHat EL 6.x If you are upgrading from a previous version of Razuna you should always update your ImageMagick, Exiftool and  Ffmpeg installation! Install the additional repo Install all necessary packages Install xvid Install LibOgg Install Libvorbis … Continue reading

Posted in Apache, Linux | Leave a comment

HOWTO Virtual Mail Hosting on CentOS 6.x – Postfix MySQL Dovecot PostfixAdmin Amavisd-new Spamassassin Clamav DKIM SPF

Introduction This is an advanced email server configuration. This configuration will allow you to serve multiple domains on one server. This howto will allow you to setup a server that is one of four mail server types: Mail server with … Continue reading

Posted in Apache, DNS, Linux, Mail server, MySQL, PHP, Postfix | Leave a comment

Tips to secure your Apache Server

As a sysadmin, you should secure your Apache web server Hide Apache Version and OS Identity Open configuration file with vim editor and search for “ServerSignature“, its by default On. We need to Off these server signature and the second … Continue reading

Posted in Apache | Leave a comment

Compiling shared PHP modules

So you want to add postgres support to PHP (or something like that), but you don’t want to re-compile the whole thing. You just want a shared module. Its easier than I first thought. Here is how I have done … Continue reading

Posted in Apache | Leave a comment

Compiling PHP 5.x From Scratch

I was asked to compile php5.4.14 on one of my server with mysql support. I downloaded php 5.4.14 from mysql website and compiled it. Later on mcrypt, ftp, openssl support were added to it. I was also told to add … Continue reading

Posted in Apache | Leave a comment

HTTP Cluster with heartbeat

  Setup a two node high availability HTTP cluster with heartbeat. Both nodes use the Apache Web Server to serve the same content. Pre-Configuration Requirement Assign hostname NODE1 to Primary node with IP Address 10.10.10.1 to eth0. Assign hostname NODE2 … Continue reading

Posted in Apache | Leave a comment

optimizing apache mysql php with low memory server

Don’t run X, shutdown all unnecessary services, and compile Apache, MySQL, and PHP with only essential functionality.   Apache The biggest problem with Apache is the amount of ram is uses. I’ll discuss the following techniques for speeding up Apache … Continue reading

Posted in Apache, MySQL, Optimize, PHP | Leave a comment