Page 1 of 1

what are preconditions for making mkdir() working ?

Posted: Fri Jun 16, 2006 2:25 am
by olko
Hi everybody,

I am running Suse 10.1 installation of LAMP.

There is a directory, let's say /foo - created by root, ownership is changed - Apache is the owner,
PHP runs as Apache module. If I am not mistaken PHP has the same rights as Apache.

What else should I do to make mkdir() able to create new directories in /foo ?

Thank you,
Yuri

Posted: Thu Jun 22, 2006 10:17 am
by phpfreak
Hey,

Actually that should do, but it is always helpful to confirm that you have changed the permissions. Actuallyt the documentation for this is pretty good.

http://www.php.net/manual/en/function.mkdir.php

hope it helps