php issues... please help me!!

Discussion in 'Web Design and Development' started by duncandeath, Oct 2, 2006.

  1. duncandeath macrumors member

    duncandeath

    Joined:
    Sep 7, 2005
    #1
    Hello there,

    I'm new to php and have just installed php & phpMYsql.

    I have a basic site at the moment that I want to add some dynamics to and allow users to email me via a contact form in php. I'm currently getting a 405 Method Not Allowed - Apache/1.3.28 Server at www.<webname>.com Port 80...

    As i'm on a mac do I need apache, as the message highlights this?

    What else is missing to allow me to carry this out?

    Help much appreciated!!!
     
  2. frankblundt macrumors 65816

    frankblundt

    Joined:
    Sep 19, 2005
    Location:
    South of the border
    #2
    You have Apache already - version 1.3 comes built in with OSX - but it may not be configured to use PHP.

    The Apache httpd.conf file is at /etc/httpd (/etc is a hidden folder so you'll need to use Finder > Go > Go to Folder.. > /etc/httpd to get to it )

    you'll need to uncomment these lines (remove the # from the beginning)

    LoadModule php4_module libexec/httpd/libphp4.so
    AddModule mod_php4.c

    save the file (which will require administrator access) and reboot

    This is obviously designed to work with PHP4. i'm not sure if it will work with PHP5, it may just be a matter of finding what the 5 modules are called, and adjusting those two lines to point to them
     

Share This Page