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
Web Design and Hosting Creating sites, scripting, and hosting discussions.

Php installation


Post Reply New Thread Subscribe

 
Thread Tools
gsashwin

 
Member Since: May 19, 2010
Posts: 2
gsashwin is on a distinguished road

gsashwin is offline
Hi Everyone,

I am trying to setup php on my mac but having problems with it.
As directed by few websites i have edited the httpd.conf file and removed the hash symbol before the Loadmodule php part.

I have also followed the step of copying the contents of php.ini.default to php.ini files.

For testing to see if the Apache service runs i am typing http://localhost and it says it works.

However when i am trying to see if php is working by using the phpinfo() and saving it in Macintosh HD:Library:WebServerocuments and then running the file by typing http://localhost/test.php the browser shows me whatever i am typing the test.php file that is the phpinfo method

Can someone please suggest me how to get php installed on my mac? Thanks a lot in advance
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,050
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Sounds like you've done everything right except for one part - restarting Apache. Simply turn off and turn back on web sharing in System Preferences and you should be good to go. Does that solve your problem?

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
gsashwin

 
Member Since: May 19, 2010
Posts: 2
gsashwin is on a distinguished road

gsashwin is offline
Yes it did. Thanks a lot. Really appreciate it.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,050
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
There is no need to install MAMP or XAMPP when PHP and Apache are already installed on your machine. Doing so would be redundant. While it might be easier if you need MySQL, I would suggest that you install MySQL yourself - you'll learn more and it will be easier to update (ie. you won't have to wait for the MAMP/XAMPP team and you can upgrade parts of your install without having to do the whole thing). Do you even need MySQL?

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks

Post Reply New Thread Subscribe


« web design software and foreign characters | Specific Browsers not displaying iWeb Blog Entries... »
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
PHP is not working on Leopard/Apache2.2--Help! riceric Web Design and Hosting 0 05-02-2009 01:38 PM
Apache works, but PHP will not Mac4Work Web Design and Hosting 5 12-23-2008 11:07 AM
php won't send to email? reholmes OS X - Development and Darwin 0 07-16-2007 04:13 AM
PHP email form won't work reholmes OS X - Operating System 0 07-15-2007 03:39 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 07:43 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?