Optimize Asustor ADM for ZurmoCRM


It’s not easy to install ZurmoCRM and that’s why I encourage to Test your ZurmoCRM with VirtualBox. You need to manually edit configuration files before setup on Asustor ADM.

This post will be updated when I found more optimization in the future.

ADM 2.0

There is no support for Alternative PHP Cache and  Memcache.

  1. Increase memory_limit in php.ini to 256.
  2. Increase post_max_size in php.ini to 20M.
  3. Increase upload_max_filesize in php.ini to 20M.
  4. Increase max_execution_time in php.ini to 2000.

ADM 2.1 B2C5

It adds Alternative PHP Cache which may accelerate LAMP by caching and optimizing PHP intermediate code.

  1. Increase memory_limit in php.ini to 256.
  2. Increase post_max_size in php.ini to 20M.
  3. Increase upload_max_filesize in php.ini to 20M.
  4. Increase max_execution_time in php.ini to 2000.
  5. Increase apc.shm_size in apc.ini to 64M with 1GB and 128M with 2GB installed.

ADM 2.1 R2P1

It adds Alternative PHP Cache which may accelerate LAMP by caching and optimizing PHP intermediate code and Memcache which is an interface to memcached. memcached will cache database result and lower database loading in LAMP.

  1. Increase memory_limit in php.ini to 256M.
  2. Increase post_max_size in php.ini to 20M.
  3. Increase upload_max_filesize in php.ini to 20M.
  4. Increase max_execution_time in php.ini to 2000.
  5. Increase apc.shm_size in apc.ini to 64M with 1GB and 128M with 2GB installed.
  6. Execute or create a shell script to load memcached automatically during startup. Use -m 128 for 1GB and -m 256 for 2GB installed.
memcached -u admin -l 127.0.0.1 -P 11211 -m 128 -d

Use ps | grep memcached to confirmed it has been loaded into memory.

ADM with PHP 5.5.3 R2

It removes support for Alternative PHP Cache and  Memcache and is still in testing.

  1. Same as your ADM version.
  2. Add date.timezone = Asia/Taipei to [Date] section or the setup will halt.

Enable Alternative PHP Cache after Installation

It is default on. There is no need to change after you enable Alternative PHP Cache.

If you are not comfortable with the performance, check the [where you installed ZurmoCRM]/app/protected/config/debug.php file and look for $phpLevelCaching. It should be true by default.

Unless you need to disable Alternative PHP Cache during debug, please keep it true.

Enable Memcahe after Installation

Edit the [where you installed ZurmoCRM]/app/protected/config/perInstance.php file and fill in memcached information. It should match to parameters to launch memcached.

$memcacheServers  = array( // An empty array means memcache is not used.          
                        array(                                                        
                            'host'   => '127.0.0.1',                                  
                            'port'   => 11211,  // This is the default memcached port.
                            'weight' => 100,                             
                        ),                                                         
                    );

Edit the [where you installed ZurmoCRM]/app/protected/config/debug.php file and change $memcacheLevelCaching to true to enable.

Notes

  1. Size for apc.shm_size and memcached may vary depends on systems environments and usage scenario.
  2. If you use less than 900 in max_execution_time, you might fail to install demo data. You may set it to a smaller number than 2000 after installation.
  3. If you are looking for files, please read  Asustor ADM Configuration and Executable Files.

Reference

  1. ZurmoCRM
  2. Test your ZurmoCRM with VirtualBox
  3. Asustor ADM
  4. PHP: PHP Manual: Appendices: php.ini directivies
  5. PHP: PHP Manual: Appendices: php.ini directives: memory_limit
  6. PHP: PHP Manual: Appendices: php.ini directives: post_max_size
  7. PHP: PHP Manual: Appendices: php.ini directives: upload_max_filesize
  8. PHP: PHP Manual: Appendices: php.ini directives: max_execution_time
  9. PHP: PHP Manual: Function Reference: Date and Time Related Extensions: Date/Time: Installing/Configuring: Runtime Configuration: date.timezone
  10. PHP: Alternative PHP Cache
  11. Wiki: LAMP (software bundle)
  12. PHP: PHP Manual: Function Reference: Affecting PHP’s Behavior: APC: Installing/Configuring: Runtime Configuration
  13. PHP: PHP Manual: Function Reference: Affecting PHP’s Behavior: APC: Installing/Configuring: Runtime Configuration: apc.shm_size
  14. PHP: PHP Manual: Function Reference: Other Services: Memcache
  15. memcached
  16. Oracle: Docs: 15.6.2 Using memcached
  17. Web Developer Juice: 10 baby steps to install Memcached Server and access it with PHP
  18. Asustor ADM Configuration and Executable Files
  19. Zurmo: Forums: Enable Memcache after install
  20. Zurmo: Zurmo Cache System Explained
Advertisements

2 thoughts on “Optimize Asustor ADM for ZurmoCRM

    • Dear Deil,

      I cannot. But I may pass your contact information to them, your experience related to Asustor NAS would be a plus.

      I may forward but cannot promise.

      Reach me with my LinkedIn!

      Have a nice day!

      Best regards,

      Amigo

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s