Page 1 of 1

Why Can't I Open PHP Files on My New Mac?

Posted: Thu Mar 23, 2006 11:12 am
by Devious Designs
I can open them fine in Firefox on both my PC and my iMac, but on my new Mac G5 it prompts me to save the file.

Most disturbing...

Posted: Thu Mar 23, 2006 11:15 am
by Maugrim_The_Reaper
Is the webserver configured to parse PHP? Might seem obvious but else offer them for download?

Posted: Thu Mar 23, 2006 11:29 am
by Devious Designs
I don't know.

The mac isn't even on-line. I only use it for coding and design.

Posted: Thu Mar 23, 2006 12:32 pm
by Chris Corbyn
Devious Designs wrote:I don't know.
Did you set it up or was it pre-installed? What server is it? Apache? Have a look in your httpd.conf file to check that mod_php is loaded or CGI is configured for PHP.

You might also want to open up a console window and actually try to find if PHP is installed by typing 'which php' (I think that works on Mac too :?).

Posted: Thu Mar 23, 2006 2:03 pm
by tasteslikepurple
d11wtq wrote: You might also want to open up a console window and actually try to find if PHP is installed by typing 'which php' (I think that works on Mac too :?).
it does indeed work on mac too. (mine returns /usr/bin/php).

try installing the xampp bundle if it's just for developement work, http://www.apachefriends.org/en/xampp.html

Posted: Mon Mar 27, 2006 1:32 pm
by Devious Designs
RETURN OF THE PHP PROBLEM II

Okay, I first started this discussion at sitepoint in This thread

After posting on 5 different forums, including Apple, the issue... Is still there.

In my initial post, I talked about how php files do not display in my fireFox browser. I still have the problem, but I have moved on and concluded that this is because A) I do not have OSX Server installed and/or B) My php + MySql isn't installed correctly, which is the real problem.

In a nutshell: I am trying to set up Dreamweaver MX for PHP. And I need some really clear instructions, from the begging to end.

I have OS 10.4
Dreamweaver MX 2004
PHP 5.1.2 for Apache 1.3 (Like a normal person, I downloaded the NEWEST version)
MySql 5.0.19 (Like any normal person, I dl'd the newest version)

The first problem I have is with the installations of PHP and MySql. I cannot find their folders. I do not have a /usr/local/mysql directory like Dreameaver says. The Terminal tells me "Command Not Found" (that's all the Terminal have EVER told me. :rolleyes: )

Dreamweaver...

Look, I am not a the village idiot and I am convinced that this so called "super mac G5" is the village idiot. I have installed hundreds of php scripts on Cpanel running Apache. Why do I need to open terminal? I hate the Terminal, I am scared <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span> of it. All the Terminal commands that Dreamweaver tells me to do ALWAYS FAIL.

WHY do you ask? am I listening to Dreamweaver? Because unlike the MORONS at Apple Computers, they actualy supplied me with some PHP/MySql documentation.

Everything that everyone has told me to download has not worked. and the worst part about all of this all is that I only get ONE MORE CHANCE to do it right.



Bonus Questions:
1) It should say it in the system profiler but it doesn't. So how the hell do I know if server is installed?