• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Plesk/suPHP/Joomla permissions problem

J

JamieRW

Guest
Hi,

I thought I had it figured out but now I'm not so sure... I need assurance/alternative suggestions to resolve before this drives me insane.

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

Issue
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.

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

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?

suPHP.conf
[global]
;Path to logfile
logfile=/var/log/suphp/suphp.log

;Loglevel
loglevel=info

;User Apache is running as
webserver_user=www-data

;Path all scripts have to be in
docroot=/var/www/

;Path to chroot() to before executing script
;chroot=/mychroot

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

;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=true

;Send minor error messages to browser
errors_to_browser=false

;PATH environment variable
env_path=/bin:/usr/bin

;Umask to set, specify in octal notation
umask=0022

; Minimum UID
min_uid=100

; Minimum GID
min_gid=100

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

;Handler for CGI-scripts
x-suphp-cgi=execute:!self

vhosts.conf
# PHP version detected 5
<IfModule mod_suphp.c>
<Directory "/var/www/vhosts/mydomain.com/subdomains/demo/httpdocs/">
php_admin_flag engine on
suPHP_Engine On
suPHP_ConfigPath "/var/www/vhosts/mydomain.com/subdomains/demo/httpdocs/"
AddHandler php5-script .php
AddHandler x-httpd-php .php5
suPHP_AddHandler php5-script .php
<Files php.ini>
order allow,deny
deny from all
</Files>
php_value open_basedir "/tmp/"
php_value upload_tmp_dir "/var/www/vhosts/mydomain.com/subdomains/demo/httpdocs/tmp/"
</Directory>
</IfModule>

Any help to resolve once and for all would be most appreciated, j.

[GLOBAL MOD PLSE CHANGE FORUM SETTINGS TO USE 'LOGIN' NAME NOT REAL NAME!]
 
Last edited by a moderator:
Back
Top