PDA

View Full Version : Another suphp/suexec question


Mathew
22nd October 2009, 03:08
With SuEXEC turned on, and PHP5 module set to Mod-PHP, I have something strange.

My php/flash photogallery makes new folders with permissions www-data while it should be web18:client7 (website user/group)


drwxrwxrwx 2 www-data www-data 4096 2009-10-22 02:00 FolderWithWrongPerms


Where do I have to fix this? I tried different permission settings, but hmm, I'm a bit confused.

Further, I tested this setting (SuEXEC & Mod-PHP) with a php-shell. Is it possible to disable reading config.php files trough php-shells?
It's pretty much secured (can't execute commands, can't "escape" out the website folder, ...) but I can still read those config files trough it.


Thanks in advance,
keep up the good work.

till
22nd October 2009, 13:31
You can not use mod_php and suexec together. Suexec affects only cgi-php and fcgi-php.