Archive for the ‘Apache’ Category

How to Override PHP Configuration Options

Moving your web application from a test environment to a live server can be tricky if you don’t have the same PHP configuration. Craig provides two option-override solutions which could save you from purchasing an expensive dedicated server.

Related Posts

  1. PHP Gotchas: Part 1
  2. How to Install PHP on Windows
  3. How to Install PHP 5.3 on Windows

How to Install PHP on Windows

In his final installation tutorial, Craig provides a step-by-step guide to installing PHP5 as an Apache module in your Windows development environment.

Related Posts

  1. How to Install PHP 5.3 on Windows
  2. How to Install Apache Web Server on Windows
  3. Running Apache on Windows

Creating a VAMP (Vista, Apache, MySQL, PHP) Setup

With the abundance of communication between the browser and a server in these days of AJAX and JSON data interchange, there has never been a better time to get your own development web server set up so that you can test all those dynamic scripts youre writing. This article will show you how to do it using some of the most popular software.
– Apache is still undeniably the most popular, and many would say the best, web server available; it’s secure, easy to configure, highly scalable, and above all else, it’s completely open source and therefore totally free. The current stable version of Apache is 2.2.8, which is the version we’ll be in…

Putting Apache in Jail

In this conclusion to a six-part series on Apache configuration and installation, you will learn how to use chroot to put Apache in jail, how to prepare PHP to work in jail, and more. This article is excerpted from chapter two of Apache Security, written by Ivan Ristic (O’Reilly; ISBN: 0596007248). Copyright © 2006 O’Reilly Media, Inc. All rights reserved. Used with permission from the publisher. Available from booksellers or direct from O’Reilly Media.
– Using chroot to Put Apache in Jail
Now that you know the basics of using chroot to put a process in jail and you are familiar with tools required to facilitate the process, we can take the steps required to put Apache in jail. Start by creating a new home for Apache and move the version installed …

Containing Intrusions in Apache

In this fifth part to a six-part series on installing and configuring Apache, you will learn, among other things, how to put Apache in jail. This article is excerpted from chapter two of Apache Security, written by Ivan Ristic (O’Reilly; ISBN: 0596007248). Copyright © 2006 O’Reilly Media, Inc. All rights reserved. Used with permission from the publisher. Available from booksellers or direct from O’Reilly Media.
– Removing Default Content
The key to changing web server identity is consistency. The trouble we went through to change the web server make may be useless if we leave the default Apache content around. The removal of the default content is equivalent to changing ones clothes when going undercover…

Server Limits for Apache Security

In this fourth part of a six-part series on Apache installation and configuration, you will learn how to set server configuration limits, prevent information leaks, and more. This article is excerpted from chapter two of Apache Security, written by Ivan Ristic (O’Reilly; ISBN: 0596007248). Copyright © 2006 O’Reilly Media, Inc. All rights reserved. Used with permission from the publisher. Available from booksellers or direct from O’Reilly Media.
– Setting Server Configuration Limits
Though you are not likely to fine-tune the server during installation, you must be aware of the existence of server limits and the way they are configured. Incorrectly configured limits make a web server an easy target for attacks (see Chapter 5). The following …

Setting Permissions in Apache

In this third part of a six-part series on Apache installation and configuration, you will learn how to set security-related permissions. This article is excerpted from chapter two of Apache Security, written by Ivan Ristic (O’Reilly; ISBN: 0596007248). Copyright © 2006 O’Reilly Media, Inc. All rights reserved. Used with permission from the publisher. Available from booksellers or direct from O’Reilly Media.
– Setting Apache Binary File Permissions
After creating the new user account your first impulse might be to assign ownership over the Apache installation to it. I see that often, but do not do it. For Apache to run on port 80, it must be started by the user root. Allowing any other account to have …

Installing Apache

In the second part to a six-part series on Apache installation and configuration, we will focus on selecting modules to install and begin to explore configuration and hardening. This article is excerpted from chapter two of Apache Security, written by Ivan Ristic (O’Reilly; ISBN: 0596007248). Copyright © 2006 O’Reilly Media, Inc. All rights reserved. Used with permission from the publisher. Available from booksellers or direct from O’Reilly Media.
– Folder Locations
In this chapter, I will assume the following locations for the specified types of files:
Binaries and supporting files
/usr/local/apache
Public files
/var/www/htdocs (this directory is referred to
throughout this book as the web server tree)
Private we…

Apache Installation and Configuration

Apache is the most popular web server on the Internet, partly because it is open source. This popularity means that security is very important. Securing the application starts with the way you configure it. This article, the first of six parts, is excerpted from chapter two of Apache Security, written by Ivan Ristic (O’Reilly; ISBN: 0596007248). Copyright © 2006 O’Reilly Media, Inc. All rights reserved. Used with permission from the publisher. Available from booksellers or direct from O’Reilly Media.
– Installation is the first step in making Apache functional. Before you begin, you should have a clear idea of the installations purpose. This idea, together with your paranoia level, will determine the steps you will take to complete the process. The system-hardening matrix (described in Chapter 1) …

Apache Tapestry and Custom Components: DateInput

Tapestry has many benefits, but perhaps one of the most important is that it makes creation of custom components very easy. In this article, I’ll create a custom component to illustrate this point.
– We are all different; we all have various ideas about how our application should look and work. Our customers have their own opinions and, well, sometimes prejudices too. As a result, at some time in your Tapestry development you will certainly come to the point when you’ll find the existing choice …