Secure the Apache Web Server

Posted on May 14th, 2008 in Apache, LAMP, Security by admin

Here are some things you can do to make your apache configuration more secure.

Some of these suggestions may decrease performance, or cause problems due to your environment. It is up to you to determine if any of the changes I suggest are not compatible with your requirements. In other words proceed at your own risk.

Password protect Grub Bootloader

Posted on April 9th, 2008 in Apache, Security by admin

You’re thinking a lot about computer security lately, and that’s a good thing. You certainly made the right choice going to Linux, and Debian was wise, too. That’s not the end of your thought about security I hope. This short tutorial will show you how to password protect your Grub boot loader rendering your machine un-boot-able (that’s not even close to being a real word!) to the casual snoop, or anyone else without the ability to get around this; which for all intents and purposes is just about anybody you know. This is by no means absolute security for your machine, far from it - it’s merely a wrinkle in the road.

Basics of PHP #1

Posted on March 20th, 2008 in Php by admin

You’ll notice we’ve been covering the basics of MySQL and Apache, we will also be covering the basics of PHP. And why under the server section? Databases and scripting languages don’t necessary make a server, but they are integral to the most common stack you find on the web, which is called LAMP. (Linux-Apache-MySQL-PHP).

The first thing we want to do is make sure we have the latest stable apache and php installed.

  • On Debian/Ubuntu: sudo apt-get install apache2 libapache2-mod-php5 php5
  • On Fedora (as root): yum install httpd php
  • On OpenSuse(as root): zypper in apache2 apache2-mod_php5 php5

And just to make sure apache is running: /etc/init.d/apache2 restart

Absolute Basics of Apache

Posted on March 19th, 2008 in Apache, Basics, Linux+, Servers by admin

Apache is the world’s most common web server and it runs on just about anything, Linux, Unix, Mac OS X, Windows, BSD, you name it and it’s typically the web server of choice in the Linux world. Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation. It is free in cost and is licensed under the Apache license, one of man open source licenses.

Basics of MySql on the Commandline #3

Posted on March 19th, 2008 in Basics, Mysql, Servers by admin

In this tutorial we’re going to cover how to Alter Records, Update Records, and how to Delete Records.

Please see these prerequisites:

  1. Basics of MySql on the Commandline #1
  2. Basics of MySql on the Commandline #2

Basics of MySql on the Commandline #2

Posted on March 15th, 2008 in Basics, Mysql, Servers by admin

Please read Basics of MySql on the Commandline #1 first. In this MySql basics tutorial we will be covering a number of items. How to backup databases, delete tables, delete databases, and how to restore databases.

(Video to Come)

Basics of MySql on the Commandline #1

Posted on March 14th, 2008 in Basics, Mysql, Servers by admin

MySQL is a multithreaded, multi-user SQL database management system (DBMS) which has more than 11 million installations. The basic program runs as a server providing multi-user access to a number of databases.

Originally financed in a similar fashion to the JBoss model, MySQL was owned and sponsored by a single for-profit firm, the Swedish company MySQL AB, now a subsidiary of Sun Microsystems, which holds the copyright to most of the codebase. The project’s source code is available under terms of the GNU General Public License, as well as under a variety of proprietary agreements.

This tutorial is to get you familiar with the basics of mysql. It is not meant to be an end-all resource, but a starting point. Later we will discuss more advanced functions of mysql and how to manage databases via web interfaces such as phpMyAdmin.

(Video to Come)

How do I password-protect my website using .htaccess?

Posted on March 5th, 2008 in Apache, Security, Servers by admin

Htaccess can be used to password-protect directories on your web site. All files and any subdirectories within a directory protected by htaccess will also be protected. So, if you wish to protect your entire web site, simply setup htaccess in your public_html directory (the root of your web site). However, if you only wish to protect certain directories, you may do so separately.