Here's what I did to get it working on my servage account...
Prereqisites:- Roundcube Installed
- Make sure PHP Safe Mode is
Off - In the control panel, select Web Server - setup a new virtual host, e.g. webmail.domain.com
Then click List Virtual Hosts, click View Zone next to the domain, look for webmail.domain.com - Click Advanced - Set PHP Safe Mode to Off - leave everything else as it is, and click apply.
Note: Virtual Hosts can take up to 3 hours to become active!
Howto:1. Browse to the webmail (or whatever you called it) folder in the File Manager, and click the properties button next to the Temp folder.
(See picture if you don't know what to press)
2. Under
Change dir permissions (chmod): in the box where it says
New setting: type 777, click the dropdown list next to it and select Recursive. Then click the Apply Changes button next to it.
3. Click the properties button next to Temp again, this time under
Change dir owner (chown): in the box next to where it says
New setting: select Webserver, and in the box next to that Recursive, again click Apply Change.
Now the script can write files to that folder, which is one of the things we need to be able to do.
Repeat steps 1-3 for the
logs folder too, so that error logs can be written correctly.
4. Click
[edit] next to
.htaccessCopy/Paste the following - replacing the file contents:
# AddDefaultCharset UTF-8
AddType text/x-component .htc
<IfModule mod_php4.c>
php_flag display_errors Off
php_flag log_errors On
php_value error_log logs/errors
php_value upload_max_filesize 10M
php_value post_max_size 12M
php_value memory_limit 256M
php_value session.auto_start 0
php_value zlib.output_compression 0
php_value magic_quotes_gpc 0
php_value max_execution_time 120
php_value LimitRequestBody 81920000
php_value upload_tmp_dir /homeXXc/sub001/scXXXXX-MDOY/webmail/temp
</IfModule>
<IfModule mod_php5.c>
php_flag display_errors Off
php_flag log_errors On
php_value error_log logs/errors
php_value upload_max_filesize 10M
php_value post_max_size 12M
php_value memory_limit 256M
php_value session.auto_start 0
php_value zlib.output_compression 0
php_value magic_quotes_gpc 0
php_value max_execution_time 120
php_value LimitRequestBody 81920000
php_value upload_tmp_dir /homeXXc/sub001/scXXXXX-MDOY/webmail/temp
</IfModule>
<FilesMatch "(\.inc|\~)$">
Order allow,deny
Deny from all
</FilesMatch>
Order deny,allow
Allow from all
Note: You need to change:
php_value upload_tmp_dir /homeXXc/sub001/scXXXXX-MDOY/webmail/temp
To reflect the path to your real temp folder - you can find the Account Path under Documentation on the Servage CP.
It will be that (ie. /homeXXc/sub001/scXXXXX-MDOY) / the path to the temp folder (ie. /domain.com/webmail/temp or /webmail/temp etc.) in your control panel, in the example the webmail folder is in the root directory, which then contains the temp folder.
Then click Save Changes to File - we're almost done now
5. Browse to the Config folder, click
[edit] next to
db.inc.phpFind:
$rcmail_config['db_max_length'] = 512000; // 500K
Change it to:
$rcmail_config['db_max_length'] = 81920000;
Again click Save Changes to File
Congratulations, now everything should work perfectly
Enjoy,
BTCentralEdit: Added
php_value upload_tmp_dir /homeXXc/sub001/scXXXXX-MDOY/webmail/temp
Values - this is required as the default tmp folder doesn't seem to work correctly 100% of the time.