Service "cpdavd" failed
Fix:
-------
/usr/local/cpanel/bin/checkperlmodules --full
expect -- /scripts/expectperlinstaller --force version
/scripts/realperlinstaller --force version
/etc/init.d/cpanel restart
/scripts/restartsrv chkservd
/scripts/upcp --force
Social engine Video upload issue ( Error: Video conversion failed. You may be over the site upload limit. Try uploading a smaller file, or delete some files to free up space)
Issue
code that throws the error can be found in application/modules/Storage/Api/Storage.php
Code: Select all
if (($space_limit != 0) && $space_row['space_used'] + $filesize > $space_limit)
{
throw new Engine_Exception("File creation failed. You may be over your upload limit. Try uploading a smaller file, or delete some files to free up space", self::SPACE_LIMIT_REACHED_CODE);
}
Somehow the $space_limit is not getting properly assigned. ($space_limit is assigned from the Storage Quota that we specify for each member level.) Anyways, now we are gonna assign a value. You may assign values like 524288000 or 1073741824 and so on for 500MB, 1GB, etc. Or to be safe you can assign it to 0 (for unlimited).
Fix
1. Open application/modules/Storage/Api/Storage.php
2. Find (line 160-163)
Code: Select all
// member level quota
$quota = Engine_Api::_()->authorization()->getPermission($viewer->level_id, 'user', 'quota');
if (NULL !== $quota)
$space_limit = $quota;
3. Comment the 3 lines of code, and in the next line enter
Code: Select all
$space_limit = 0;
(0 or a value u choose, as explained above)
4. Done!
5. So finally the code should look like
Code: Select all
// member level quota
// $quota = Engine_Api::_()->authorization()->getPermission($viewer->level_id, 'user', 'quota');
// if (NULL !== $quota)
// $space_limit = $quota;
$space_limit = 0;
CSF error
-----------
Error: iptables command [/sbin/iptables -v -I OUTPUT -p tcp --dport 25 -m owner --uid-owner 0 -j ACCEPT] failed, at line 340
Fix
--------
/etc/csf/csf.conf
Disable SMTP_BLOCK (SMTP_BLOCK=0)
csf -r
Postfix mail forwarding
--------------------------------
# vi /etc/postfix/main.cf
Make sure following two line exists:
virtual_alias_domains = cyberciti.com
# virtual_alias_domains = cyberciti.com example.com moredomains.com ..
virtual_alias_maps = hash:/etc/postfix/virtual
# vi /etc/postfix/virtual
# add the following line Eg: Forward email sent to vivek@cyberciti.com to vivek@nixcraft.co.in:
vivek@cyberciti.com vivek@nixcraft.co.in
We can also implement a catch-all address i.e. email sent to tom@example.com and jerry@example.com should be forwarded to somewhereelse@another.domain.com
@example.com somewhereelse@another.domain.com
Save and close the file. Type the following command to restart postfix:
# postmap /etc/postfix/virtual
# service postfix reload