On Thu, Nov 26, 2009 at 22:17, Jamie Robinson-Woledge
<[email protected]> wrote:

[snip]
> Plesk 9.2.3
> Debian 4.0
> Apache 2.2.3
> PHP 5.2.0-8+etch16
> suPHP 0.6.2
> Joomla 1.5.15

is mod_php also installed?

> New installations of Joomla extensions have what I believe to be incorrect
> file/folder permissions for Plesk/suPHP and Joomla to work correctly. They
> default to 644/755 but these files/folders appear unwritable to Joomla. So I
> chmod'd them to 664/775 and Joomla seems happy. Obviously this is an issue
> as Joomla is unable to manage new files/folders on the fly so I would like
> suPHP to apply permissions of 664/775 by default.

what are you doing, what are the results, what are you expecting to happen?

> However I have also been told suPHP and Joomla should work correctly with
> permissions of 644/755. Have I just configured suPHP incorrectly?

provided that suphp is configured correctly, user-write permission is
enough for a php script to be able to modify the file/directory.

> Changing security options in suPHP.conf doesn't seem to do anything or do I
> need to change the unmask value to default to 664/775?

the umask will be subtracted from octets 777 to provide the effective
permissions applied to new files/directories (files will also have 111
added to the umask setting to prevent accidental execute permissions).

> 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]
> php_admin_flag engine on

this, above, is not an suphp setting. what do you expect this to do?

> suPHP_Engine On
> suPHP_ConfigPath "/var/www/vhosts/mydomain.com/subdomains/demo/httpdocs/"

you own mydomain.com? I ask because this suggests that you have
altered something, and we can't tell if you've altered other things
unintentionally. When asking for help, it is always best to post
unedited config/log files and terminal output unless it includes a
password.

> 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)

[snip]
> php_value open_basedir "/tmp/"
> php_value upload_tmp_dir
> "/var/www/vhosts/mydomain.com/subdomains/demo/httpdocs/tmp/"
[snip]

suphp doesn't do anything with "php_value" settings. What are you
expecting these two settings to do?

-- 
Regards,
    The Honeymonster aka Daniel Llewellyn

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

Reply via email to