User issue

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
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

User issue

Post by Shendemiar »

If i make directory via php, it's owner is marked as :
drwxrwxrwx 2 httpd customer 4096 Nov 12 02:22 asa

BUT i cannot upload anything to it by php.

Ftp Made directories look like this:
drwxrwxrwx 2 usernamex usernamex 4096 Oct 14 06:17 asetukset

Can i get around this. I really wouldnt want to create >400 folders manually...
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

check to see what the permissions are for the folders

Code: Select all

<?php
mkdir("/path/to/my/dir", 0700);
?>
if find quite often i have to use [php_man]umask[/php_man]() before creating directories to get the permissions right/
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Post by Shendemiar »

Both have the exact same 0777 permissions, only thign that varies are the tho columns that indicate owner or creator or something like that.

I guess it's because it's shared server where all the php runs with different credentials than if i log in with my shell username/password.
Post Reply