PDA

View Full Version : It doesn't create new attachment folders but permissions are correct


tintin74
02-06-2009, 05:51 AM
Hello,

I've move into a new server recently. I've installed several instance of dynamics .

One of my user board (id 30597) has report to me this error:

Warning: mkdir() [function.mkdir]: Permission denied in [path]/includes/vba_dyna_class_image.php on line 96

Warning: fopen(/var/www/vhosts/mydomain.com/httpdocs/dyna1/attach/3/0/5/index.html) [function.fopen]: failed to open stream: No such file or directory in [path]/includes/vba_dyna_class_image.php on line 98

Warning: fclose(): supplied argument is not a valid stream resource in [path]/includes/vba_dyna_class_image.php on line 101

Warning: mkdir() [function.mkdir]: No such file or directory in [path]/includes/vba_dyna_class_image.php on line 96


Assuming every new server path has been corrected ( I've scan the database searching for old server paths without find it ) and assuming the /dyna1/attach folder is CHMODDED 777 and every sub-directory created by the script is chmodded with 755, the script coudn't create new attachment subfolder.

As you can see the user id is 30597 and the folder now present into the attach folder is /dyna1/attach/3/0/5

So, the script could create 3/0/5/9/7 ...index.htm

If I change the permission (manually) to 777 to the 5 (last) folder, everything works well and the new folders were created.

Sorry for my english, I hope you've understand something I said... ;)

tintin74
02-06-2009, 08:29 AM
Solved, during the migration every subdirectory into the "attach" directory has change owner from "www-data" to another.

This is the reason beacuse the script wasn't able to create new subdirectory under "attach" directory. Permissions were correct.