Hardware Secrets
Home | Camera | Case | CE | Cooling | CPU | Input | Memory | Mobile | Motherboard | Networking | Power | Storage | Video | Other
Content
Articles
Editorial
First Look
Gabriel’s Blog
News
Reviews
Tutorials
Main Menu
About Us
Awarded Products
Datasheets
Dictionary
Download
Drivers
Facebook
Links
Manufacturer Finder
Newsletter
RSS Feed
Test Your Skills
Twitter
Newsletter
Subscribe today!
Recommended
Networking Bible
Networking Bible, by Barrie Sosinsky (Wiley), starting at $9.74


Home » Networking
How to Build a Web Server with PHP 5 and MySQL 5 Support
Author: Gabriel Torres 79,513 views
Type: Tutorials Last Updated: April 19, 2007
Page: 2 of 5
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.

Print Version | Send to Friend | Bookmark Article « Previous |  Page 2 of 5  | Next »

Related Content
  • All Opteron Models
  • All Xeon Models
  • How to Optimize a MySQL Server
  • Supermicro X9DRL-EF Motherboard
  • Migrating to Apache 2.4

  • RSSLatest Content
    Gigabyte X99-UD3 Motherboard
    October 30, 2014 - 8:30 AM
    ASUS X99-A Motherboard
    October 29, 2014 - 3:00 AM
    ASUS ZenFone 5 Smartphone Review
    October 15, 2014 - 7:00 PM
    ASUS AM1M-A Motherboard
    October 15, 2014 - 4:30 AM
    ASRock X99 Extreme4 Motherboard
    October 14, 2014 - 4:10 AM
    Cooler Master Elite 130 Case Review
    October 9, 2014 - 2:46 AM
    ASUS RAMPAGE V EXTREME Motherboard
    October 7, 2014 - 2:50 AM
    ASRock Fatal1ty X99M Killer Motherboard
    October 6, 2014 - 5:40 AM







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