Archive for the ‘Apache server’ Category

Setting up SMTP for apache on WindowsXP

Thursday, December 29th, 2011

I am having great difficulty getting my SMTP set up… this is probably more a apache/php problem more than anything but I assume people have solved this problem on this site. I know that in my php.inf file I need to alter the following lines: [mail function] ; For Win32 only. SMTP = smtp.gmail.com smtp_port [...]

Upgrade CentOS 5 to PHP 5.2

Saturday, November 12th, 2011

When installing latest CentOS version 5.5 you will notice that when you install PHP, the latest version you are getting is version 5.1. In order to add the latest CentOS version of PHP which is 5.2.10 is to enable CentOS 5 Testing Repositories. How To: 1. vi /etc/yum.repos.d/CentOS-Testing.repo # CentOS-Testing: # !!!! CAUTION !!!! # [...]

SSH and SCP: Howto, tips & tricks

Monday, November 7th, 2011

This tutorial is about SSH and SCP. You will learn how to connect to a remote host and how to copy between hosts. This tutorial also documents a few important differences between the commands. Difficulty: Basic Before we start: in this tutorial, you will come across both SSH and ssh. The difference is this: SSH [...]

How to sync data between 2 servers automatically

Monday, November 7th, 2011

Have you ever wanted to know how to easily synchronize the data between multiple servers automatically? In this article I’ll explain how to setup 2 Linux servers to automatically synchronize data between a specific directory on each server. To do this we will use rsync, ssh key authentication, and a cron job. Let’s call the [...]

How do I sync data between two Load balanced Linux / UNIX servers?

Monday, November 7th, 2011

Load balancing is way to provide to handle the load of the large number of visitors particular website or network service receives. It helps provide redundancy to your website. There are several ways to accomplish load balancing: * Use of Linux Virtual Server * Use of layer 4 routers * Round robin DNS with squid [...]

How to use rsync for transferring files under Linux or UNIX

Monday, November 7th, 2011

How do you install and use rsync to synchronize files and directories from one location (or one server) to another location? – A common question asked by new sys admin. rsync is a free software computer program for Unix and Linux like systems which synchronizes files and directories from one location to another while minimizing [...]

Replicating Content Between Two Webservers

Monday, November 7th, 2011

We have corporate intranet network for our web site as us.w3networking.com, jp.w3networking.com (asia.w3networking.com), uk.w3networking.com (eu.w3networking.com). How do I replicate static content stored at /var/www/corporate_lan/ such as javascript files, css files, and images between our USA, Japan and UK web servers running under UNIX or CentOS or Redhat Enterprise Linux based Apache servers? There are various [...]

Implementing PHP File Upload Security on ROOT

Sunday, September 25th, 2011

Most PHP scripts and content management system scripts (CMS scripts) require writable permission 777 (rwxrwzrwz) to be set for certain folders for uploading photos and videos. Many security experts warn that setting 777 permission means that anybody can upload any content to your server, install malicious code, run unwanted programs and could potentially misuse your [...]

How to configure virtual hosting for Ubuntu server?

Monday, September 12th, 2011

I’ve been researching tuning options all evening to try to bring the memory consumption lower. I did also add an additionl 256M RAM to the machine hoping that will help. Thanks for the patience during this bumpy ride. I wanted to put down some of my notes concerning configuring Apache2 with virtual hosts for hosting [...]

How to Prevent (D)DOS-Deflate Apache?

Sunday, September 11th, 2011

All web servers been connected to the Internet subjected to DoS (Denial of Service) or DDoS (Distrubuted Denial of Service) attacks in some kind or another, where hackers or attackers launch large amount connections consistently and persistently to the server, and in advanced stage, distributed from multiple IP addresses or sources, in the hope to [...]