Jump to content

[SOLVED] Localhost on Mac


stevepatd

Recommended Posts

I'm confused.  I have a php program running on an Apache server (Linux) that works fine.  The same code works fine using localhost on a Windows computer with IIS.  I just got a Mac with Apache installed and it doesn't work with Safari using localhost.

 

The error is that it can't read a text file in the same root directory (Sites) as the code.  It says permission denied.

 

I don't know my way around this Mac very well so I no idea where the error log is.

I went into System Preferences and Sharing and enabled personal web sharing.  I know Apache is running on the Mac. A simple helloworld.php program works fine.

 

Any idea where I start?

Thx

Link to comment
https://forums.phpfreaks.com/topic/75589-solved-localhost-on-mac/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.