Results 1 to 5 of 5
  1. #1
    dmonk
    Guest
    Enabling PHP in Mac OS 10.2
    I'm trying to enable the PHP that's installed in my Mac os 10.2

    I have my Terminal >open
    I just opened the httpd.conf file though PICO

    and found the following lines:

    # LoadModule php4_module
    # AddModule mod_php4.c

    and uncommented both of them by removing the "#".


    The instructions I have mention that I should also un-comment these two lines:

    # AddType application/x-httpd-php .php
    # AddType application/x-httpd-php .phps

    But I wasn't able to find them in the file (httpd.conf)

    I'm beginning to wonder if these instructions are outdated?
    (The instructions are for OS X but I have OS 10.2 -- could that be the problem? )

    Any one have any ideas?

    -Gracias in advance.

  2. #2
    Enabling PHP in Mac OS 10.2
    Murlyn's Avatar
    Member Since
    Jun 11, 2003
    Location
    Mount Vernon, WA
    Posts
    4,915
    Specs:
    MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2
    Could you send me your httpd.conf file and I will tell you what you need to do, thanks! Go ahead and send me a private message.

  3. #3
    dmonk
    Guest
    Lines are missing from httpd.conf on OS 10.2
    Murlyn:

    I just found an answer to my question this very second!!

    Here is the answer for posterity (I noticed others were wondering about this too). Hopefully this will save someone else some googling time.

    //==========Quote============================
    When running through the article, you'll notice that the 3rd and 4th line that are commented on in httpd.conf do not exist. What you must do is add this line (I added it at the end with a comment):

    AddType application/x-httpd-php .php

    Your PHP test page should now work, and no longer shows up as simple text in your browser.

    //==========Quote============================

    SOURCE:
    http://www.oreillynet.com/cs/user/view/cs_msg/10386

  4. #4
    Enabling PHP in Mac OS 10.2
    Murlyn's Avatar
    Member Since
    Jun 11, 2003
    Location
    Mount Vernon, WA
    Posts
    4,915
    Specs:
    MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2
    well good.. that's what I was wondering if that was the case Im quite good with the httpd.conf file so I was hoping to spot something like that within your file.. great to hear it's taken care of!

  5. #5
    Fortius
    Guest
    Heres a LINK to a OSX instalation tutorial by Kevin Yank of Sitepoint... Its at the bottom of the page!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Enabling DHX authentication in MAC 10.6.8
    By saurabhkoar in forum OS X - Operating System
    Replies: 1
    Last Post: 04-04-2012, 04:35 PM
  2. enabling PHP on leopard - problems
    By osbourne.cox in forum OS X - Development and Darwin
    Replies: 3
    Last Post: 12-27-2010, 03:42 PM
  3. Enabling PHP
    By Rogan in forum OS X - Operating System
    Replies: 0
    Last Post: 02-21-2010, 07:37 AM
  4. Enabling PHP
    By InkL0sed in forum Web Design and Hosting
    Replies: 4
    Last Post: 03-11-2009, 02:59 PM
  5. Enabling PHP
    By JGarcia in forum Web Design and Hosting
    Replies: 3
    Last Post: 03-05-2004, 09:35 PM

Posting Permissions

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