Qs on apache UID and GID

steventay

Verified User
Joined
Mar 24, 2008
Messages
15
Location
Singapore
Hi,

i have use Avactis Shopping Cart, it is using a php script to expand the files and folder to install.

after install i see that all relates files and folders are under apache UID and GID.

http://www.avactis.com/free_shopping_cart.php

is this directadmin issues?

cos if the files under apache, i cannot use ftp correctly.
 
Last edited:
It's one of a model, that can be used with Directadmin by default: Apache + mod_php.
If you want to run PHP scripts from an username, you need to use Apache + suPHP (can be installed with Directadmin).

And of course, there're some other ways to go.
 
it seem after i reset the application cannot write the file.

for example.. the application require access to the .htaccess for the mod_rewrite

.htaccess permission 644 owner apache no problem

once i reset owner, the application cannot write.
 
Last edited:
chmod 666 to files
chmod 777 to directories

Remember, that is very insecure, while your files and directories are world-writable.
 
In that case, the files need to be chown (change owner) to your account name. The file manager should do this by "Reset Owner".


What we do is, when we know clients use a CMS/etc, is to set up a root cron every 30 mins so that it chown the files and directories to their account name, then there won't be any issues on deleting/etc....
 
Back
Top