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 - Apps and Games Discussion of applications and games available for Mac OS X.

Apache and PHP Help (Accessing Root Directory)


Post Reply New Thread Subscribe

 
Thread Tools
Benji6996

 
Member Since: Mar 20, 2010
Posts: 2
Benji6996 is on a distinguished road

Benji6996 is offline
Hi,

I have spent the past week trying to enable PHP and apache on my new Mac. All the sites that I go to tell me to go the the directory etc/apache2/httpd.conf. However I cannot find this directory.

I am running Mac OS X Snow Leopard, not Snow Leopard Server. I don't know if that is a problem. Please help me I am exhausted with this problem.

Thanks in Advance

Ben
QUOTE Thanks
Raz0rEdge

 
Raz0rEdge's Avatar
 
Member Since: Jul 17, 2009
Location: MA
Posts: 7,324
Raz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant future
Mac Specs: 27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3

Raz0rEdge is offline
Apache is available on Snow Leopard, so not sure why you don't see it. Go to System Preferences->Sharing and you can enable Web Sharing there. That should get Apache running..but you still need to modify the httpd.conf file to enable PHP support..

Regards
QUOTE Thanks
Benji6996

 
Member Since: Mar 20, 2010
Posts: 2
Benji6996 is on a distinguished road

Benji6996 is offline
I have managed to enable apache but I cannot find the httpd.conf file. I cannot find the directory /etc/apache...

Any ideas?

Thanks
QUOTE Thanks
kciss

 
kciss's Avatar
 
Member Since: Mar 19, 2010
Location: Very Much on the south coast of the UK
Posts: 11
kciss is on a distinguished road
Mac Specs:  MacBook Pro Uni, 2.4GHz 4GB, 128 Samsung SSD

kciss is offline
Hi there. The folder you are looking is hidden.. but it is there. What you need to do to locate it is..While in finder, go to the menu bar, and click on

>GO>Go To Folder.

In the box that pops up, type in /etc/apache2/ and that will open the folder containing the httpd.conf. file.

Hope that helps.
QUOTE Thanks
Scott

 
Member Since: Feb 15, 2010
Posts: 3
Scott is on a distinguished road

Scott is offline
Or, you can open up Terminal, and type pico /etc/apache2/httpd.conf.

it's should be there.
QUOTE Thanks

Post Reply New Thread Subscribe


« iPhoto Backup Question / Intruduction | Kill an app. / App. timer?? »
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
Apache works, but PHP will not Mac4Work Web Design and Hosting 5 12-23-2008 11:07 AM
Apache, php and mysql on leopard skorpyo Web Design and Hosting 1 01-18-2008 03:38 AM
Apache Not Reading PHP.... liberal123 OS X - Operating System 2 03-30-2006 09:37 PM
Apache and root folders moonraker Web Design and Hosting 3 06-09-2005 03:43 AM
Apache PHP Error Handlers vtupser Web Design and Hosting 4 04-15-2005 01:37 AM

All times are GMT -4. The time now is 05:27 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?