new setup, php settings, files owned by apache

flapjack

Verified User
Joined
Oct 2, 2010
Messages
4
I've got a new dedicated server and installed DA on it. I'm going to use it to host customers' websites, so wanted some security and installed Suhosin v0.9.22.

php is running in cli mode, php -v gives:
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.0.4, Copyright (c) 2002-2010, by ionCube Ltd.
with Suhosin v0.9.22, Copyright (c) 2007, by SektionEins GmbH

I've installed couple scripts (wordpress, forums, etc) and it seems that when scripts upload something it's being owned by Apache and not the actual user

how to fix it?
 
This has been discussed on these forums many times. Run PHP as CGI or mod_ruid2.

Jeff
 
yes, I'm doing my homework now

the first problem I can see it's loosing the possibility of using eAccelerator/APC when running PHP as CGI, does mod_ruid2 allow them?
 
I'm not sure, but mod_ruid is an ordinary apache module. I don't know; you could try if no one else knows.

Also check this thread.

Jeff
 
I'm going to try mod_ruid2 with eAccelerator.

I've met some references while googling, that they can be used together at the same time.
 
ruid2 + ea works fine

Code:
# php -v
PHP 5.2.16 (cli) (built: Jan  5 2011 20:20:40) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
    with the ionCube PHP Loader v4.0.1, Copyright (c) 2002-2010, by ionCube Ltd., and
    with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies

# httpd -D DUMP_MODULES
Loaded Modules:
...
 mpm_prefork_module (static)
 rpaf_module (shared)
 [b]ruid2_module[/b] (shared)
 php5_module (shared)
 
Back
Top