image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old November 15th, 2007, 11:41 PM
Registered User
 
Join Date: May 2005
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
weknowjack is on a distinguished road
How can I view dynamic php pages developed locally

I am customizing Zen Cart templates using Dreamweaver on my Mac OSX 10.4.9 machine. Is there a way to see the effects of the php driven format changes without loading a server environment on my Mac or putting the page up on a php host server setup? I don't really need it to connect to the database yet, although at a later dev stage it would be necessary. Just the cosmetic stuff for now. I can make and see the css changes, but some of the font, layout and spacing is done in the php.

I looked at MAMP, but is that the only other option besides putting the pages on the server after each edit?

Last edited by weknowjack; November 15th, 2007 at 11:44 PM. Reason: clarity
Reply With Quote
  #2  
Old November 16th, 2007, 01:30 AM
Registered User
 
Join Date: Mar 2004
Posts: 571
Thanks: 0
Thanked 1 Time in 1 Post
aicul is on a distinguished road
The php server environement is already installed on a iMac, look at the threads in this forum, there is one detailing how to activate it on Tiger. As per Leopard I think it already is activated.

Also place calls to the php pages using localhost/...
__________________
I'm trying to understand...
Reply With Quote
  #3  
Old November 16th, 2007, 01:34 AM
Registered User
 
Join Date: Mar 2004
Posts: 571
Thanks: 0
Thanked 1 Time in 1 Post
aicul is on a distinguished road
This is the thread for Tiger

http://macosx.com/forums/design-medi...-me-swear.html

Look at the fourth or fifth entry
__________________
I'm trying to understand...
Reply With Quote
  #4  
Old November 16th, 2007, 07:37 AM
Registered User
 
Join Date: May 2005
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
weknowjack is on a distinguished road
How to enable php

I read the thread and it's still fuzzy to me. When you say 'built in' do you mean I do not need to download/install Mac OSX Server on my just-updated OSX 10.4.11 Mac first?

Second, what do I open to do the activation? I read an Apple doc that said to open "Server Admin" --- where is that? Here's what it says:
For 10.3 or later

1. Open Server Admin.
2. Select the Web service from the desired server in the Computers & Services list.
3. Click on Settings.
4. Click Modules.
5. Enable or disable the php4_module as desired.
6. Save the changes.
7. Restart the Web Service.
Apple also refers to and Mac OSX Server web site, but provides no link.
Reply With Quote
  #5  
Old November 16th, 2007, 12:00 PM
Registered User
 
Join Date: Mar 2004
Posts: 571
Thanks: 0
Thanked 1 Time in 1 Post
aicul is on a distinguished road
The thread says :

1. open terminal
2. type "open -e /etc/httpd/httpd.conf" this will textedit the httpd.conf file
3. search for "php"
4. remove the # before php line
5. repeat steps 3 and 4 as required
6. search for "<IfModule mod_dir.c>"
7. add index.php after index.html
8. save the changes
9. restart apache using "sudo apachectl start"
__________________
I'm trying to understand...
Reply With Quote
  #6  
Old November 19th, 2007, 06:47 PM
Proud Member
 
Join Date: Feb 2005
Location: SF Bay Area
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
zo219 is on a distinguished road
Virtual Server

Try Headdress.

Or Patrick Gibson's terrific virtual hosts script .

There are any number of ways to set up serving yourself, so to speak. Maybe you know PHP well enough to try I find that too many little things can go wrong or can be forgotten.

Also: MAMP. A whole great package, incl. PHP, also free.

These all have the advantage of ... actually working.
Reply With Quote
  #7  
Old November 19th, 2007, 09:33 PM
Registered User
 
Join Date: May 2005
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
weknowjack is on a distinguished road
I found the following instructions to utilize the built-in Mac OSX interpreter:
http://www.adobe.com/devnet/dreamwea...up_php_03.html

I found it to be very quick and it works. Hope this helps someone else as well.

Jack
Reply With Quote
Reply

Thread Tools

Posting 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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 08:06 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.