Article:
  Apache Web-Serving with Mac OS X: Part 3
Subject:   i'm missing some lines in my httpd.conf
Date:   2002-10-27 21:45:27
From:   anonymous2
These lines aren't here:


# For example, the PHP 3.x module will typically use:
#
# AddType application/x-httpd-php3 .php3
# AddType application/x-httpd-php3-source .phps
#
# And for PHP 4.x, use:
#
# AddType application/x-httpd-php .php
# AddType application/x-httpd-php-source .phps


I assume since they are missing, that is why the index.php shows the html coding instead of what it's supposed to.


I'm running OSX 10.2.1

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • SOLUTION for OSX 10.2.x users (the missing lines)
    2002-12-10 16:07:08  tronje [View]

    I'm running 10.2.2
    Just take a look at the lines below then you can easily find the position where you can add the missing lines.

    ...
    <IfModule mod_negotiation.c>
    LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
    </IfModule>

    # And for php4.x, use:
    #
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps


    # AddType allows you to tweak mime.types without actually editing it, or to
    # make certain files to be certain types.
    #
    AddType application/x-tar .tgz
    ...


    btw, if you want your browser to detect index.PHP just as it does index.html add the missing parts as shown below.

    ...
    #
    # DirectoryIndex: Name of the file or files to use as a pre-written HTML
    # directory index. Separate multiple entries with spaces.
    #
    <IfModule mod_dir.c>
    DirectoryIndex index.html index.php index.shtml
    </IfModule>
    ...