Hi HM, please find answers to your questions below. Kind regards, j.
-----Original Message----- From: Daniel Llewellyn [mailto:[email protected]] Sent: 26 November 2009 23:25 To: [email protected] Cc: [email protected] Subject: Re: [suPHP] Plesk/suPHP/Joomla permissions problem 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? - Yes mod_php is installed: http://demo.rocketitsupport.com/phpinfo.php > 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? - Sorry but I don't think If I can explain it any better than I have already... > 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). - 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? > 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 - I'm not sure but it seems to be included in most tutorials. > suPHP_Engine On > suPHP_ConfigPath > "/var/www/vhosts/rocketitsupport.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. - real domain is rocketitsupport.com > 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] > php_value open_basedir "/tmp/" > php_value upload_tmp_dir > "/var/www/vhosts/ rocketitsupport.com/subdomains/demo/httpdocs/tmp/" [snip] suphp doesn't do anything with "php_value" settings. What are you expecting these two settings to do? - I'm not sure but it seems to be included in most tutorials. -- Regards, The Honeymonster aka Daniel Llewellyn _______________________________________________ suPHP mailing list [email protected] https://lists.marsching.com/mailman/listinfo/suphp
