Hardware Secrets
Home | Audio | Case | Cooling | CPU | Input | Memory | Mobile | Motherboard | Networking | Power | Storage | Video | Other
Content
Articles
First Look
News
Reviews
Tutorials
Main Menu
About Us
Compare Prices
Datasheets
Dictionary
Download
Drivers
Forums
Gabriel's Blog
Links
Manufacturer Finder
Newsletter
On The Web
RSS Feed
Test Your Skills
Newsletter
Subscribe today!
Search




Recommended Book
Build Your Own Wi-Fi Network (Build Your Own...(McGraw))
By
McGraw-Hill/OsborneMedia
Price: $0.32

Home » Networking
How to Build a Web Server with PHP 5 and MySQL 5 Support
Author: Gabriel Torres
Type: Tutorials Last Updated: April 19, 2007
Page: 2 of 5
$ Check REAL-TIME pricing for Linksys WRT54GS Wireless Router $
eBay: $43.10 TigerDirect.com: $59.99
TECHONWEB: $56.41 P.C. Richard & Son: $49.99
CompUSA.com: $59.99 Amazon: $73.99

Configuring and Installing Apache 2

The first step is to download, configure and install Apache 2, which is the web server software. This is the easiest part of our tutorial. Download the latest version from http://httpd.apache.org/download.cgi. Choose the mirror nearest to the server you are building. You have an option to choose between 2.2.x series and 2.0.x series, this is up to you. The version you need to download is the “unix source”. Then on command line type something like this, depending on the link you got on this webpage:

cd /root
wget http://www.apache.org/dist/httpd/httpd-2.0.59.tar.gz
tar -xvzf httpd-2.0.59.tar.gz
cd httpd-2.0.59
./configure --prefix=/usr/local/apache2 --enable-deflate --enable-ssl --enable-suexec --with-suexec-caller=apache --with-suexec-docroot=/ --with-suexec-datadir=/www/ --enable-mods-shared=most
make
make install

Of course you may add another configuration parameters you may need for your particular installation. The trick is to make sure to use --enable-deflated to install mod_deflate, which is a plug-in for Apache that enables HTML compression, making your web server to present webpages faster and also to save bandwidth.

Also notice where we installed Apache: /usr/local/apache2

Edit /etc/profile and add :/usr/local/apache2 at the end of the PATH statement.

You will also need to edit /usr/local/apache2/conf/httpd.conf to configure your webserver. This configuration procedure, however, isn’t the scope of the present tutorial.

That’s it. Now we need to install and configure MySQL 5. Like we said, this must be done before configuring and installing PHP 5.

Pages (5): « 1 [2] 3 4 5 »
Print Version | Send to Friend | | Bookmark Article | Comments (7)

Related Content
  • All Opteron Models
  • All Xeon Models

  • Recommended Deals
    Linksys WRT300N Wireless Router


    CompUSA.com: $109.99 PCNation: $106.09
    TigerDirect.com: $109.99 Comparemaster: $89.00
    Amazon: $113.51 IT-DREAMZ.NET: $110.87
    Linksys WRT350N Wireless Router


    PCNation: $166.81 Dell: $179.99
    TigerDirect.com: $169.99 CompUSA.com: $169.99
    Super Warehouse: $167.99 B&H Photo-Video: $119.95
    Linksys WRT54GS Wireless Router


    TigerDirect.com: $59.99 eBay: $43.10
    P.C. Richard & Son: $49.99 TECHONWEB: $56.41
    PC Connection: $64.95 Server Supply.com Inc: $79.00
    D-link Xtreme N™ DIR-655 Wireless Router


    TigerDirect.com: $99.99 CompUSA.com: $99.99
    Beach Camera.com: $99.00 BuyDig.com: $92.00
    SafeMart: $438.19 Dell Small Business: $336.99
    Linksys WRT54GL Wireless Router


    eBay: $57.99 Dell: $69.99
    TECHONWEB: $63.71 CompUSA.com: $69.99
    Amazon: $57.99 PC Connection: $69.95

    RSSLatest News
    Titan Launches Cooler for Intel Core i7 CPUs
    November 20, 2008 - 4:47 PM PST
    Thermaltake Launches Fanless 330 VGA Cooler
    November 19, 2008 - 6:17 PM PST
    Mushkin Launches Triple-Channel DDR3 kits for Core i7 Processors
    November 18, 2008 - 6:43 PM PST
    Manufacturers Launch Intel X58 Motherboards
    November 18, 2008 - 6:11 PM PST
    Intel Launches Core i7 Processors
    November 18, 2008 - 6:02 PM PST
    Scythe Kama Panel 3.5” Multifunctional Panel
    November 17, 2008 - 6:50 PM PST
    AMD Launches 45-nm Opteron Processors
    November 14, 2008 - 4:34 PM PST
    Noctua Presents Cooler for Intel Core i7 CPUs
    November 12, 2008 - 11:37 AM PST
    Thermalright Launches Ultra-120 eXtreme Cooler
    November 11, 2008 - 4:04 AM PST
    PowerColor Launches Water-Cooling Ready Radeon HD 4870
    November 10, 2008 - 4:22 PM PST
    .:: More News ::.

    RSSLatest Content
    Seventeam ST-550P-AG Power Supply Review
    Logitech QuickCam Pro 9000 Review
    GeForce GTX 260 with 216 cores Video Card Review
    Laptop Design: What are some ways that form can enhance function?
    Panasonic Link-to-Cell Phone System Review
    Topower TOP-1100P10 Power Supply Review
    Gigabyte MA78GM-S2H Motherboard
    OCZ Neural Impulse Actuator Review
    OCZ EliteXStream 1000 W Power Supply Review
    Everything You Need to Know About Megapixels
    Battery Life: How Long Does a Battery Need to Last?
    Corsair HX1000W Power Supply Review
    AMD ATI Chips Comparison Table
    What is the ideal size for a notebook?
    ASUS P6T Deluxe OC Palm Edition Motherboard

    Our Most Popular Articles
    Maximum CPU Temperature
    822,384 views
    nVidia Chips Comparison Table
    512,478 views
    AMD ATI Chips Comparison Table
    451,303 views
    How to Find Out Your Motherboard Manufacturer and Model
    432,938 views
    ATI Radeon X1300 Pro Review
    428,910 views
    ATI Radeon X1600 XT Review
    422,438 views
    Connecting Two PCs Using a USB-USB Cable
    384,223 views
    How To Correctly Apply Thermal Grease
    368,687 views
    Sempron vs. Athlon XP
    289,596 views
    Sempron 3400+ Review
    281,979 views

    Latest Threads in Our Forums
    Seventeam ST-550P-AG Power Supply Review
    by Olle P
    Thermaltake Launches Fanless 330 VGA Cooler
    by Olle P
    Best thermal paste on the market?
    by zargon48
    Thnx for help w/new buid!!
    by zargon48
    How to Manually Clean Your VCR Heads
    by Gabriel Torres
    Titan Launches Cooler for Intel Core i7 CPUs
    by Hardware Secrets Team
    Computer to Sony Bravia 23 in (1920 x 1080)
    by Wromx
    Logitech QuickCam Pro 9000 Review
    by Hardware Secrets Team
    Motherboard Repairing
    by joseph
    GeForce GTX 260 with 216 cores Video Card Review
    by Hardware Secrets Team
    .:: Visit Our Forums ::.

    © 2004-8, Hardware Secrets, LLC. All rights reserved.
    Advertising | Legal Information | Privacy Policy
    All times are Pacific Standard Time (PST, GMT -08:00)