# Creating directories and sers/owners problems

**URL:** <https://forum.kirupa.com/t/creating-directories-and-sers-owners-problems/219366>\
**Category:** Uncategorized\
**Created:** [March 15, 2007, 11:16pm UTC](https://forum.kirupa.com/t/creating-directories-and-sers-owners-problems/219366 "2007-03-15T23:16:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![forza\_stiinta](https://avatars.discourse-cdn.com/v4/letter/f/bc79bd/32.png) [@forza\_stiinta](https://forum.kirupa.com/u/forza_stiinta)\
**Post date:** [March 15, 2007, 11:16pm UTC](https://forum.kirupa.com/t/creating-directories-and-sers-owners-problems/219366/1 "2007-03-15T23:16:46Z")

</div>

Hello!  
I am trying to solve this problem, but with no success…  
I made a script that creates a directory on my server, and later i want to upload some files into that directory. the problem is that i can’t do this, because the directory has a different “owner” (apache). So, one solution is to make a script that connects through FTP and creates the directory (so that the user is the same and i can upload there). I allready did this, but i am not sure if connecting through ftp by php is as reliable as mkdir()?  
and i am also looking for other alternative, since changing the ftp password means chnaging the php script’s login information.  
any solutions? (i do dot have access to the httpd.conf file)
