Problem with PHP and MySQL

Okay, I'm new to this PHP and MySQL stuff, so help would be VERY much appreciated. :slight_smile:

On my iMac runnning Panther, it has MySQL and PHP installed.
Yet when I view a PHP file from the iMac or another computer at my house, I get the source code.
What's wrong?

Is Apache configured to handle PHP files?

What version of MacOSX server are you running?

I'm not sure if Apache's configured, I don't know how to configure it....

And I'm running Mac OS X 10.3. Panther. No updates installed.

If you load up your 'server admin' tool and connect to the server, have a look under Web, go to the 'settings' tab at the bottom and have a look under 'Modules'

Is php4_module checked?

Wait... Server Admin tool? I have no clue on what that is.

It will be located in Applications->Server Tools, I think, on the HD of your server.

Nope, I don't have that tool... not even the folder is in there.

You are running OS X Server aren't you?

Or are you trying to server on a OS X client machine?

I'm not running OS X Server.
I'm using regular Mac OS X 10.3.

And what's a client machine?

If you are not running server, you are a 'client'.

Check out the link below, it gives instructions on setting up and installing PHP.

http://www.entropy.ch/software/macosx/php/

HTH.

I followed the directions. Yet it didn't help.

danny at this point it really sounds like you need to sit down and read all the online how-tos to do what you are trying to do.

you dont know if you configured apache.
you dont know if you configured php.
and you havent gotten to the mysql part yet.

i would goto the following sites and read all the docs related to what you are trying to do. there are alot of usergroups out there that do handle this also and should be able to provide you with a much better ave for your questions.