This post is a continuation (actually a better solution) from my previous post on Joomla Session Save Path
The solution is a slightly modified version from the original post found at rackerhacker.com
Change the umask in ‘/etc/proftpd.conf’ from ‘022′ to ‘002′.
Then, update the directory permissions by running the following at the command line:
cd /
var/www/vhosts/
[domain.com
]
chown -R
[username
]:psacln httpdocs
chmod -R g+w httpdocs
find httpdocs -type d -
exec chmod g+s
{} \;
Add the ‘apache’ user to the ‘psacln’ group by editing ‘/etc/group’.
Change
psacln:x:2524:
to
psacln:x:2524:apache
For my server I also had to add psaftp,psaadm:
psacln:x:2524:apache,psaftp,psaadm
Joomla also complains about some PHP settings, sometimes including not being able to write to ‘/var/lib/php/session’. To fix the issues, make some adjustments to the ‘/var/www/vhosts/[domain]/conf/vhost.conf’ for the domain (you may have to create this file):
<Directory /var/www/vhosts/[domain]/httpdocs>
php_admin_flag magic_quotes_gpc on
php_admin_flag display_errors on
php_admin_value session.save_path /tmp
</Directory>
If the vhost.conf is brand new, then run:
/usr/local/psa/admin/bin/websrvmng -av
Make sure Apache runs with your new configuration:
# httpd -t (check your work)
# /etc/init.d/httpd reload (service httpd restart on my server)
Done! No more errors on the install screen and no more apache/ftpuser issues with uploading files.
Wed, May 7, 2008
0 Comments