what are preconditions for making mkdir() working ?

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
olko
Forum Newbie
Posts: 6
Joined: Fri Jun 16, 2006 2:09 am

what are preconditions for making mkdir() working ?

Post 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
phpfreak
Forum Commoner
Posts: 30
Joined: Fri Mar 21, 2003 10:28 am
Location: New Jersey,USA
Contact:

Post 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
Post Reply