Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I am saving something as a php file in htdocs for xampp it gives me this error

The document “Untitled” could not be saved as “index.php”. You do not have appropriate access privileges.

The system is a Mac machine.

share|improve this question

migrated from stackoverflow.com Apr 11 '11 at 12:34

This question came from our site for professional and enthusiast programmers.

4 Answers 4

Sounds like you don't have the necessary permissions to save in the directory. You will need to talk to your system admin about that.

share|improve this answer
    
He is using xampp. And in the title he is talking about "localhost". So it looks like he is his own admin. –  Raffael Luthiger Apr 10 '11 at 18:56

I think you are in shared server, may be you have assigned a sub-directory under htdocs, so try to save your file in different directory or check your administrator to witch directory you granted.

share|improve this answer
    
I doubt he's on a shared server if he's using XAMPP. –  ceejayoz Apr 10 '11 at 18:56
    
There who use XAMPP, XAMPP isn't limited for localhost, may be a company or a small network. –  SIFE Apr 10 '11 at 22:30

Based on the answer you gave to Felipe Almeida I see that you have a permission problem on your mac. Apple has a good Knowledge Base article about this. After you have read this you should be able to solve your problem. They have pictures where you can see what you have to click. (You have to read from the chapter "Permissions Defined" on. The beginning is not of interest for you.)

share|improve this answer

I have found on some installs, the whole tree of folders is read only. HTdocs is in a folder. Check to see if that is read only.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.