Archive for the tag 'sites'

Fix MemoryError exception occuring during import sites with Ensim Pro

Restore of appliance, reseller, site and user fails with the “MemoryError” if the size of the backup tar file is greater than the aggregate size of RAM and swap space.

Add extra swap space to the EPL server before doing the restore.

The extra swap space is added to the EPL server by setting up a new swap file and enabling swapping on it. The EPL server must have enough disk space to create the swap file. After the restore is successful the swap file can be deleted following the instructions provided to delete the swap file.

How to import sites with custom MX records Ensim Pro Control Panel Linux

The import of a site with custom MX records could cause creation of duplicated MX records: apart from custom MX records which are defined in the imported archive, default MX records could be created.

In order to avoid this, please proceed through the following steps when importing a site with custom MX records:

1. Before importing sites disable the creation of default MX records. Run the following command(s) as root:

/usr/local/bin/SetDefaultMXRecordState -f on

2. Restart epld service using the following commands as root:

service epld restart

3. Import site from the archive.

4. When the site is succesfuly imported, please turn off the freezing of MX records for imported sites.

For this, run the following commands as root:

/usr/local/bin/SetDefaultMXRecordState -f off

Reference : http://parallels.com/

CPAN - query, download and build perl modules from CPAN sites

Interactive mode:

perl -MCPAN -e shell;

Batch mode:

use CPAN;
autobundle, clean, install, make, recompile, test

Example:


root@laptop:~# perl -MCPAN -e shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.9205)
ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?)

cpan[1]> test
CPAN: Storable loaded ok (v2.18)
CPAN: LWP::UserAgent loaded ok (v5.819)
CPAN: Time::HiRes loaded ok (v1.9711)

I would like to connect to one of the following sites to get ‘authors/01mailrc.txt.gz’:

http://www.perl.org/CPAN/
ftp://ftp.perl.org/pub/CPAN/

Is it OK to try to connect to the Internet? [yes]

Source: Man Page - http://theoryx5.uwinnipeg.ca/CPAN/perl/lib/CPAN.html