Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

duncandeath

macrumors member
Original poster
Sep 7, 2005
43
0
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!!!
 

frankblundt

macrumors 65816
Sep 19, 2005
1,271
0
South of the border
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.