D
DirtyMonkey
Guest
Configuring Ubuntu 8.04, Plesk 8.6.x, Joomla! 1.5.x and suPHP [UPDATED]
I had been struggling to understand how to set-up my Installations of Joomla! with the perfect file/folder permissions and had read previous threads and nothing seemed to work... but I think I've cracked it so wanted to post my findings because I'm sure others must be trying to figure this out and to confirm I have done it correctly...
NB: Replace anything in [] with your own settings.
Set the correct file and folder permission settings via. SSH (If someone can actually explain in simple terms what this does...)
Then you need to create a vhost.conf file and upload it to the 'config' directory in your webspace.
I used the excellent PLESK Power Toys 4.3.0 to create mine:
Then force rebuild of httpd.include:
Joomla! is now happy to write anywhere in /httpdocs, cache works etc...
Can anyone confirm that this set-up is secure? [confirmed as secure]
Cheers, DM.
I had been struggling to understand how to set-up my Installations of Joomla! with the perfect file/folder permissions and had read previous threads and nothing seemed to work... but I think I've cracked it so wanted to post my findings because I'm sure others must be trying to figure this out and to confirm I have done it correctly...
NB: Replace anything in [] with your own settings.
Set the correct file and folder permission settings via. SSH (If someone can actually explain in simple terms what this does...)
cd /var/www/vhosts/[yourdomain.com]
chown -R [yourdomainusername]:www-data httpdocs
chmod -R g+w httpdocs
find httpdocs -type d -exec chmod g+s {} \;
Then you need to create a vhost.conf file and upload it to the 'config' directory in your webspace.
I used the excellent PLESK Power Toys 4.3.0 to create mine:
# PHP version detected 5
<IfModule mod_suphp.c>
<Directory "/var/www/vhosts/[yourdomain.com]/httpdocs/">
php_admin_flag engine on
suPHP_Engine On
suPHP_ConfigPath "/var/www/vhosts/[yourdomain.com]/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/[yourdomain.com]/httpdocs/tmp/"
</Directory>
</IfModule>
Then force rebuild of httpd.include:
/opt/psa/admin/bin/websrvmng -u --vhost-name=yourdomain.com
/etc/init.d/apache2 restart
Joomla! is now happy to write anywhere in /httpdocs, cache works etc...
Can anyone confirm that this set-up is secure? [confirmed as secure]
Cheers, DM.
Last edited by a moderator: