Apache and PHP Help (Accessing Root Directory)

Joined
Mar 20, 2010
Messages
2
Reaction score
0
Points
1
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
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,816
Reaction score
2,170
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
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
 
OP
B
Joined
Mar 20, 2010
Messages
2
Reaction score
0
Points
1
I have managed to enable apache but I cannot find the httpd.conf file. I cannot find the directory /etc/apache...

Any ideas?

Thanks
 
Joined
Mar 19, 2010
Messages
11
Reaction score
0
Points
1
Location
Very Much on the south coast of the UK
Your Mac's Specs
 MacBook Pro Uni, 2.4GHz 4GB, 128 Samsung SSD
finding your folder

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. :Smirk:

Hope that helps.
 
Joined
Feb 15, 2010
Messages
3
Reaction score
0
Points
1
Or, you can open up Terminal, and type pico /etc/apache2/httpd.conf.

it's should be there.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top