Database Articles

  Home arrow Database Articles arrow Page 3 - Create dynamic sites with PHP & MySQL
DATABASE ARTICLES

Create dynamic sites with PHP & MySQL
By: Codewalkers
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 54
    2002-05-19

    Table of Contents:
  • Create dynamic sites with PHP & MySQL
  • Introduction and installation
  • Installing Apache server routines
  • Installing MySQL
  • Installing PHP
  • Your first script
  • Your first database
  • Where's my view?
  • Creating an HTML form
  • Putting it together
  • Passing variables
  • Viewing individual rows
  • Deleting rows
  • Editing data
  • Searching our data
  • Tips for common tasks

  •  
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    advertisement

    Create dynamic sites with PHP & MySQL - Installing Apache server routines


    (Page 3 of 16 )

    First we will install the Apache server routines in the Linux environment. To install these packages you will need root access to your server. If someone else is hosting your site, ask the administrator to install them for you.

    Installing Apache is relatively simple. First download the Apache archive, apache_ x. x. xx. tar. gz (the latest I downloaded was apache_ 1.3.14. tar. gz) from the Apache site and save it in /tmp/ src directory. Go to that directory:

    # cd /tmp/src/

    Extract the files with the command:

    # gunzip -dc apache_x.x.xx.tar.gz | tar xv

    replacing those xs with your version number. Change to the directory that has been created:

    # cd apache_x.x.xx

    Now to configure and install apache, type the commands:

    # ./ configure --prefix=/usr/local/apache --enable-module=so 
    # make 
    # make install

    This will install Apache in the directory /usr/ local/ apache. If you want to install Apache to a different directory, replace /usr/ local/ apache with your directory in the prefix. That's it! Apache is installed.

    You might want to change the default server name to something of real value. To do this, open the httpd. conf file (located at /usr/ local/ apache/ conf) and find the line starting with ServerName. Change it to ServerName localhost.

    To test your install, start up your Apache HTTP server by running:

    # /usr/local/apache/bin/apachectl start 

    You should see a message like "httpd started". Open your Web browser and type "http://localhost/" in the location bar (replace localhost with your ServerName if you set it differently). You should see a nice welcome page.

    More Database Articles Articles
    More By Codewalkers

    blog comments powered by Disqus

    DATABASE ARTICLES ARTICLES

    - Completing a Book Inventory Management System
    - Uploading Images for a Book Inventory Manage...
    - Finishing the Add Book Story for a Book Inve...
    - Integration Testing for a Book Inventory Man...
    - User Stories for a Book Inventory Management...
    - Unit Testing a Book Inventory Management Sys...
    - Testing a Book Inventory Management System
    - Implementing Models for a Book Inventory Man...
    - Book Inventory Application: Publishers and B...
    - Handling Publishers in a Book Inventory Mana...
    - Publisher Administration for Book Inventory ...
    - Book Inventory Management
    - Using the SQL Reference Manual
    - Using Oracle SQL Developer with SQL Statemen...
    - Fixing Errors with Oracle SQL Developer


    © 2003-2012 by Developer Shed. All rights reserved. DS Cluster 3 - Follow our Sitemap