Thanks Will,
I don't use Plesk to install Joomla as its usually not up to date.
What I had to do to get it working was first ask someone else to help me, he
came up with the following settings which seem to work although I have no idea
if they are 100% correct.
vhost.conf
--
# PHP version detected
<IfModule mod_suphp.c>
<Directory "/var/www/vhosts/rocketitsupport.com/httpdocs/">
php_admin_flag engine on
suPHP_Engine on
suPHP_ConfigPath "/var/www/vhosts/rocketitsupport.com/httpdocs/"
AddHandler php5-script .php
#AddHandler x-httpd-php .php5
AddHandler x-httpd-php .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-php
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/rocketitsupport.com/httpdocs/tmp/"
</Directory>
</IfModule>
<IfModule mod_php5.c>
php_flag log_errors on
php_value error_log
"/var/www/vhosts/rocketitsupport.com/httpdocs/logs/errors.log"
</IfModule>
--
Add a php.ini (I didn’t have one)
--
upload_tmp_dir = "/tmp"
session.save_path = "/tmp"
memory_limit = 256M
--
suphp.conf
--
[global]
;Path to logfile
logfile=/var/log/suphp/suphp.log
;Loglevel
loglevel=warn
;User Apache is running as
webserver_user=www-data
;Path all scripts have to be in
docroot=/var/www/vhosts/:${HOME}/httpdocs
;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=true
;PATH environment variable
env_path=/bin:/usr/bin
;Umask to set, specify in octal notation
umask=0022
; Minimum UID
min_uid=500
; Minimum GID
min_gid=5
[handlers]
;Handler for php-scripts
x-httpd-php="php:/usr/bin/php5-cgi"
;x-httpd-php="php:/usr/bin/php"
;php5-script="php:/usr/bin/php-cgi"
;Handler for CGI-scripts
x-suphp-cgi="execute:!self"
--
Kind regards, j.
-----Original Message-----
From: Will Robertson [mailto:[email protected]]
Sent: 27 November 2009 21:06
To: [email protected]
Cc: 'Daniel Llewellyn'; [email protected]
Subject: Re: [suPHP] Plesk/suPHP/Joomla permissions problem
This may be a little late, but I wanted to put this out there.
When Plesk installs an application (i.e. Jamoola) it installs it in such
a way that a user cannot modify the application, so that Plesk can
properly maintain and update said application. Because suPHP changes the
user to the user, which has been purposely disallowed from editing or
accessing the app files. It causes problems.
A good scenario, would be if you setup the configuration so that when
the request hits a Plesk Managed application directory, it uses a
different user.
I am not familiar with suPHP's actions in these cases, but I imagine it
is possible. It is certainly something I've been working on with Atomic
Turtle's Plesk repository and mpm_itk.
Thanks,
Will
_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp