On Fri, Nov 27, 2009 at 11:30, Jamie Robinson-Woledge
<[email protected]> wrote:
[snip]

>Understood but I have not been able to confirm what unmask value would
>create 664/775, Is it 0002 and should I change security options at all?

yes, that is correct. also, if you allow group-writable (such as with
this setting), you _may_ need to have the security settings as you
initially specified so that any php files created by your application
(such as uploading/downloading and installing a new joomla
module/plugin) can also be executed via suphp:

; Security options
allow_file_group_writeable=true
allow_file_others_writeable=false
allow_directory_group_writeable=true
allow_directory_others_writeable=false

[snip]
>> suPHP.conf
> [snip]
>> [handlers]
>> ;Handler for php-scripts
>> x-httpd-php=php:/usr/bin/php5-cgi
>>
>> ;Handler for CGI-scripts
>> x-suphp-cgi=execute:!self
>>
>> vhosts.conf
[snip]
>> AddHandler php5-script .php
>> AddHandler x-httpd-php .php5
>> suPHP_AddHandler php5-script .php
>
> suphp doesn't know what to do with "php5-script". (check your suphp.conf 
> file) - sorry I'm confused please explain further
[snip]

as you should be able to see, in the suphp.conf file you have a
setting for x-httpd-php mime type, but not the php5-script mime type.
As you have mod_php installed as well as suphp, I would imagine that
the former will hijack x-httpd-php, and therefore you would need to
add or amend a setting in your suphp.conf file for the php5-script.
Like so:

[handlers]
;Handler for php-scripts
php5-script=php:/usr/bin/php5-cgi

with your current virtualhost configuration, combined with the
modified suphp.conf, .php5 files will remain executed by mod_php but
.php will now be executed by suphp as the relevant user as configured
(either by the correct setting in your virtualhost configuration, or
by file's owner if configured in suphp.conf, etc.)

-- 
Regards,
    The Honeymonster aka Daniel Llewellyn

_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp

Reply via email to