Is it possible to set all files users upload to user's permission

Umpol

Verified User
Joined
May 14, 2008
Messages
28
Hello,

I found that every files and dirs which users or script generated ownership will be "apache" I'm not understand why ownership not "user" and many times this made a lot of trouble (needed to click "reset ownership" before).

My question is "Is it possible to set all files users upload or script generated to user's permission ?".

I'm using PHP5 (cli) and Apache 2.0 with MySQL 5.077

needed some suggestions from some one.

Thank you
Umpol
 
Yes, you are right.

How to change PHP 5 Cli to PHP 5 Cgi with ./build, Now my option.conf is look like below

Code:
#PHP settings. default_php possible values - 4 or 5
default_php=5
php5_cli=yes
php5_cgi=no
php4_cli=no
php4_cgi=no
php_ini=yes
#Possible values - recommended or dist
php_ini_type=dist
zend=yes

#Possible values - 5.0 or 5.1 (4.1 is possible too, but it's EOL)
mysql=5.0
mysql_inst=yes
mysql_backup=yes

#Possible values - 1.3, 2.0 or 2.2
apache_ver=2.0

#Web applications
phpmyadmin=yes
atmail=yes
squirrelmail=yes
roundcube=yes

uebimiau=yes

#Mail options
mail-header-patch=yes
dovecot=yes
eximconf=yes

#FTP options
proftpd=yes

#Jailed shell
jail=yes

#Custombuild options
autover=yes
bold=yes
clean=no
fileserver=1
cron=no
[email protected]
notifications=yes
updates=no
custombuild=1.1
awstats=no
webalizer=yes
clean_old_tarballs=yes
clean_old_webapps=yes
da_autoupdate=no
webapps_updates=yes
 
I think you can do:

./build set php5_cgi yes
./build set php5_cli no

./build update
./build php d
 
Back
Top