Thanks for this useful post.
With a Plesk 9.5.x & Red Hat 5/ CentOS 5 install, I found that the modifications I had to make were:
1) to create a sessions directory in /var/www/vhosts/<mydomain>
# mkdir /var/www/vhosts/<mydomain>/sessions
# chown apache /var/www/vhosts/<mydomain>/sessions
# chmod 750 /var/www/vhosts/<mydomain>/sessions
2) create a vhost.conf file for this domain, which allows you to remove open_basedir and writable session restrictions:
# emacs /var/www/vhosts/<mydomain>/conf/vhost.conf
Code:
<Directory /var/www/vhosts/<mydomain>/httpdocs>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/<mydomain>/sessions:/var/www/vhosts/<mydomain>/httpdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/<mydomain>/sessions:/var/www/vhosts/<mydomain>/httpdocs:/tmp"
</IfModule>
Options +FollowSymLinks
</Directory>
php_admin_value "session.save_path" "/var/www/vhosts/<mydomain>/sessions" 3) For me, the best way to secure certain directories within the sugarcrm directory, was to specify apache as the user, thus:
# chown apache cache custom data data/upload modules modules/*
# chmod 750 cache custom data data/upload modules modules/*
The install guide suggested opening permissions up to 766, but making the directories world-writable didn't seem like a bright idea to me. 766 didn't work for me anyway, but 777 did .... no way!
These steps resolved most issues.
4) Finally, the sugar installer seems to feel that 6MB uploads are a good minimum, so it's a quick trip to /etc/php.ini (I changed this from 2MB)
Code:
; Maximum size of POST data that PHP will accept.
post_max_size = 8M
...
; Maximum allowed size for uploaded files.
upload_max_filesize = 8M
5) Just update the Plesk webserver manager and restart apache:
# /usr/local/psa/admin/bin/websrvmng -av
# service httpd restart
.. and you should be good to go! 
Best regards,
Steve
Professional Web Development and Hosting
One Cool Limited, Farnborough, UK
Steve Dowe - The Blog!
Bookmarks