dcsimg
www.webdeveloper.com
Results 1 to 10 of 10

Thread: Needing help with Installing Apache

  1. #1
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,745

    Needing help with Installing Apache

    If all I intend to do is use Apache for local web development (I.E. running PHP on my own computer), what do I put for my domain?

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    20,320
    "localhost"
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

  3. #3
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,745
    I have to install PHP andd MySQL seperately, right?

  4. #4
    Join Date
    Nov 2003
    Location
    Worthington, OH, USA
    Posts
    3,634
    Quote Originally Posted by Mr Initial Man
    I have to install PHP andd MySQL seperately, right?
    Unless you've downloaded something like WAMP which bundles it all together....
    54 68 65 42 65 61 72 4D 61 79

  5. #5
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,745
    *Nods.* I did indeed download Apache seperately.

    First off, I'm trying to get SHTML to work with this. :-/
    Last edited by Mr Initial Man; 08-14-2007 at 11:13 AM.

  6. #6
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,745
    So how do you configure Apache to return shtml as something other than plain text?

  7. #7
    Join Date
    Jan 2003
    Location
    USA
    Posts
    687
    Here's the relevant scheme I use in httpd.conf.
    Code:
    #
    # Each directory to which Apache has access can be configured with respect
    # to which services and features are allowed and/or disabled in that
    # directory (and its subdirectories). 
    #
    # First, we configure the "default" to be a very restrictive set of 
    # features.  
    #
    <Directory />
        Options FollowSymLinks Includes
        AllowOverride None
    </Directory>
    
    #
    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    #
    Code:
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs-2.0/mod/core.html#options
    # for more information.
    #
        Options Indexes FollowSymLinks Includes
    
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    Code:
    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    
    #
    There are numerous ways to set up Apache, but I can vouch for the above configuration to parse .shtml files.

  8. #8
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,745

  9. #9
    Join Date
    Jan 2003
    Location
    USA
    Posts
    687

    Thumbs up

    You're welcome.

  10. #10
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,745
    Would you also please help me set up PHP?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles