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

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Devious Designs
Forum Newbie
Posts: 4
Joined: Thu Mar 23, 2006 11:00 am

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

Post 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...
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

Is the webserver configured to parse PHP? Might seem obvious but else offer them for download?
Devious Designs
Forum Newbie
Posts: 4
Joined: Thu Mar 23, 2006 11:00 am

Post by Devious Designs »

I don't know.

The mac isn't even on-line. I only use it for coding and design.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 :?).
User avatar
tasteslikepurple
Forum Commoner
Posts: 46
Joined: Thu Jan 26, 2006 3:38 am
Location: Bath, UK

Post 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
Devious Designs
Forum Newbie
Posts: 4
Joined: Thu Mar 23, 2006 11:00 am

Post 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?
Post Reply