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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.