New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Getting PHP to work on Leopard


Post Reply New Thread Subscribe

 
Thread Tools
s.osullivan

 
Member Since: Jan 07, 2008
Posts: 2
s.osullivan is on a distinguished road

s.osullivan is offline
Hi Guys,

Having a problem, i have a G5 iMac in work which has been updated to Leopard from Tiger, i do abit of web development so i decided to install PHP. Having done a bit of research i found that PHP is pre-installed and just needs to be "activated" by un-commenting it out of the httpd.conf file and adding 2 addtypes (Upgrade).

All this worked perfert and i have PHP fully functional on my work machine, the problem is i got a New MacBook a few weeks ago and i decided to do the same on this machine. The MacBook came pre-installed with Leopard so i followed the same steps as i did with my work machine, i opened terminal, used the command:

sudo pico /etc/apache2/https.conf

Un-commented out the php module and saved the file, when i restarted my webserver from sharing, php does not work.

So, i decided to add the addtypes also even though they should not be needed on a full leopard install just to see if it would work but still no joy.

When i launch my webserver, html works fine, but when i try to open my test.php file, i just get the text in the file on the screen, e.g.

<?php

phphinfo();

?>

Instead of getting the full breakdown that phpinfo usually gives thus meaning it is not parsing at all.

Anyone any ideas?? Your help would be greatly appreciated.

MacBook Mac OS X (10.5.1)
QUOTE Thanks
Del

 
Member Since: Dec 24, 2006
Location: N. Ireland
Posts: 901
Del has a spectacular aura about
Mac Specs: Mac Pro 2xQuad core 2.8GHZ

Del is offline
Install MAMP
QUOTE Thanks
Sherman Homan

 
Member Since: Oct 27, 2006
Posts: 897
Sherman Homan is a jewel in the roughSherman Homan is a jewel in the roughSherman Homan is a jewel in the rough

Sherman Homan is offline
What Del said, MAMP:
http://www.mamp.info/en/index.php
QUOTE Thanks
s.osullivan

 
Member Since: Jan 07, 2008
Posts: 2
s.osullivan is on a distinguished road

s.osullivan is offline
hi Guys,

Thanks for the replys, its definitly something ill look into but its just really annoying me as to why i cant get it working nativly without the need to use 3rd Party Software.

It works perfect on my work machine but it just wont work on the Macbook!!
QUOTE Thanks

Post Reply New Thread Subscribe


« help please, Programming a widget in dashcode | What is wrong with this program? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Upgrading from Tiger to Leopard (question for reference) Left Face Down Switcher Hangout 20 04-08-2010 07:51 PM
My Leopard Install Kilted1 OS X - Operating System 6 01-11-2008 06:10 PM
Safari won't work after updating to Leopard markw10 OS X - Operating System 1 11-03-2007 03:47 PM
Does a new iPod Classic 80GB work with 10.5 Leopard purplej037 iPod Hardware and Accessories 3 11-02-2007 02:41 PM
Setting up PHP and PHP Nuke EvoMac Web Design and Hosting 2 02-18-2005 12:38 PM

All times are GMT -4. The time now is 11:08 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?