SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast bsmith@interinc.com's Avatar
    Join Date
    Jun 2001
    Location
    Maryland, USA
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ***Building a Db Driven Site/Instructor ***Kev

    <b>Kev</b> in your set-up notes for "BAdbDW" You said that on the "httpd.conf:

    Next, look for the line starting with DirectoryIndex. This line tells Apache what filenames to use when looking for the default page for a given directory. You'll see the usual index.html and so forth, but you need to add index.php and index.php3 to that list:

    DirectoryIndex index.html index.cgi ... index.php index.php3

    Finally, go right to the bottom of the file and add the following line to tell Apache what file extensions should be seen as PHP files:

    AddType application/x-httpd-php .phtml .php .php3

    What if I do not have that "Line"?

    I am confused.

    Brian
    I am I, Therefore I bark.

  2. #2
    Node mutilating coot timnz's Avatar
    Join Date
    Feb 2001
    Location
    New Zealand
    Posts
    516
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not quite sure what you want, but if you don't have this line: AddType application/x-httpd-php .phtml .php .php3
    then you have to add it, there should already be a line with some sort of AddType I think, somewhere in httpd.conf

  3. #3
    ********* Callithumpian silver trophy freakysid's Avatar
    Join Date
    Jun 2000
    Location
    Sydney, Australia
    Posts
    3,798
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    BTW - common sense dictates to always back up config files before editing them!

  4. #4
    SitePoint Enthusiast bsmith@interinc.com's Avatar
    Join Date
    Jun 2001
    Location
    Maryland, USA
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Add Type

    I have a list of virtual servers here is the one I want to interact with PHP & MySQL

    Do you think its okay as is?

    NameVirtualHost 209.126.175.19
    <VirtualHost 209.126.175.19>
    ServerName www.icuglobal.com
    ServerAdmin admin
    DocumentRoot /home/sites/site1/web
    ServerAlias icuglobal.com
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^209.126.175.1980)?$
    RewriteCond %{HTTP_HOST} !^www.icuglobal.com80)?$
    RewriteRule ^/(.*) http://www.icuglobal.com/$1 [L,R]
    RewriteOptions inherit
    AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site1/users/$1/web/$3
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php
    # AddHandler chiliasp .asp
    # AddHandler chiliasp .asa
    AddHandler cgi-wrapper .cgi
    AddHandler cgi-wrapper .pl
    AddHandler server-parsed .shtml
    AddType text/html .shtml
    </VirtualHost>

    I am I, Therefore I bark.


Bookmarks

Posting Permissions

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