Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > [Help] Getting PHP to work in Tiger?

[Help] Getting PHP to work in Tiger?
Thread Tools
Ozmodiar
Mac Elite
Join Date: Apr 2002
Location: Quetzlzacatenango
Status: Offline
Reply With Quote
Feb 13, 2006, 03:15 AM
 
I've read a couple of the other threads and still nothing seems to be working for me. Also this seems like an OS issue and not a Safari issue so I'm posting it here.

I've edited the httpd.conf file in /etc/httpd/ to remove the # in front of the appropriate lines and restarted Apache a couple of times (as per this PHPmac article), and still Safari won't open .php files. Well, it will open them but it displays them as a text file instead of rendering the page.

Anyone know what I'm doing wrong?
     
SirCastor
Professional Poster
Join Date: Jan 2001
Location: Salt Lake City, UT USA
Status: Offline
Reply With Quote
Feb 13, 2006, 03:31 AM
 
Are you trying to open the file directly, or call it through apache?

try 127.0.0.1/~user/index.php

or whereever your page is.
2008 iMac 3.06 Ghz, 2GB Memory, GeForce 8800, 500GB HD, SuperDrive
8gb iPhone on Tmobile
     
Ozmodiar  (op)
Mac Elite
Join Date: Apr 2002
Location: Quetzlzacatenango
Status: Offline
Reply With Quote
Feb 13, 2006, 03:34 AM
 
Ha! That's it! Thank you!

Any idea why it doesn't work to go file:///users/ anymore?
     
SirCastor
Professional Poster
Join Date: Jan 2001
Location: Salt Lake City, UT USA
Status: Offline
Reply With Quote
Feb 13, 2006, 03:43 AM
 
Originally Posted by Ozmodiar
Ha! That's it! Thank you!

Any idea why it doesn't work to go file:///users/ anymore?
It never ought to have worked under a local address, because it wasn't being processed through Apache. If it was an HTML file, it would've worked because HTML is read by the browser, not by the server. It's client side. PHP is a server-side thing.

Oh, maybe you mean why you can't access it. Probably because of a path error. For instance, file:///users/ doesn't exist. It's file://Users/
capitals make a difference.
2008 iMac 3.06 Ghz, 2GB Memory, GeForce 8800, 500GB HD, SuperDrive
8gb iPhone on Tmobile
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 04:49 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,