Question

I have a plesk panel and root dedicated server on 1and1. I'm using custom programed php script to upload the files and create the folders to server. I have the upload folder named upload_data_folder with the 777 permission.

The scenario is the following: I want to create folder in my upload_data_folder and than upload files in that newly crated folder. I'm doing this over php script so every file or folder that I create has apache user and the group as the owner.

  1. I'm successfully crate the folder in my upload_data_folder and that folder is owned by apache, has apache as a group and has 777 premission. Then When I try to upload some files to that newly created folder It can't.

I think the problem is with some owner permission but if anyone has some idea what this can be I would be very grateful

Was it helpful?

Solution

It was my custom made script. huuu I solved the problem. The php safe mode was turned on. After I turned it off everything works perfectly.

OTHER TIPS

By default apache document root is /var/www/html/. If plesk is installed document root will have a path like:/var/www/httpdocs for non-secure sites. Thus secure sites are stored in /var/www/httpsdocs.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top