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

I am writing a PHP script for a client which will be installed on a server which I do not have back-end access to. I only have access to a particular folder and database.

My script will upload files and create folders. However I get a permission denied error when I try run mkdir() and move_uploaded_file(). Here are the conditions:

Server running IIS 6 and PHP 5.1.2 (a bad, ancient mixture, I know) Folder where I try to make a directory and upload a file has 777 permissions Folder all the way up to the web root has 777 permissions File uploads are on Uploaded file is very small, within the upload_max_filesize range Any ideas on why this isn't working?

Thank you for your time.

share|improve this question

1 Answer 1

If the server is running IIS 6 then it is a Windows server, so the 777 permissions may not apply as that is a Unix/Linux permissions setting.

On a Windows server, you may need the Administrator to log in to Windows, right-click the folder you are trying to run a mkdir() command within, and use the Permissions option to ensure the user your PHP script is running as has the appropriate permissions.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.