stevepatd Posted November 1, 2007 Share Posted November 1, 2007 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 More sharing options...
rajivgonsalves Posted November 1, 2007 Share Posted November 1, 2007 try using your PC name instead of localhost Link to comment https://forums.phpfreaks.com/topic/75589-solved-localhost-on-mac/#findComment-382597 Share on other sites More sharing options...
stevepatd Posted November 1, 2007 Author Share Posted November 1, 2007 Thanks for the help. I found that the permissions on the folders were set for read only. Setting it to read / write would let me read the files. Still strange but it's working. Link to comment https://forums.phpfreaks.com/topic/75589-solved-localhost-on-mac/#findComment-382879 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.