Create a Site with WordPress: Basic Apache Configuration


Antonio Lodesani
YNOT EUROPE – In the previous article, we saw how easy it is to install WAMP locally. The next task is to configure all applications that are the basis for a successful installation of WordPress.

In addition to WAMP running on your PC, after the last article you also should be running:

  • Apache 2.2.11
  • MySQL 5.1.36
  • PHP 5.3.0

This and future articles will explain how best to configure the items listed above and then install WordPress.

The Apache Web Server platform is the most popular server in the world, able to operate on UNIX, Linux and Microsoft operating systems. The software performs the functions of transmission of information, internetworking, and connections and also has the advantage of control features for security such as that in a normal proxy.

The first step in properly configuring Apache is setting a special configuration file called httpd.conf. There are two methods for accessing the file:

[LIST=1]

  • Start WAMP and click your left mouse button on the system tray icon that resembles a speedometer. Left-click httpd.conf. The menu box that appears should like this:
  • If the technique described in step one doesn’t work, you can find the file in the path that you chose when installing WAMP. If you used the default settings (as recommended), you can find the file in the following path: C:\WAMP\bin\apache\Apache2.2.11\conf
    [/LIST]
    Once you open the file, you need to modify the httpd.conf file to enable the Apache rewrite module. Rewrite is a sort of plugin that allows you to regulate the transformation of the URL of a web page. WordPress allows permalinking in order to make article addresses more user-friendly. In practice, a URL like sitename/?P=1 become sitename/2011/01/01/ArticleName, which is much easier for both humans and search engines to understand.

    Using a standard text editor with httpd.conf open, find the two strings for [FONT=Courier New]mod_rewrite[/FONT] and remove the “#” character that precedes them. A hash mark at the beginning of a line of code defines the line as a comment. Comments are not parsed by the software engine, but removing the hashmark makes the line executable.

    This is what the section in the httpd.conf file should look like before you make the changes:
    [FONT=Courier New]

    • #LoadModule rewrite_module modules/mod_rewrite.so
    • #AddModule mod_rewrite.

    [/FONT]
    After the changes, you should have:
    [FONT=Courier New]

    • LoadModule rewrite_module modules/mod_rewrite.so
    • AddModule mod_rewrite.

    [/FONT]
    Save the modified file.

    The minimal steps outlined in this article are sufficient for proper configuration of Apache. In the next article, we will explore how to set the web server for support of virtual hosts. Virtual hosts allow many websites to run on one server — in this case, your local PC. The technique will be useful in case you want to experiment with various graphical and functional solutions for your website.

  • About the Author

    admin

    YNOT Admin wields his absolute power without mercy. When he's not busy banning spam comments to hell he enjoys petting bunnies and eating peanut butter. He recommends everyone try the YNOT Mail (ynotmail.com) email marketing platform and avoid giving their money to mainstream services that hate adult companies.

    Visit Website

    Comments are closed.